OAI/Combinatorics/ContingencyTables/Counting/CompanionComputedInitial.lean
18 declarations, 0 contain sorry, 0 declared as axioms
Initialization from the computed small-cell catalog
The proof-level equivalence follows the actual catalog program. It is used only to identify the output of the binary list initializer with a paired transversal and to transfer its distributional error bound.
- abbrev
OAI.ContingencyTables.CompanionComputedInitial.ProgramInputline 21 - def
OAI.ContingencyTables.CompanionComputedInitial.initialProgramline 23 - def
OAI.ContingencyTables.CompanionComputedInitial.initialProgramRealizerline 26 - theorem
OAI.ContingencyTables.CompanionComputedInitial.polynomial_initialProgramline 31 - def
OAI.ContingencyTables.CompanionComputedInitial.cellOrderline 41 - def
OAI.ContingencyTables.CompanionComputedInitial.capacitiesline 44 - def
OAI.ContingencyTables.CompanionComputedInitial.wordLengthline 47 - def
OAI.ContingencyTables.CompanionComputedInitial.initialDrawline 49 - def
OAI.ContingencyTables.CompanionComputedInitial.copyOrderline 54 - def
OAI.ContingencyTables.CompanionComputedInitial.pairOrderline 56 - def
OAI.ContingencyTables.CompanionComputedInitial.coordinateOrderline 59 - lemma
OAI.ContingencyTables.CompanionComputedInitial.encodeSet_reindexline 62 - lemma
OAI.ContingencyTables.CompanionComputedInitial.draw_preimageline 67 - theorem
OAI.ContingencyTables.CompanionComputedInitial.initialProgram_eqline 87Source documentation
The complete program computes the semantic initializer with the coordinate order recovered from the program's own catalog.
theorem initialProgram_eq (B : ℕ) (hB : 0<B) (bits : Fin (wordLength A B) → Bool) : initialProgram ((CompanionCellCatalog.input A,B),List.ofFn bits)= encodeSet (coordinateOrder A) (initialDraw A B bits).val.val := by …Mentions: OAI.ContingencyTables.CompanionComputedInitial.wordLength, OAI.ContingencyTables.CompanionComputedInitial.initialProgram, OAI.ContingencyTables.CompanionCellCatalog.input, OAI.ContingencyTables.CompanionComputedInitial.coordinateOrder, OAI.ContingencyTables.CompanionComputedInitial.initialDraw
- lemma
OAI.ContingencyTables.CompanionComputedInitial.catalog_count_leline 95 - theorem
OAI.ContingencyTables.CompanionComputedInitial.wordLength_boundline 99 - theorem
OAI.ContingencyTables.CompanionComputedInitial.initialDraw_errorline 107Source documentation
The computed-order initializer has the same μ₀ reference law and error guarantee as the abstract-order initializer.
theorem initialDraw_error (B : ℕ) : variation (mapLaw (uniformLaw (α := Fin (wordLength A B) → Bool)) (initialDraw A B)) …Mentions: OAI.ContingencyTables.CompanionComputedInitial.wordLength, OAI.ContingencyTables.CompanionComputedInitial.initialDraw
- theorem
OAI.ContingencyTables.CompanionComputedInitial.initialDraw_precisionline 123