OAI/Combinatorics/ContingencyTables/Counting/CompanionOrderedProposal.lean
11 declarations, 0 contain sorry, 0 declared as axioms
The companion proposal with a specified coordinate order
The coordinate scan and its paired-state validator work with the same explicit order used by the initializer. Its dyadic proposal law is independent of this order, including unused proposal words.
- def
OAI.ContingencyTables.CompanionOrderedProposal.orderedNeighborsline 23 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.mem_orderedNeighborsline 26 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.orderedNeighbors_nodupline 30 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.orderedNeighbors_lengthline 33 - def
OAI.ContingencyTables.CompanionOrderedProposal.orderedProposalline 43 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.orderedProposal_massline 47 - theorem
OAI.ContingencyTables.CompanionOrderedProposal.orderedProposal_lawline 56Source documentation
Every complete coordinate order has the analysed proposal law.
theorem orderedProposal_law (e : (Labels A×Bool) ≃ Fin m) (S : State A) : mapLaw (uniformLaw (α := Fin (proposalBits A) → Bool)) (orderedProposal A e S)= …Mentions: OAI.ContingencyTables.CompanionOrderedProposal.orderedProposal
- def
OAI.ContingencyTables.CompanionOrderedProposal.orderedCatalogline 77 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.pairedStateTest_orderedline 80 - lemma
OAI.ContingencyTables.CompanionOrderedProposal.validExchanges_orderedline 92 - theorem
OAI.ContingencyTables.CompanionOrderedProposal.codeProposal_orderedline 114Source documentation
The polynomial list program returns exactly the encoded state drawn by the ordered proposal; no enumeration of all chain states is needed.
theorem codeProposal_ordered (g : Fin p ≃ Labels A) (e : (Labels A×Bool) ≃ Fin m) (S : State A) (bits : Fin (proposalBits A) → Bool) : codeProposal ((orderedCatalog A g e,encodeSet e S.val),List.ofFn bits)= (orderedProposal A e S bits).map (fun T => encodeSet e T.val) := by …Mentions: OAI.ContingencyTables.CompanionOrderedProposal.orderedCatalog, OAI.ContingencyTables.CompanionOrderedProposal.orderedProposal