Model sanity: one-variable LP in quadratic BSS time
ProvedSmaleNinth.bss_decides_one_variable_lp_quadraticThis statement calibrates the machine model of the mission's goal by exhibiting a genuine uniform algorithm in it, in the smallest nontrivial case, with a quadratic time budget.
The assertion. There exist a single program over the real numbers and a single constant such that for every and every one-variable system given by and , the program started on the standard tape encoding (cells hold and , cells hold , cells hold ) halts within
with the verdict true if and only if is nonempty.
Reading the quantifiers. The program and the constant are fixed once and serve every instance: the algorithm is uniform, and its cost is a fixed polynomial in the number of constraints with a constant independent of the data. When the system is vacuously satisfiable and the program must accept within steps.
Why quadratic. In this machine every instruction addresses fixed tape cells and the only way to reach other cells is to shift the whole tape by one position. The coefficient and the right-hand side sit cells apart, so combining them requires walking the head across the gap while carrying the running bounds along in a fixed window of register cells; one round trip per constraint costs instructions, and constraints cost . The mathematics is the interval characterisation of one-variable feasibility: the system is solvable iff no row has and .
Relation to the milestone. This is the mission's model-sanity milestone bss_decides_one_variable_lp with the linear budget replaced by . The linear budget appears to be unattainable in the fixed-address model, by a crossing-sequence argument (see the mission discussion), whereas the quadratic budget is achieved by an explicit program.
import Definitions.Def_Polyhedron import Definitions.Def_SmaleNinth_BSSMachine /-! Model sanity for the Blum–Shub–Smale machine of `Definitions.Def_SmaleNinth_BSSMachine`, quadratic-time form: a single uniform program decides one-variable LP feasibility within `C·(m+1)²` steps. Source: model-validation exercise for the BSS machine (Blum–Shub–Smale, Bull. AMS 21(1):1–46, 1989, Section 1). The mathematics is the interval characterisation of one-variable feasibility: `aᵢx ≥ bᵢ (i = 1,…,m)` is solvable iff no row has `aᵢ = 0 < bᵢ` and the largest lower bound `bᵢ/aᵢ` over `aᵢ > 0` is at most the smallest upper bound `bⱼ/aⱼ` over `aⱼ < 0`. In this machine model every instruction addresses fixed tape cells and the only data movement is a whole-tape shift, so `aᵢ` (cell `2+i`) and `bᵢ` (cell `2+m+i`) must be brought together by walking the head `m` cells and carrying registers along; one round trip per constraint costs `Θ(m)`, hence the quadratic budget. (The linear budget `C·(m+1)` of the milestone `bss_decides_one_variable_lp` appears to be unattainable for this reason.) -/ open Matrix LinearOptimization /-- **Model sanity, quadratic form.** There is a uniform BSS program deciding, for every `m` and every one-variable system `aᵢx ≥ bᵢ`, its feasibility within `C·(m+1)²` steps on the standard input encoding. -/
theorem SmaleNinth.bss_decides_one_variable_lp_quadratic :
∃ (P : BSSProgram) (C : ℕ),
∀ (m : ℕ) (A : Matrix (Fin m) (Fin 1) ℝ) (b : Fin m → ℝ),
∃ result : Bool,
BSSDecidesInTime P (encodeLP A b) (C * (m + 1) ^ 2) result ∧
(result = true ↔ (polyhedron A b).Nonempty) := by sorry