OAI/Combinatorics/ContingencyTables/Counting/CompanionArithmeticProposal.lean
28 declarations, 0 contain sorry, 0 declared as axioms
An explicit coordinate-list proposal for the companion chain
Only ordered coordinates are enumerated. The arithmetic binary-profile program generates the possible exchanges, after which the actual chain state predicate removes disallowed states. A dyadic list index has exactly the same proposal law as the abstract injection.
- def
OAI.ContingencyTables.CompanionArithmeticProposal.coordinateSetline 26 - def
OAI.ContingencyTables.CompanionArithmeticProposal.physicalSetline 28 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.physical_coordinateline 31 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.coordinate_physicalline 36 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.adjacent_preimageline 41 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.adjacent_coordinate_iffline 54 - def
OAI.ContingencyTables.CompanionArithmeticProposal.encodeSetline 63 - def
OAI.ContingencyTables.CompanionArithmeticProposal.decodeSetline 65 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.decode_encodeline 68 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.encode_injectiveline 75 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.encode_physicalline 81 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.decode_profileline 86 - theorem
OAI.ContingencyTables.CompanionArithmeticProposal.mem_raw_codesline 91Source documentation
The executable integer update enumerates exactly the set exchanges.
theorem mem_raw_codes (S : Set Γ) (xs : List ℕ) : xs∈binaryExchanges (encodeSet e S) ↔ ∃ T : Set Γ,ExchangeAdjacent S T ∧ xs=encodeSet e T := by …Mentions: OAI.ContingencyTables.CompanionArithmeticProposal.encodeSet
- def
OAI.ContingencyTables.CompanionArithmeticProposal.neighborSetsline 107 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.mem_neighborSetsline 110 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.neighborSets_nodupline 119 - def
OAI.ContingencyTables.CompanionArithmeticProposal.neighborStatesline 127Source documentation
The state filter is applied after the quadratic coordinate scan.
def neighborStates (gs : List (Γ×Γ)) (S : ChainIndex gs) : List (ChainIndex gs) := …
- lemma
OAI.ContingencyTables.CompanionArithmeticProposal.stateFilter_eq_someline 131 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.mem_neighborStatesline 140 - lemma
OAI.ContingencyTables.CompanionArithmeticProposal.neighborStates_nodupline 149 - def
OAI.ContingencyTables.CompanionArithmeticProposal.coordinateEquivline 161 - def
OAI.ContingencyTables.CompanionArithmeticProposal.neighborsline 164 - theorem
OAI.ContingencyTables.CompanionArithmeticProposal.mem_neighborsline 167 - theorem
OAI.ContingencyTables.CompanionArithmeticProposal.neighbors_nodupline 171 - theorem
OAI.ContingencyTables.CompanionArithmeticProposal.neighbors_lengthline 174 - def
OAI.ContingencyTables.CompanionArithmeticProposal.proposalline 183Source documentation
The selection stage is the actual binary list-index program.
def proposal (A : Instance I J) (S : State A) (bits : Fin (proposalBits A) → Bool) : Option (State A) := …
- theorem
OAI.ContingencyTables.CompanionArithmeticProposal.proposal_massline 186 - theorem
OAI.ContingencyTables.CompanionArithmeticProposal.proposal_lawline 194Source documentation
The explicit arithmetic enumeration changes no proposal probabilities, including the unused-code outcome.
theorem proposal_law (A : Instance I J) (S : State A) : mapLaw (uniformLaw (α := Fin (proposalBits A) → Bool)) (proposal A S)= …Mentions: OAI.ContingencyTables.CompanionArithmeticProposal.proposal