OAI/Computability/MaxCut/Games/IncidenceExtraction.lean
99 declarations, 0 contain sorry, 0 declared as axioms
The next definitions separate local strategies from arbitrary joint strategies.
Each question reconstruction and each answer extraction has access to only one
player's question. A value conditioned on by an analysis may occur as a fixed
parameter of a LocalSimulation; it cannot become an additional random input.
- abbrev
OAI.MaxCutGames.Soundness.IncidenceExtraction.Tripleline 8 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.xorTripleline 10 - structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidenceline 12 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence.acceptsline 16 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence.namedAcceptsline 23Source documentation
The incidence predicate as a game on the actual questions
(o,n), with the retained slot left internal to the verifier.def Incidence.namedAccepts {Occurrence Name : Type} (g : Incidence Occurrence Name) (o : Occurrence) (n : Name) (a : Triple) (b : Bool) : Prop := …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.IncidenceExtraction.Triple
- theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence.accepts_implies_namedAcceptsline 28 - theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence.namedAccepts_iff_acceptsline 36Source documentation
Distinct names make the named-variable predicate equivalent to the sampled retained-slot predicate, without revealing that slot to either strategy.
theorem Incidence.namedAccepts_iff_accepts {Occurrence Name : Type} (g : Incidence Occurrence Name) (distinct : ∀ o i j, g.name o i = g.name o j → i = j) (o : Occurrence) (i : Fin 3) (a : Triple) (b : Bool) : g.namedAccepts o (g.name o i) a b ↔ g.accepts o i a b := by …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.IncidenceExtraction.Triple
- structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.FullPointline 47 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.FullPoint.validline 51 - structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.PartnerPointline 56 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.AugmentedAcceptsline 61Source comment
Only the single positions matter to the extracted incidence game.def AugmentedAccepts {Position Occurrence Name : Type} (g : Incidence Occurrence Name) (u : Position → Occurrence) (active : Position → Prop) (slot : Position → Fin 3) (eA : FullPoint Position) (eB : PartnerPoint Position) : Prop := …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.IncidenceExtraction.FullPoint, OAI.MaxCutGames.Soundness.IncidenceExtraction.PartnerPoint
- def
OAI.MaxCutGames.Soundness.IncidenceExtraction.RepeatedAcceptsline 68 - theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.augmented_accepts_implies_repeated_acceptsline 76Source documentation
Acceptance of the augmented projection game implies acceptance of every incidence coordinate in any subset of the active positions.
theorem augmented_accepts_implies_repeated_accepts {Position Occurrence Name : Type} (g : Incidence Occurrence Name) (u : Position → Occurrence) (active inside : Position → Prop) (slot : Position → Fin 3) (eA : FullPoint Position) (eB : PartnerPoint Position) (hinside : ∀ j, inside j → active j) (haccept : AugmentedAccepts g u active slot eA eB) : RepeatedAccepts g u slot inside eA.coords eB.single := by …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.IncidenceExtraction.FullPoint, OAI.MaxCutGames.Soundness.IncidenceExtraction.PartnerPoint, OAI.MaxCutGames.Soundness.IncidenceExtraction.AugmentedAccepts, OAI.MaxCutGames.Soundness.IncidenceExtraction.RepeatedAccepts
- theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.augmented_accepts_implies_named_repeated_acceptsline 93Source documentation
The same containment stated on the occurrence/name question vectors actually given to the two repeated-game players.
theorem augmented_accepts_implies_named_repeated_accepts {Position RepeatPosition Occurrence Name : Type} (g : Incidence Occurrence Name) (u : Position → Occurrence) (active : Position → Prop) (slot : Position → Fin 3) (embed : RepeatPosition → Position) (eA : FullPoint Position) (eB : PartnerPoint Position) (hinside : ∀ r, active (embed r)) (haccept : AugmentedAccepts g u active slot eA eB) : ∀ r, g.namedAccepts (u (embed r)) (g.name (u (embed r)) (slot (embed r))) (eA.coords (embed r)) (eB.single (embed r)) := by …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.IncidenceExtraction.FullPoint, OAI.MaxCutGames.Soundness.IncidenceExtraction.PartnerPoint, OAI.MaxCutGames.Soundness.IncidenceExtraction.AugmentedAccepts
- structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.Gameline 119 - structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.Strategiesline 122 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.Strategies.winsline 126 - structure
OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulationline 130 - def
OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulation.inducedline 142 - theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulation.induced_winsline 154Source documentation
A local simulation transports every deterministic strategy and contains its winning event pointwise. No shared access to the questions is used.
theorem LocalSimulation.induced_wins {InnerQA InnerQB InnerA InnerB OuterQA OuterQB OuterA OuterB : Type} {inner : Game InnerQA InnerQB InnerA InnerB} {outer : Game OuterQA OuterQB OuterA OuterB} (r : LocalSimulation inner outer) (s : Strategies OuterQA OuterQB OuterA OuterB) (qa : InnerQA) (qb : InnerQB) (hwins : s.wins outer (r.questionA qa) (r.questionB qb)) : (r.induced s).wins inner qa qb := …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Game, OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulation, OAI.MaxCutGames.Soundness.IncidenceExtraction.Strategies
- theorem
OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulation.seeded_induced_winsline 167Source documentation
Fixing strategy randomness gives another local deterministic strategy; the simulation proof applies to every seed, before any averaging.
theorem LocalSimulation.seeded_induced_wins {InnerQA InnerQB InnerA InnerB OuterQA OuterQB OuterA OuterB Seed : Type} {inner : Game InnerQA InnerQB InnerA InnerB} {outer : Game OuterQA OuterQB OuterA OuterB} (r : LocalSimulation inner outer) (strategy : Seed → Strategies OuterQA OuterQB OuterA OuterB) (seed : Seed) (qa : InnerQA) (qb : InnerQB) (hwins : (strategy seed).wins outer (r.questionA qa) (r.questionB qb)) : (r.induced (strategy seed)).wins inner qa qb := …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Game, OAI.MaxCutGames.Soundness.IncidenceExtraction.LocalSimulation, OAI.MaxCutGames.Soundness.IncidenceExtraction.Strategies
- def
OAI.MaxCutGames.Soundness.ConcreteExtraction.slotIndexline 189 - def
OAI.MaxCutGames.Soundness.ConcreteExtraction.tripleCoordinatesline 194 - theorem
OAI.MaxCutGames.Soundness.ConcreteExtraction.parity_coordinatesline 197 - theorem
OAI.MaxCutGames.Soundness.ConcreteExtraction.retained_coordinatesline 200 - def
OAI.MaxCutGames.Soundness.ConcreteExtraction.fullPointline 204 - def
OAI.MaxCutGames.Soundness.ConcreteExtraction.partnerPointline 208 - theorem
OAI.MaxCutGames.Soundness.ConcreteExtraction.actual_projection_acceptsline 214Source documentation
Concrete projection acceptance implies the coordinate-level acceptance relation used to extract a repeated incidence strategy.
theorem actual_projection_accepts {P O N : Type} (g : IncidenceExtraction.Incidence O N) (u : P → O) (active : P → Bool) (slot : P → PartnerProjection.Slot) (x : PartnerProjection.SourcePoint (fun j => g.rhs (u j))) (y : PartnerProjection.PartnerPoint (fun j => g.rhs (u j)) active) (hone : x.homogeneous = true) (hproject : PartnerProjection.project (fun j => g.rhs (u j)) active slot x = y) : IncidenceExtraction.AugmentedAccepts g u (fun j => active j = true) (fun j => slotIndex (slot j)) (fullPoint x) (partnerPoint y) := by …Mentions: OAI.MaxCutGames.Soundness.IncidenceExtraction.Incidence, OAI.MaxCutGames.Soundness.PartnerProjection.Slot, OAI.MaxCutGames.Soundness.PartnerProjection.SourcePoint, OAI.MaxCutGames.Soundness.PartnerProjection.PartnerPoint, OAI.MaxCutGames.Soundness.PartnerProjection.project, OAI.MaxCutGames.Soundness.IncidenceExtraction.AugmentedAccepts, OAI.MaxCutGames.Soundness.ConcreteExtraction.slotIndex, OAI.MaxCutGames.Soundness.ConcreteExtraction.fullPoint, OAI.MaxCutGames.Soundness.ConcreteExtraction.partnerPoint
- theorem
OAI.MaxCutGames.Soundness.ConcreteExtraction.actual_projection_implies_named_repetitionline 237 - abbrev
OAI.MaxCutGames.Reduction.ActualHomogeneous.Eline 262 - abbrev
OAI.MaxCutGames.Reduction.ActualHomogeneous.Ambientline 263 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.tauline 265 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.hBasisline 266 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.firstBasisline 267 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.secondBasisline 268 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.coordinateBasisline 269 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.tau_hBasisline 272 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.tau_firstBasisline 273 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.tau_secondBasisline 274 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.pair_fst_iteline 276 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.pair_snd_iteline 278 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.coordinate_decompositionline 281 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.linearMap_expansionline 291 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.homogeneousline 298 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.embedline 318 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.embed_memline 332 - def
OAI.MaxCutGames.Reduction.ActualHomogeneous.equivalenceline 341 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.finrank_Eline 363 - theorem
OAI.MaxCutGames.Reduction.ActualHomogeneous.finrank_homogeneousline 366 - inductive
OAI.MaxCutGames.Reduction.ActualCanonical.Recordline 382 - def
OAI.MaxCutGames.Reduction.ActualCanonical.recordEquivline 388 - instance
OAI.MaxCutGames.Reduction.ActualCanonical.(instance at line 400)line 400 - abbrev
OAI.MaxCutGames.Reduction.ActualCanonical.Dataline 403 - def
OAI.MaxCutGames.Reduction.ActualCanonical.pivotline 406 - def
OAI.MaxCutGames.Reduction.ActualCanonical.translateline 409 - def
OAI.MaxCutGames.Reduction.ActualCanonical.normalizeline 410 - def
OAI.MaxCutGames.Reduction.ActualCanonical.recordline 412 - def
OAI.MaxCutGames.Reduction.ActualCanonical.dataline 420 - def
OAI.MaxCutGames.Reduction.ActualCanonical.standardTripleline 424 - def
OAI.MaxCutGames.Reduction.ActualCanonical.canonicalline 427 - def
OAI.MaxCutGames.Reduction.ActualCanonical.ambientEvalline 431 - def
OAI.MaxCutGames.Reduction.ActualCanonical.Representsline 435 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.add_selfline 439 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.add_bothline 445 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.pivot_translateline 451 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.normalize_translateline 457 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.record_translateline 464 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.data_gaugeline 470 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.data_global_shiftline 480 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.canonical_shiftline 488 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.ambientEval_hBasisline 502 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.ambientEval_firstBasisline 507 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.ambientEval_secondBasisline 519 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.standard_representsline 532Source documentation
Every actual linear map has the claimed ambient coefficient extension.
theorem standard_represents (b : Fin k → F2) (X : E k →ₗ[F2] R) : Represents b (X (hBasis k)) (standardTriple X) X := by …Mentions: OAI.MaxCutGames.Reduction.ActualCanonical.Represents, OAI.MaxCutGames.Reduction.ActualCanonical.standardTriple
- theorem
OAI.MaxCutGames.Reduction.ActualCanonical.extension_coefficientsline 539Source documentation
Equality on the homogeneous space forces the free-coordinate identities.
theorem extension_coefficients (b : Fin k → F2) (z : R) (a : Fin k → Fin 3 → R) (X : E k →ₗ[F2] R) (h : Represents b z a X) : X (hBasis k) = z + ∑ j, b j • a j 2 ∧ ∀ j, X (firstBasis j) = a j 0 + a j 2 ∧ X (secondBasis j) = a j 1 + a j 2 := by …Mentions: OAI.MaxCutGames.Reduction.ActualCanonical.Represents
- theorem
OAI.MaxCutGames.Reduction.ActualCanonical.canonical_eq_of_extensionline 551Source documentation
Every ambient extension of a genuine map gives the same canonical data.
theorem canonical_eq_of_extension (occ : Fin k → Id) (names : Id → Fin 3 → Name) (rhs : Id → F2) (z : R) (a : Fin k → Fin 3 → R) (X : E k →ₗ[F2] R) (h : Represents (fun j => rhs (occ j)) z a X) : canonical occ names rhs X = data occ names rhs z a := by …Mentions: OAI.MaxCutGames.Reduction.ActualCanonical.Represents, OAI.MaxCutGames.Reduction.ActualCanonical.canonical, OAI.MaxCutGames.Reduction.ActualCanonical.data
- theorem
OAI.MaxCutGames.Reduction.ActualCanonical.extension_independentline 566 - def
OAI.MaxCutGames.Reduction.ActualCanonical.singletonTripleline 574 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.pivot_singletonline 577 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.record_singletonline 582 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.singleton_global_adjustmentline 589 - theorem
OAI.MaxCutGames.Reduction.ActualCanonical.singleton_localityline 595Source documentation
The hidden occurrence and its internal slot cannot affect a retained single-variable record. The occurrence need not differ from other positions.
theorem singleton_locality (names : Id → Fin 3 → Name) (e e' : Id) (i i' : Fin 3) (c : R) (hname : names e i = names e' i') : record names e (singletonTriple i c) = record names e' (singletonTriple i' c) := by …Mentions: OAI.MaxCutGames.Reduction.ActualCanonical.record, OAI.MaxCutGames.Reduction.ActualCanonical.singletonTriple
- def
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.selectedFreeline 617 - def
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.ambientCoefficientsline 624 - def
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.freePullbackline 631 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.ofBit_andline 637 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.inverse_homogeneousline 640 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.inverse_firstline 644 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.inverse_secondline 648 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.inverse_retained_freeline 652 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.freePullback_expansionline 666 - def
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.outsideInsideEquivline 680 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.sum_outside_insideline 691 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.raw_representsline 702 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.canonical_raw_pullbackline 730 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.ambientCoefficients_singleline 740 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.ambientCoefficients_full_eqline 749 - theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.raw_data_localityline 757Source documentation
Raw canonical data is determined by the full displayed occurrences and retained variable names. Hidden single occurrences and slot indices vanish.
theorem raw_data_locality [DecidableEq R] {Id Name : Type} (names : Id → Fin 3 → Name) (rhs : Id → F2) (occ occ' : Fin k → Id) (slot slot' : Fin k → Slot) (gamma : RawCoefficients J R) (hfull : ∀ j, j ∉ J → occ j = occ' j) (hsingle : ∀ j, j ∈ J → names (occ j) (ConcreteExtraction.slotIndex (slot j)) = names (occ' j) (ConcreteExtraction.slotIndex (slot' j))) : ActualCanonical.data occ names rhs (gamma none) (ambientCoefficients J R gamma slot) = ActualCanonical.data occ' names rhs (gamma none) (ambientCoefficients J R gamma slot') := by …Mentions: OAI.MaxCutGames.Soundness.ConcreteExtraction.slotIndex, OAI.MaxCutGames.Soundness.ActualCanonicalPullback.ambientCoefficients
- theorem
OAI.MaxCutGames.Soundness.ActualCanonicalPullback.canonical_private_input_localityline 786Source documentation
Lemma 6.2 for the actual pullbacks in the shared F₂ coordinate model.
theorem canonical_private_input_locality [DecidableEq R] {Id Name : Type} [DecidableEq Id] [DecidableEq Name] (names : Id → Fin 3 → Name) (rhs : Id → F2) (occ occ' : Fin k → Id) (slot slot' : Fin k → Slot) (gamma : RawCoefficients J R) (hfull : ∀ j, j ∉ J → occ j = occ' j) (hsingle : ∀ j, j ∈ J → names (occ j) (ConcreteExtraction.slotIndex (slot j)) = names (occ' j) (ConcreteExtraction.slotIndex (slot' j))) : ActualCanonical.canonical occ names rhs (freePullback (fun j => toBit (rhs (occ j))) J R gamma slot) = ActualCanonical.canonical occ' names rhs (freePullback (fun j => toBit (rhs (occ' j))) J R gamma slot') := by …Mentions: OAI.MaxCutGames.Soundness.ConcreteExtraction.slotIndex, OAI.MaxCutGames.Soundness.ActualCanonicalPullback.freePullback