OAI/Computability/UniqueGames/PCP/CloudRoundingLemmas.lean
62 declarations, 0 contain sorry, 0 declared as axioms
Actual finite counting for rounding copied dart labels. Minority color classes are small enough for the cloud's directed-cut expansion. Their boundary darts inject into all label disagreements. A separate endpoint charge counts at most two affected original darts per changed copied label.
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.dart_rejection_count_leline 25 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.colorSetline 74 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minoritySetline 77 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCutline 80 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreementSetline 83 - abbrev
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.Nonmajorline 86 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.exists_max_colorline 89 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.majorityline 96 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.majority_maximalline 100 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.nonchosen_color_twice_leline 106Source documentation
Every nonchosen color occupies at most half the cloud.
theorem nonchosen_color_twice_le (ell : X → A) (m : A) (maximal : ∀ a, (colorSet ell a).card ≤ (colorSet ell m).card) (a : A) (ha : a ≠ m) : 2 * (colorSet ell a).card ≤ Fintype.card X := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.colorSet
- def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minorityEquivline 125 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minority_card_eq_sumline 142 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minorityCutEmbeddingline 148Source documentation
The tail label determines the forgotten minority color.
def minorityCutEmbedding (ell : X → A) (next : X × D → X) (m : A) : (Σ a : Nonmajor m, ↥(directedCut next (colorSet ell a.val))) ↪ ↥(disagreementSet ell next) where …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.Nonmajor, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCut, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.colorSet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreementSet
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minority_cut_sum_leline 174 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minority_expansion_boundline 182Source documentation
Sum genuine directed-cut expansion over the nonchosen color classes.
theorem minority_expansion_bound (ell : X → A) (next : X × D → X) (m : A) (h : ℚ) (maximal : ∀ a, (colorSet ell a).card ≤ (colorSet ell m).card) (expansion : ∀ S : Finset X, S.card ≤ Fintype.card X / 2 → h * (S.card : ℚ) ≤ ((directedCut next S).card : ℚ)) : h * ((minoritySet ell m).card : ℚ) ≤ ((disagreementSet ell next).card : ℚ) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.colorSet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCut, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minoritySet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreementSet
- def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.mismatchSetline 212 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.copiedRejectionCountline 216 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.innerDisagreementSetline 219 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.roundLabelsline 223 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.mismatchFiberEquivline 228Source documentation
Every changed dart belongs to precisely one tail fiber.
def mismatchFiberEquiv (G : ConstraintGraph V E A) (ell : E → A) (rounded : V → A) : (Σ v, ↥(minoritySet (fun e : Cloud G v => ell e.val) (rounded v))) ≃ ↥(mismatchSet G ell rounded) where …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.minoritySet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.mismatchSet
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.mismatch_card_eq_sumline 246 - def
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreementFiberEquivline 254Source documentation
A cloud disagreement is the same actual internal dart in global coordinates.
def disagreementFiberEquiv (G : ConstraintGraph V E A) (H : ∀ v, PortGraph (Cloud G v) D) (ell : E → A) : (Σ v, ↥(disagreementSet (fun e : Cloud G v => ell e.val) (fun ed => ((H v).rot ed).1))) ≃ ↥(innerDisagreementSet G H ell) where …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreementSet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.innerDisagreementSet
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.disagreement_card_eq_sumline 276 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.rounded_mismatch_expansionline 285Source documentation
No uniform cloud-size hypothesis occurs in this finite sum.
theorem rounded_mismatch_expansion [Nonempty A] (G : ConstraintGraph V E A) (H : ∀ v, PortGraph (Cloud G v) D) (ell : E → A) (h : ℚ) (expansion : ∀ v (S : Finset (Cloud G v)), S.card ≤ Fintype.card (Cloud G v) / 2 → h * (S.card : ℚ) ≤ ((directedCut (fun ed => ((H v).rot ed).1) S).card : ℚ)) : h * ((mismatchSet G ell (roundLabels G ell)).card : ℚ) ≤ ((innerDisagreementSet G H ell).card : ℚ) := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCut, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.mismatchSet, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.roundLabels, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.innerDisagreementSet
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.rounded_endpoint_boundline 302 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.copied_satisfied_inlline 309 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.copied_satisfied_inrline 315 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.replacement_rejection_splitline 322Source documentation
Exact rejection count for arbitrary copied labels, including cloud violations.
theorem replacement_rejection_split (G : ConstraintGraph V E A) (H : ∀ v, PortGraph (Cloud G v) D) (ell : E → A) : (replacementGraph G H).rejectionCount ell = copiedRejectionCount G ell + (innerDisagreementSet G H ell).card := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.copiedRejectionCount, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.innerDisagreementSet
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.replacement_soundnessline 335Source documentation
Directed expansion by two pays for both changed endpoints exactly.
theorem replacement_soundness [Nonempty A] (G : ConstraintGraph V E A) (H : ∀ v, PortGraph (Cloud G v) D) (expansion : ∀ v (S : Finset (Cloud G v)), S.card ≤ Fintype.card (Cloud G v) / 2 → 2 * S.card ≤ (directedCut (fun ed => ((H v).rot ed).1) S).card) (ell : E → A) : G.rejectionCount (roundLabels G ell) ≤ (replacementGraph G H).rejectionCount ell := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCut, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.roundLabels
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.padded_replacement_soundnessline 352Source documentation
Padding changes the normalization, but never the rounded absolute rejection count.
theorem padded_replacement_soundness [Nonempty A] (G : ConstraintGraph V E A) (dummy : V → Type*) [∀ v, Fintype (dummy v)] [∀ v, DecidableEq (dummy v)] (H : ∀ v, PortGraph (Cloud (paddedGraph G dummy) v) D) (expansion : ∀ v (S : Finset (Cloud (paddedGraph G dummy) v)), S.card ≤ Fintype.card (Cloud (paddedGraph G dummy) v) / 2 → 2 * S.card ≤ (directedCut (fun ed => ((H v).rot ed).1) S).card) (ell : PaddedDart G dummy → A) : G.rejectionCount (roundLabels (paddedGraph G dummy) ell) ≤ (paddedReplacementGraph G dummy H).rejectionCount ell := by …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.directedCut, OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.roundLabels
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.CloudRounding.combine_countsline 368Source documentation
The exact coefficient obtained by combining endpoint charging and expansion.
theorem combine_counts (R b M c : Nat) (h : ℚ) (hh : 0 < h) (endpoint : R ≤ b + 2 * M) (cloud : h * (M : ℚ) ≤ (c : ℚ)) : (R : ℚ) ≤ max 1 (2 / h) * ((b : ℚ) + (c : ℚ)) := by … - abbrev
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Labelline 409 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rowIndexline 411 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rowIndex_valline 414 - structure
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Tableline 418Source documentation
Finite executable input data, with the two graph laws certified on lookup.
structure Table (vertices ports : Nat) where …
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rotationline 430Source documentation
One reverse-index lookup and the fixed mixed-radix decoding.
def rotation (table : Table n d) (e : Fin n × Fin d) : Fin n × Fin d := …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.acceptsline 434Source documentation
Lookup of the full stored binary predicate.
def accepts (table : Table n d) (e : Fin n × Fin d) (a b : Label) : Bool := …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table, OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Label
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rowIndex_rotationline 437 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rotation_involutiveline 441 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.accepts_rotationline 447 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.portGraphline 452Source documentation
The actual reversible regular port graph represented by the vectors.
def portGraph (table : Table n d) : PortGraph (Fin n) (Fin d) where …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.portGraph_rotline 460 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.baseGraphline 464Source documentation
Constraint-graph semantics, with each vertex-port pair a distinct dart.
def baseGraph (table : Table n d) : ConstraintGraph (Fin n) (Fin n × Fin d) Label where …
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table, OAI.UniqueGamesTheorem.Foundations.PCP.ConstraintGraph, OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Label
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.baseGraph_reverseline 471 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.baseGraph_tailline 474 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.baseGraph_headline 477 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.baseGraph_acceptsline 480 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.ofPortGraphline 484Source documentation
Materialize a reversible port graph and its predicates into the fixed rows.
def ofPortGraph (G : PortGraph (Fin n) (Fin d)) (predicate : (Fin n × Fin d) → Label → Label → Bool) (htranspose : ∀ e a b, predicate (G.rot e) b a = predicate e a b) : Table n d where …Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Label, OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table
- theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.rotation_ofPortGraphline 501 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.accepts_ofPortGraphline 508 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.flatRowsline 516 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.reverseAt_flatRowsline 520 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.acceptsAt_flatRowsline 524 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.flatRows_validline 528 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.graphTableline 535 - def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.tableWordsline 539Source documentation
Existing graph codec, with header
[n,n*d]and 4098 words in every row.def tableWords (table : Table n d) : List Nat := GraphTables.tableWords (graphTable table)
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table, OAI.UniqueGamesTheorem.Foundations.PCP.GraphTables.tableWords, OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.graphTable
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.tableBitsline 541 - abbrev
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Inputline 544Source documentation
Variable vertex count, with the port count fixed by the input family.
abbrev Input (ports : Nat) := (vertices : Nat) × Table vertices ports
Mentions: OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.Table
- def
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.inputBitsline 546 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.tableWords_eqline 548 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.tableWords_lengthline 551 - theorem
OAI.UniqueGamesTheorem.Foundations.PCP.PortTables.vertices_le_tableBits_lengthline 555