OAI/Combinatorics/ContingencyTables/Machines/CellMaximumProgram.lean
8 declarations, 0 contain sorry, 0 declared as axioms
Computing an attained cell maximum by binary feasibility search
A finite maximum is used only to prove the result of the executed binary search. The program never enumerates feasible tables.
- def
OAI.ContingencyTables.CellMaximumProgram.boundline 17 - def
OAI.ContingencyTables.CellMaximumProgram.boundRealizerline 19 - lemma
OAI.ContingencyTables.CellMaximumProgram.polynomial_boundline 22 - def
OAI.ContingencyTables.CellMaximumProgram.maximumline 27 - def
OAI.ContingencyTables.CellMaximumProgram.maximumRealizerline 29 - lemma
OAI.ContingencyTables.CellMaximumProgram.polynomial_maximumline 34 - lemma
OAI.ContingencyTables.CellMaximumProgram.bound_codeline 38 - theorem
OAI.ContingencyTables.CellMaximumProgram.maximum_correctline 45Source documentation
For every feasible instance the computed value is attained, and it bounds the same coordinate of every other feasible table.
theorem maximum_correct {m n : ℕ} (hEK : PublishedEdmondsKarp.EdmondsKarp1972Theorem1) (r : Fin m→ℕ) (c : Fin n→ℕ) (b : Fin m→Fin n→ℕ) (i : Fin m) (j : Fin n) (hne : ∃ X,HasMargins X r c ∧ ∀ u v,X u v≤b u v) : ∃ X,HasMargins X r c ∧ (∀ u v,X u v≤b u v) ∧ X i j=maximum (NetworkVertexCode.data r c b,(i.val,j.val)) ∧ ∀ Y,HasMargins Y r c → (∀ u v,Y u v≤b u v) → Y i j≤X i j := by …Mentions: OAI.ContingencyTables.PublishedEdmondsKarp.EdmondsKarp1972Theorem1, OAI.ContingencyTables.HasMargins, OAI.ContingencyTables.CellMaximumProgram.maximum, OAI.ContingencyTables.NetworkVertexCode.data