/- From Prove2Me: mission "Smale's Ninth Problem: Strongly Polynomial Linear Programming" (https://prove2.me/missions/e9701fcc-1bbe-4e79-8127-1cf4fa935ef6), main theorem `SmaleNinth.smale_ninth_problem` (https://prove2.me/theorems/8bf5478b-14fe-468e-85c5-1ce842fbd1e4). Source: S. Smale, Mathematical problems for the next century, Mathematical Intelligencer 20(2):7-15, 1998, Problem 9 (also in: Mathematics: Frontiers and Perspectives, AMS 2000). Machine model: Blum-Shub-Smale, Bull. AMS 21(1):1-46, 1989. Apache-2.0 per Prove2Me's terms. -/ import Prove2Me.Definitions.Def_Polyhedron import Prove2Me.Definitions.Def_SmaleNinth_BSSMachine /-! Smale's 9th problem: polynomial-time linear programming feasibility over the real numbers. Source: S. Smale, *Mathematical problems for the next century*, Mathematical Intelligencer 20(2):7–15, 1998, Problem 9: "Is there a polynomial-time algorithm over the real numbers which decides the feasibility of the linear system of inequalities $Ax \ge b$?" — in the machine model of Blum–Shub– Smale (Bull. AMS 21(1):1–46, 1989), formalized in `Definitions.Def_SmaleNinth_BSSMachine`. The statement asks for a single BSS program `P` (one uniform algorithm, with arbitrary real machine constants) and constants `C, d` such that on every instance — every `m`, `n`, every real `A : m × n` and `b : m` — the program, run on the standard input encoding, halts within `C·(mn + m + 2)^d` steps (unit cost per arithmetic operation, comparison, or shift; `mn + m + 2` is the number of input cells) and accepts exactly when `{x | Ax ≥ b}` is nonempty. -/ open LinearOptimization /-- **Smale's 9th problem** (Smale 1998, Problem 9; Blum–Shub–Smale model). There is a uniform BSS program over `ℝ` deciding the feasibility of `Ax ≥ b` in a number of steps polynomial in the number `mn + m + 2` of input reals. -/ theorem SmaleNinth.smale_ninth_problem : ∃ (P : BSSProgram) (C d : ℕ), ∀ (m n : ℕ) (A : Matrix (Fin m) (Fin n) ℝ) (b : Fin m → ℝ), ∃ result : Bool, BSSDecidesInTime P (encodeLP A b) (C * (m * n + m + 2) ^ d) result ∧ (result = true ↔ (polyhedron A b).Nonempty) := by sorry