OAI/Computability/MaxCut/PCP/CayleySampling.lean
84 declarations, 0 contain sorry, 0 declared as axioms
Actual finite binary-word tail counts for the proposed Cayley base graph.
No expander, independence, spectral, or random-generator existence result is assumed here.
- abbrev
OAI.MaxCutGames.Foundations.PCP.CayleySampling.FalseFiberline 17Source documentation
The common fiber left after separating a Boolean character's sign.
abbrev FalseFiber (χ : V → Bool) := {x : V // χ x = false} - def
OAI.MaxCutGames.Foundations.PCP.CayleySampling.falseRepresentativeline 19 - def
OAI.MaxCutGames.Foundations.PCP.CayleySampling.booleanSplitEquivline 24 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.booleanSplitEquiv_fstline 40 - def
OAI.MaxCutGames.Foundations.PCP.CayleySampling.sampleSplitEquivline 44 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.sampleSplitEquiv_fstline 50 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.card_boolean_splitline 54 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.expect_boolean_samplesline 59 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.exists_true_of_ne_zeroline 79 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.expect_parity_samplesline 90Source documentation
Actual parity words from independently indexed uniform cube vectors have exactly the uniform Boolean-word distribution.
theorem expect_parity_samples (s : Cube I) (hs : s ≠ fun _ => false) (F : (D → Bool) → ℝ) : (𝔼 g : D → Cube I, F (fun d => AssignmentTester.parity s (g d))) = 𝔼 b : D → Bool, F b := by …Mentions: OAI.MaxCutGames.Foundations.PCP.AssignmentTester.parity
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.expect_walsh_samplesline 100Source documentation
The same joint law expressed with the actual real Walsh character values.
theorem expect_walsh_samples (s : Cube I) (hs : s ≠ fun _ => false) (F : (D → ℝ) → ℝ) : (𝔼 g : D → Cube I, F (fun d => walsh s (g d))) = 𝔼 b : D → Bool, F (fun d => bitSign (b d)) := by … - theorem
OAI.MaxCutGames.Foundations.PCP.CayleySampling.expect_walsh_meanline 109Source documentation
In particular, any test of the empirical Walsh bias has the corresponding uniform Boolean-word average. This is the eigenvalue sampling law.
theorem expect_walsh_mean (s : Cube I) (hs : s ≠ fun _ => false) (F : ℝ → ℝ) : (𝔼 g : D → Cube I, F (𝔼 d, walsh s (g d))) = 𝔼 b : D → Bool, F (𝔼 d, bitSign (b d)) := … - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.upperMasksline 131 - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.lowerMasksline 134 - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badMasksline 137 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.upperMasks_weightline 142Source documentation
Weight every actual upper-tail mask by at least
3 ^ (3 * m).theorem upperMasks_weight (s : Finset α) (m : ℕ) (hcard : s.card = 4 * m) : (upperMasks s m).card * 3 ^ (3 * m) ≤ 4 ^ (4 * m) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.upperMasks
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.lowerMasks_complement_imageline 160Source documentation
Complementation preserves multiplicity and exchanges the two closed tails.
theorem lowerMasks_complement_image (s : Finset α) (m : ℕ) (hcard : s.card = 4 * m) : (lowerMasks s m).image (fun t => s \ t) = upperMasks s m := by …Mentions: OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.lowerMasks, OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.upperMasks
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.lowerMasks_card_eq_upperMasksline 183 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.ratio_le_of_weight_inline_CayleyTailCountline 197 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.upperMasks_ratio_leline 211 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.lowerMasks_ratio_leline 216 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badMasks_ratio_le_sharpline 221 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badMasks_ratio_leline 236 - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.trueMaskline 246 - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.countTrueline 249 - def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badWordline 251 - instance
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.(instance at line 254)line 254 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.bitSign_mean_eqline 258Source documentation
The sign convention is the existing Walsh convention: false is +1, true is -1.
theorem bitSign_mean_eq [Nonempty D] (word : D → Bool) : (𝔼 i, bitSign (word i)) = 1 - 2 * ((countTrue word : ℝ) / Fintype.card D) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.countTrue
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.not_badWord_biasline 275Source documentation
Excluding both closed integer tails bounds the actual mean Walsh sign.
theorem not_badWord_bias (m : ℕ) (hcard : Fintype.card D = 4 * m) (hm : 0 < m) (word : D → Bool) (hword : ¬ badWord m word) : |𝔼 i, bitSign (word i)| ≤ (1 / 2 : ℝ) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badWord
- def
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.wordMaskEquivline 296Source documentation
All words occur once, so subset counting keeps the actual uniform law.
def wordMaskEquiv [DecidableEq D] : (D → Bool) ≃ Finset D where …
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.twoTail_probabilityline 307Source documentation
Actual real uniform expectation on binary words, including both closed tails.
theorem twoTail_probability [DecidableEq D] (m : ℕ) (hcard : Fintype.card D = 4 * m) : (𝔼 word : D → Bool, if badWord m word then (1 : ℝ) else 0) ≤ 2 * (2 / 3 : ℝ) ^ m := by …Mentions: OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.badWord
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.union_bound_le_halfline 329Source documentation
Numerical budget for a union bound over at most
2 ^ nfrequencies.theorem union_bound_le_half (n m : ℕ) (hm : 3 * (n + 2) ≤ m) : (2 : ℝ) ^ n * (2 * (2 / 3 : ℝ) ^ m) ≤ 1 / 2 := by … - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.fixed_parametersline 347Source documentation
The proposed fixed parameters meet the elementary counting margin.
theorem fixed_parameters : 3 * (448 + 2) ≤ 16384 ∧ 4 * 16384 = 2 ^ 16 := by …
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.fixed_union_boundline 350 - theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.seventh_power_sizeline 355Source documentation
Pure parameter identity; this does not assert existence of a graph.
theorem seventh_power_size : (2 : ℕ) ^ 448 = (((2 : ℕ) ^ 16) ^ 7) ^ 4 := by …
- theorem
OAI.MaxCutGames.Foundations.PCP.CayleyTailCount.seventh_power_abs_leline 359Source documentation
Pure scalar estimate, ready for a separately proved spectral powering theorem.
theorem seventh_power_abs_le {a : ℝ} (ha : |a| ≤ 1 / 2) : |a ^ 7| ≤ 1 / 128 := by … - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.meanline 374 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.energyline 376 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlationline 378 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.averagingOperatorline 381 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.iterateOperatorline 384 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfileline 389 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensityline 392 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.markedStepline 395 - def
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMassline 399 - structure
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificateline 403 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_eq_sum_div_cardline 416 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_equivline 420 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_prodline 424 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_constline 429 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_addline 432 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_subline 436 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_mul_leftline 440 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_mul_rightline 444 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_nonnegativeline 448 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_monoline 451 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.energy_nonnegativeline 454 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlation_sq_leline 458Source documentation
The finite Cauchy--Schwarz inequality, in the chosen normalized convention.
theorem correlation_sq_le (f g : A → ℝ) : correlation f g ^ 2 ≤ energy f * energy g := …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlation, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.energy
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.energy_sub_constline 462 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlation_sub_constline 471 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_operatorline 491 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.operator_sub_constline 501 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_iterateline 509 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.iterate_sub_constline 515 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean_markedStepline 524Source documentation
Reversal moves the first marked edge to its endpoint. The profile therefore appears at the endpoint, before the
gapremaining vertex transitions.theorem mean_markedStep (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (f : V → ℝ) : mean (markedStep G bad f) = correlation (edgeProfile bad) f := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.markedStep, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlation, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfile
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass_eq_correlationline 552 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.iterate_energy_boundline 561 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.zero_mean_correlation_boundline 576 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.correlation_centeredline 591 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity_eq_edge_meanline 608Source documentation
Density is exactly the uniform probability of a marked directed port-edge.
theorem edgeDensity_eq_edge_mean (bad : V × D → Bool) : edgeDensity bad = mean (fun e => if bad e then (1 : ℝ) else 0) := …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.mean
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity_eq_cardline 615Source documentation
The edge convention counts each directed port once, including parallel edges and loops. Thus the density is literally the marked-edge cardinal ratio.
theorem edgeDensity_eq_card (bad : V × D → Bool) : edgeDensity bad = ((Finset.univ.filter (fun e => bad e = true)).card : ℝ) / (Fintype.card (V × D) : ℝ) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfile_nonnegativeline 623 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfile_le_oneline 627 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity_nonnegativeline 635 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity_le_oneline 638 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfile_energy_le_densityline 644 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeProfile_centered_energyline 651 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass_le_sharpline 662Source documentation
Sharp return bound. No division by the bad-edge density occurs, so the empty bad set is covered.
gap = 0gives the adjacent-edge upper boundepsilon.theorem returnMass_le_sharp (G : PortGraph V D) (lambda : ℝ) (certificate : SpectralCertificate G lambda) (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (gap : Nat) : returnMass G bad gap ≤ edgeDensity bad ^ 2 + lambda ^ gap * (edgeDensity bad * (1 - edgeDensity bad)) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificate, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass_leline 679Source documentation
The simple bound used in the second-moment estimate.
theorem returnMass_le (G : PortGraph V D) (lambda : ℝ) (certificate : SpectralCertificate G lambda) (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (gap : Nat) : returnMass G bad gap ≤ edgeDensity bad ^ 2 + edgeDensity bad * lambda ^ gap := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificate, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.adjacent_returnMass_leline 689 - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.geometric_sum_leline 701Source documentation
The finite geometric-series bound that absorbs forward and reverse returns. It applies to every finite window, with no limiting probability argument.
theorem geometric_sum_le (lambda : ℝ) (h0 : 0 ≤ lambda) (h1 : lambda < 1) (n : Nat) : (∑ k ∈ Finset.range n, lambda ^ k) ≤ 1 / (1 - lambda) := by … - theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.sum_returnMass_leline 715Source documentation
The return contribution from one marked edge, over a finite forward window.
theorem sum_returnMass_le (G : PortGraph V D) (lambda : ℝ) (certificate : SpectralCertificate G lambda) (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (n : Nat) : (∑ gap ∈ Finset.range n, returnMass G bad gap) ≤ (n : ℝ) * edgeDensity bad ^ 2 + edgeDensity bad / (1 - lambda) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificate, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.triangular_returnMass_sum_leline 737Source documentation
Sum over all distinct ordered-time pairs, counting each pair once. The row for the later edge
jhas gaps0,...,j-1.theorem triangular_returnMass_sum_le (G : PortGraph V D) (lambda : ℝ) (certificate : SpectralCertificate G lambda) (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (n : Nat) : (∑ j ∈ Finset.range n, ∑ gap ∈ Finset.range j, returnMass G bad gap) ≤ ((n : ℝ) * ((n : ℝ) - 1) / 2) * edgeDensity bad ^ 2 + (n : ℝ) * (edgeDensity bad / (1 - lambda)) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificate, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity
- theorem
OAI.MaxCutGames.Foundations.PCP.SpectralReturn.secondMoment_return_envelopeline 759Source documentation
The exact finite envelope needed after expanding the square of the hit count. The diagonal contributes
n * epsilon; both off-diagonal triangles contribute twice the return sum. The actual walk-event identity is supplied byPoweringMomentandPoweringReturn.theorem secondMoment_return_envelope (G : PortGraph V D) (lambda : ℝ) (certificate : SpectralCertificate G lambda) (bad : V × D → Bool) (reversal : ∀ e, bad (G.rot e) = bad e) (n : Nat) : (n : ℝ) * edgeDensity bad + 2 * (∑ j ∈ Finset.range n, ∑ gap ∈ Finset.range j, returnMass G bad gap) ≤ (n : ℝ) * edgeDensity bad * (1 + 2 / (1 - lambda) + ((n : ℝ) - 1) * edgeDensity bad) := by …Mentions: OAI.MaxCutGames.Foundations.PCP.SpectralReturn.SpectralCertificate, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.edgeDensity, OAI.MaxCutGames.Foundations.PCP.SpectralReturn.returnMass