OAI/Computability/MaxCut/Games/FinalCNFPattern.lean
23 declarations, 0 contain sorry, 0 declared as axioms
Concrete relation addresses for the final Boolean verifier
Six-bit labels use the already checked executable little-endian enumeration.
A twelve-bit CNF pattern is split into its two endpoint labels, then addressed
in the graph table's row-major order. This fixed address map uses the actual
VerifierToCNF.patternAt enumeration, so no assumed correspondence between
two enumeration orders is needed. The graph interpretation is an explicit
relabeling of the validated table semantics.
- abbrev
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.Labelline 22 - abbrev
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelEquivline 25Source documentation
Coordinate zero is the least significant bit.
abbrev labelEquiv : Label ≃ Fin 64 := AlphabetTable.Enumeration.labelEquiv
Mentions: OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.Label
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelEquiv_valline 27 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelIndexline 32 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelBitsline 34 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelBits_labelIndexline 36 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.labelIndex_labelBitsline 39 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.leftHalfline 42 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.rightHalfline 45 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.relationAddressline 49Source documentation
Graph rows store the right endpoint index fastest.
def relationAddress (bits : VerifierToCNF.Pattern 12) : Fin 4096 := …
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.relationAddress_valline 52 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.patternRelationIndexline 58Source documentation
The address is computed from the converter's actual enumerated pattern.
def patternRelationIndex (p : VerifierToCNF.PatternIndex 12) : Fin 4096 := …
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.patternRelationIndex_eqline 61 - def
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableGraphline 65Source documentation
Interpret the numeric table over its explicitly decoded Boolean labels.
def tableGraph (table : GraphTables.Table) : ConstraintGraph (Fin table.vertices) (Fin table.darts) Label := …Mentions: OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.Label
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableGraph_tailline 69 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableGraph_reverseline 72 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableGraph_acceptsline 75 - abbrev
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableVerifierline 81Source documentation
The concrete Boolean verifier associated with an already indexed table.
abbrev tableVerifier (table : GraphTables.Table) : VerifierToCNF.FiniteVerifier 12 := …
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.relation_lookup_eq_verifier_acceptsline 84 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.pattern_lookup_eq_verifier_acceptsline 89 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.verifier_accepts_eq_lookupline 94 - theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.buffer_lookup_eq_verifier_acceptsline 100Source documentation
A reader's pointwise buffer correctness gives the actual verifier bit.
theorem buffer_lookup_eq_verifier_accepts (table : GraphTables.Table) (e : Fin table.darts) (buffer : Fin 4096 → Bool) (read_correct : ∀ i, buffer i = table.rows[e].relation[i]) (bits : VerifierToCNF.Pattern 12) : buffer (relationAddress bits) = (tableVerifier table).accepts e bits := …Mentions: OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.relationAddress, OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.tableVerifier
- theorem
OAI.MaxCutGames.Foundations.Complexity.FinalCNFPattern.pattern_buffer_lookup_eq_verifier_acceptsline 107