OAI/Combinatorics/ContingencyTables/Counting/CompanionTraceProgram.lean
13 declarations, 0 contain sorry, 0 declared as axioms
Polynomial code for recognizing and locating a trace return
The paired plain-state test sums the two bits of each label. The return program scans the supplied path after its initial state; no enumeration of the exponential paired-state space occurs.
- def
OAI.ContingencyTables.CompanionTraceProgram.pairedPlainTestline 20 - def
OAI.ContingencyTables.CompanionTraceProgram.pairedPlainTestRealizerline 24 - theorem
OAI.ContingencyTables.CompanionTraceProgram.polynomial_pairedPlainTestline 30 - abbrev
OAI.ContingencyTables.CompanionTraceProgram.ReturnInputline 38 - def
OAI.ContingencyTables.CompanionTraceProgram.firstPlainCodeline 40 - def
OAI.ContingencyTables.CompanionTraceProgram.firstPlainCodeRealizerline 43 - theorem
OAI.ContingencyTables.CompanionTraceProgram.polynomial_firstPlainCodeline 47 - def
OAI.ContingencyTables.CompanionTraceProgram.returnCodeline 53Source documentation
Strict first return: the initial path entry is omitted.
def returnCode (z : ReturnInput) : Option (List ℕ) := …
Mentions: OAI.ContingencyTables.CompanionTraceProgram.ReturnInput
- def
OAI.ContingencyTables.CompanionTraceProgram.returnCodeRealizerline 56 - theorem
OAI.ContingencyTables.CompanionTraceProgram.polynomial_returnCodeline 59 - theorem
OAI.ContingencyTables.CompanionTraceProgram.pairedPlainTest_encodeline 66 - theorem
OAI.ContingencyTables.CompanionTraceProgram.firstPlainCode_encodeline 90Source documentation
The list program returns the encoding of the same first plain state as the semantic scan, including the no-return outcome.
theorem firstPlainCode_encode (A : Instance I J) (xs : List (State A)) : firstPlainCode (pairCatalog A,xs.map (fun S => encodeSet (coordinateEquiv A) S.val))= (firstHit (plainPredicate TwoLiftStates.pairs) xs).map (fun T => encodeSet (coordinateEquiv A) T.val.val) := by …Mentions: OAI.ContingencyTables.CompanionTraceProgram.firstPlainCode, OAI.ContingencyTables.TwoLiftStates.pairs
- theorem
OAI.ContingencyTables.CompanionTraceProgram.returnCode_encodeline 109