OAI/Combinatorics/ContingencyTables/Counting/CompanionNeighborProgram.lean
8 declarations, 0 contain sorry, 0 declared as axioms
Executable valid-neighbor lists and their binary draw
This composes the actual integer-exchange program with the paired-state validator and the bounded list-index program. The output code is exactly the encoding of the semantic proposal, including its failure outcome.
- def
OAI.ContingencyTables.CompanionNeighborProgram.validExchangesline 18 - def
OAI.ContingencyTables.CompanionNeighborProgram.validExchangesRealizerline 21 - theorem
OAI.ContingencyTables.CompanionNeighborProgram.polynomial_validExchangesline 25 - def
OAI.ContingencyTables.CompanionNeighborProgram.codeProposalline 30 - def
OAI.ContingencyTables.CompanionNeighborProgram.codeProposalRealizerline 33 - theorem
OAI.ContingencyTables.CompanionNeighborProgram.polynomial_codeProposalline 38Source documentation
All loops traverse the supplied profile, pair catalog or quadratic coordinate list. A large binary draw index never determines a loop.
theorem polynomial_codeProposal : PolynomialTime codeProposalRealizer := …
Mentions: OAI.ContingencyTables.CompanionNeighborProgram.codeProposalRealizer
- lemma
OAI.ContingencyTables.CompanionNeighborProgram.validExchanges_encodeline 46 - theorem
OAI.ContingencyTables.CompanionNeighborProgram.codeProposal_eqline 66Source documentation
The public binary program computes the exact semantic draw.
theorem codeProposal_eq (A : Instance I J) (S : State A) (bits : Fin (proposalBits A) → Bool) : codeProposal ((pairCatalog A,encodeSet (coordinateEquiv A) S.val),List.ofFn bits)= (CompanionArithmeticProposal.proposal A S bits).map (fun T => encodeSet (coordinateEquiv A) T.val) := by …Mentions: OAI.ContingencyTables.CompanionNeighborProgram.codeProposal, OAI.ContingencyTables.CompanionArithmeticProposal.proposal