OAI/Combinatorics/ContingencyTables/Machines/PairedDemandProgram.lean
33 declarations, 0 contain sorry, 0 declared as axioms
Replacing the oracle demand by the current encoded paired state
Only the retained-cell catalog and the supplied state are scanned. The large cells receive zero in each sparse view and hence retain their full capacity in the complemented column demand.
- abbrev
OAI.ContingencyTables.PairedDemandProgram.Inputline 19 - def
OAI.ContingencyTables.PairedDemandProgram.cellInputline 21 - def
OAI.ContingencyTables.PairedDemandProgram.cellInputRealizerline 23 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_cellInputline 25 - def
OAI.ContingencyTables.PairedDemandProgram.cellsline 30 - def
OAI.ContingencyTables.PairedDemandProgram.cellsRealizerline 31 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_cellsline 34 - def
OAI.ContingencyTables.PairedDemandProgram.countsline 38 - def
OAI.ContingencyTables.PairedDemandProgram.countsRealizerline 40 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_countsline 46 - def
OAI.ContingencyTables.PairedDemandProgram.sideEntryline 51 - def
OAI.ContingencyTables.PairedDemandProgram.sideEntryRealizerline 52 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_sideEntryline 54 - def
OAI.ContingencyTables.PairedDemandProgram.valuesline 59 - def
OAI.ContingencyTables.PairedDemandProgram.valuesRealizerline 60 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_valuesline 65 - def
OAI.ContingencyTables.PairedDemandProgram.viewInputline 70 - def
OAI.ContingencyTables.PairedDemandProgram.viewInputRealizerline 72 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_viewInputline 78 - def
OAI.ContingencyTables.PairedDemandProgram.viewMatrixline 87 - def
OAI.ContingencyTables.PairedDemandProgram.viewMatrixRealizerline 88 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_viewMatrixline 91 - def
OAI.ContingencyTables.PairedDemandProgram.complementline 94 - def
OAI.ContingencyTables.PairedDemandProgram.complementRealizerline 96 - lemma
OAI.ContingencyTables.PairedDemandProgram.polynomial_complementline 102 - def
OAI.ContingencyTables.PairedDemandProgram.outputline 109 - def
OAI.ContingencyTables.PairedDemandProgram.outputRealizerline 111 - theorem
OAI.ContingencyTables.PairedDemandProgram.polynomial_outputline 116 - lemma
OAI.ContingencyTables.PairedDemandProgram.cells_dataline 130 - lemma
OAI.ContingencyTables.PairedDemandProgram.catalog_eqline 133 - lemma
OAI.ContingencyTables.PairedDemandProgram.values_dataline 150 - lemma
OAI.ContingencyTables.PairedDemandProgram.viewMatrix_dataline 164 - theorem
OAI.ContingencyTables.PairedDemandProgram.output_dataline 190Source documentation
The current code replaces both demand arrays; the old demand only provides the immutable graph, capacities, margins and baseline.
theorem output_data (x q : Fin m → Fin n → ℕ) (S : Set (Labels A × Bool)) : output (RootedDemandProgram.data A x q, encodeSet (CompanionComputedInitial.coordinateOrder A) S)= RootedDemandProgram.data A (ForestCountIdentification.smallX A.small (CompanionWeightOracle.profile A S)) (fun i j => A.b i j- ForestCountIdentification.smallY A.small (CompanionWeightOracle.profile A S) i j) := by …Mentions: OAI.ContingencyTables.PairedDemandProgram.output, OAI.ContingencyTables.RootedDemandProgram.data, OAI.ContingencyTables.CompanionComputedInitial.coordinateOrder, OAI.ContingencyTables.ForestCountIdentification.smallX, OAI.ContingencyTables.CompanionWeightOracle.profile, OAI.ContingencyTables.ForestCountIdentification.smallY