OAI/Computability/MaxCut/Encoding/TableKeysAddressGame.lean
38 declarations, 0 contain sorry, 0 declared as axioms
Direct addresses for the v2 single-orbit matrix game. There is one canonical body address space, with no side bit and no extra right-endpoint offset. Unused addresses are isolated. Runtime construction uses canonical words and radix arithmetic, not deduplication or inverse vertex enumeration.
- abbrev
OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexCountline 20 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexAddressline 23 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexAddress_injectiveline 26 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.queryAddressline 33Source documentation
Both endpoints use this same routine and this same address block.
def queryAddress (S : Source) (k s d : Nat) (q : TableKeysGame.Query S k s d) : Fin (vertexCount S k s d) := …Mentions: OAI.MaxCutGames.Decoder.TableKeysGame.Query, OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexCount
- theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexAddress_queryline 37 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.explicitToAddressline 43Source documentation
This inverse is a proof adapter only; the output constructor never calls it.
def explicitToAddress (S : Source) (k s d : Nat) : Fin (TableKeysGame.explicitVertexCount S k s d) → Fin (vertexCount S k s d) := …Mentions: OAI.MaxCutGames.Decoder.TableKeysGame.explicitVertexCount, OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexCount
- theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.explicitToAddress_injectiveline 47 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.explicitToAddress_applyline 52 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.semanticToAddressline 58 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.semanticToAddress_injectiveline 62 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.semanticToAddress_applyline 67 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.addressEdgeline 73 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.addressEdge_eq_embedline 81 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.addressEdge_eq_semantic_embedline 88 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstanceline 96Source documentation
The correcting function is not evaluated when producing an edge list.
def outputInstance (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (en : NoiseEnumeration g) : Instance (2^s) where … - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance_eq_embedline 108Source documentation
Every occurrence, its order, and its full permutation table are retained.
theorem outputInstance_eq_embed (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (en : NoiseEnumeration g) : outputInstance S k g en = embedInstance (TableKeysGame.outputInstanceWithEnumeration S k g en) (explicitToAddress S k s d) (explicitToAddress_injective S k s d) := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance, OAI.MaxCutGames.Decoder.TableKeysGame.outputInstanceWithEnumeration, OAI.MaxCutGames.Decoder.TableKeysAddressGame.explicitToAddress, OAI.MaxCutGames.Decoder.TableKeysAddressGame.explicitToAddress_injective
- theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance_lengthline 117 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance_countline 124 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.completeAt_outputInstance_iff_explicitline 135 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.soundAt_outputInstance_iff_explicitline 142 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.completeAt_outputInstance_iffline 149 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.soundAt_outputInstance_iffline 156 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance_translationsline 163 - def
OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutputline 181Source documentation
Fixed finite noise data suffice for executable output.
def tableOutput (S : Source) (k : Nat) {s d : Nat} (T : Integration.NoiseTables.Table s d) : Instance (2^s) := … - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutput_eq_with_witnessline 187Source documentation
The nonlinear correctness witness is erased from the output program.
theorem tableOutput_eq_with_witness (S : Source) (k : Nat) {s d : Nat} (T : Integration.NoiseTables.Table s d) (f : Ambient s d → Alphabet s) (hf : ∀ x c, f (x + (c, 0)) = f x + c) : tableOutput S k T = outputInstance S k (T.gadget f hf) (Integration.TableReduction.tableEnumeration T f hf) := by …Mentions: OAI.MaxCutGames.Integration.NoiseTables.Table, OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutput, OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance, OAI.MaxCutGames.Integration.TableReduction.tableEnumeration
- theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.completeAt_tableOutput_iffline 194 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.soundAt_tableOutput_iffline 202 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutput_translationsline 210 - theorem
OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexCount_eq_polynomialline 216Source documentation
Exact polynomial capacity, without the legacy two-side factor.
theorem vertexCount_eq_polynomial (S : Source) (k s d : Nat) : vertexCount S k s d = (CanonicalAddress.capacityPolynomial k s d).eval (S.«variables» + S.occurrences) := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysAddressGame.vertexCount
- theorem
OAI.MaxCutGames.Decoder.MatrixGap.address_rate_eq_semantic_acceptanceline 236 - theorem
OAI.MaxCutGames.Decoder.MatrixGap.address_value_le_of_semantic_acceptanceline 264Source documentation
Soundness is measured on the generated direct-address instance. Unused addresses and reindexing introduce no additional labeling advantage.
theorem address_value_le_of_semantic_acceptance (S : Source) (k : Nat) {s d : Nat} (T : NoiseTables.Table s d) (f : Ambient s d → Alphabet s) (hf : ∀ x c, f (x + (c, 0)) = f x + c) (h : ∀ labeling : Fin (TableKeysGame.vertexCount S k s d) → Fin (2 ^ s), TableKeysGame.acceptanceProbability S k (T.gadget f hf) labeling ≤ (99 : ℚ) / 100) : InstanceValue.value (TableKeysAddressGame.tableOutput S k T) ≤ (99 : ℝ) / 100 := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysGame.vertexCount, OAI.MaxCutGames.Decoder.TableKeysGame.acceptanceProbability, OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutput
- theorem
OAI.MaxCutGames.Decoder.MatrixGap.semantic_acceptance_le_address_valueline 308Source documentation
Every semantic labeling extends to a labeling of the padded address space. The generated edge list retains its exact acceptance fraction.
theorem semantic_acceptance_le_address_value (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (en : NoiseEnumeration g) (labeling : Fin (TableKeysGame.vertexCount S k s d) → Fin (2 ^ s)) : (TableKeysGame.acceptanceProbability S k g labeling : ℝ) ≤ InstanceValue.value (TableKeysAddressGame.outputInstance S k g en) := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysGame.vertexCount, OAI.MaxCutGames.Decoder.TableKeysGame.acceptanceProbability, OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance
- theorem
OAI.MaxCutGames.Decoder.MatrixGap.address_value_ge_of_near_assignmentline 335Source documentation
The exact near-assignment loss and fair-bit factor one half, measured on the generated address instance and then cast to its real optimum value.
theorem address_value_ge_of_near_assignment (S : Source) (k : Nat) {s d : Nat} (T : NoiseTables.Table s d) (f : Ambient s d → Alphabet s) (hf : ∀ x c, f (x + (c, 0)) = f x + c) (assignment : Fin S.«variables» → Bool) (ξ p : ℚ) (hfailure : S.failure assignment ≤ ξ) (hstable : (T.gadget f hf).stabilityError ≤ p) : (1 : ℝ) - ((k : ℝ) * (ξ : ℝ) + (p : ℝ) / 2) ≤ InstanceValue.value (TableKeysAddressGame.tableOutput S k T) := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysAddressGame.tableOutput
- structure
OAI.MaxCutGames.Decoder.MatrixGap.Parametersline 373Source documentation
Fixed matrix-test parameters, before the separate bipartite subdivision and repetition. Existence is proved by the v2 spectral/decoding argument.
structure Parameters (p : ℚ) where …
- theorem
OAI.MaxCutGames.Decoder.MatrixGap.semantic_rate_le_address_valueline 390Source documentation
The rate of any semantic vertex labeling is realized on the direct address output. Isolated unused addresses receive an arbitrary valid label.
theorem semantic_rate_le_address_value (S : Source) (k : Nat) {s d : Nat} (g : SplitGadget s d) (en : NoiseEnumeration g) (labeling : Fin (TableKeysGame.vertexCount S k s d) → Fin (2 ^ s)) : (GapSemantics.satisfactionRate (TableKeysGame.outputInstance S k g) labeling : ℝ) ≤ InstanceValue.value (TableKeysAddressGame.outputInstance S k g en) := by …Mentions: OAI.MaxCutGames.Decoder.TableKeysGame.vertexCount, OAI.MaxCutGames.Decoder.TableKeysGame.outputInstance, OAI.MaxCutGames.Decoder.TableKeysAddressGame.outputInstance
- def
OAI.MaxCutGames.Decoder.MatrixGap.Parameters.outputline 405Source documentation
The actual output constructor depends only on finite tables, not on the correcting map or its equivariance proof.
def output (P : Parameters p) (S : Source) : Instance (2 ^ P.s) := …
- theorem
OAI.MaxCutGames.Decoder.MatrixGap.Parameters.completenessline 408 - theorem
OAI.MaxCutGames.Decoder.MatrixGap.Parameters.output_translationsline 416