OAI/Probability/DilutedSpin/FiniteLaw.lean
74 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.DilutedSpinGlass.FiniteLawline 12Source documentation
A finite conditional path law. Used only for the finite-kernel proof steps.
structure FiniteLaw (Ω : Type*) [Fintype Ω] where …
- def
OAI.DilutedSpinGlass.FiniteLaw.expectline 21 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_constline 23 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_addline 26 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_subline 30 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_mul_leftline 34 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_mul_rightline 38 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_divline 42 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_negline 46 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_sumline 50 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_finset_sumline 56Source comment
Finset.sum one-binder version, deliberately avoiding simp's double-binder notation.theorem expect_finset_sum {ι : Type*} (s : Finset ι) (f : ι → Ω → ℝ) : P.expect (fun x => ∑ i ∈ s, f i x) = ∑ i ∈ s, P.expect (f i) := … - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_fintype_sumline 60 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_congrline 65 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_nonnegline 68 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_monoline 71 - def
OAI.DilutedSpinGlass.FiniteLaw.covarianceline 74 - theorem
OAI.DilutedSpinGlass.FiniteLaw.covariance_centeredline 77 - theorem
OAI.DilutedSpinGlass.FiniteLaw.difference_productline 86Source documentation
Two independent centered copies have second moment twice the covariance.
theorem difference_product (f g : Ω → ℝ) : P.expect (fun y => P.expect (fun z => (f y - f z) * (g y - g z))) = 2 * P.covariance f g := by … - def
OAI.DilutedSpinGlass.FiniteLaw.dotline 98Source documentation
The normalized site contraction used in sections/decorrelation.tex.
noncomputable def dot {n : ℕ} (x y : Fin n → ℝ) : ℝ := … - theorem
OAI.DilutedSpinGlass.FiniteLaw.dot_sub_rightline 103 - theorem
OAI.DilutedSpinGlass.FiniteLaw.dot_sqline 107 - theorem
OAI.DilutedSpinGlass.FiniteLaw.three_copy_identityline 120Source documentation
Exact finite-conditional-law three-copy identity, with a square remainder. No boundedness assumption is needed for this algebraic ingredient.
theorem three_copy_identity (X : Ω → Fin n → ℝ) : P.expect (fun x => P.expect (fun y => P.expect (fun z => (dot (X x) (X y) - dot (X x) (X z))^2))) = (2 / (n : ℝ)^2) * ((∑ i, ∑ j, P.covariance (fun x => X x i) (fun x => X x j)^2) + P.expect (fun x => (∑ i, P.expect (fun y => X y i) * (X x i - P.expect (fun y => X y i)))^2)) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.dot
- theorem
OAI.DilutedSpinGlass.FiniteLaw.three_copy_boundline 174Source documentation
decor:three-copy-bound for each finite conditional path law.
theorem three_copy_bound (X : Ω → Fin n → ℝ) : (2 / (n : ℝ)^2) * (∑ i, ∑ j, P.covariance (fun x => X x i) (fun x => X x j)^2) ≤ P.expect (fun x => P.expect (fun y => P.expect (fun z => (dot (X x) (X y) - dot (X x) (X z))^2))) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.dot
- def
OAI.DilutedSpinGlass.FiniteLaw.covarianceEnergyline 185Source documentation
Squared conditional covariance density.
noncomputable def covarianceEnergy (X : Ω → Fin n → ℝ) : ℝ := …
- theorem
OAI.DilutedSpinGlass.FiniteLaw.normalized_abs_sum_leline 189Source documentation
Matrix Cauchy-Schwarz with exactly the manuscript's normalization.
theorem normalized_abs_sum_le (C : Fin n → Fin n → ℝ) : (∑ i, ∑ j, |C i j|) / (n : ℝ)^2 ≤ Real.sqrt ((∑ i, ∑ j, C i j ^ 2) / (n : ℝ)^2) := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.centered_contraction_identityline 206Source documentation
The exact second moment if the other vector is held fixed.
theorem centered_contraction_identity (X : Ω → Fin n → ℝ) (b : Fin n → ℝ) : P.expect (fun x => (dot (fun i => X x i - P.expect (fun y => X y i)) b)^2) = (∑ i, ∑ j, P.covariance (fun x => X x i) (fun x => X x j) * (b i * b j)) / (n : ℝ)^2 := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.dot
- theorem
OAI.DilutedSpinGlass.FiniteLaw.centered_contraction_boundline 219Source documentation
decor:contraction-bound, before the last square root, for a fixed multiplier.
theorem centered_contraction_bound (X : Ω → Fin n → ℝ) (b : Fin n → ℝ) (hb : ∀ i, |b i| ≤ 1) : P.expect (fun x => (dot (fun i => X x i - P.expect (fun y => X y i)) b)^2) ≤ Real.sqrt (P.covarianceEnergy X) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.dot
- theorem
OAI.DilutedSpinGlass.FiniteLaw.independent_contraction_boundline 240Source documentation
The other multiplier may itself be random, independently sampled under Q.
theorem independent_contraction_bound {Λ : Type*} [Fintype Λ] (Q : FiniteLaw Λ) (X : Ω → Fin n → ℝ) (B : Λ → Fin n → ℝ) (hB : ∀ z i, |B z i| ≤ 1) : Q.expect (fun z => P.expect (fun x => (dot (fun i => X x i - P.expect (fun y => X y i)) (B z))^2)) ≤ Real.sqrt (P.covarianceEnergy X) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.dot
- theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_sq_sub_expectline 252Source documentation
Elementary Jensen for the square, proved from its nonnegative variance.
theorem expect_sq_sub_expect (f : Ω → ℝ) : P.expect (fun x => (f x - P.expect f)^2) = P.expect (fun x => f x ^ 2) - P.expect f ^ 2 := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.sq_expect_le_expect_sqline 260 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_sqrt_leline 267Source documentation
Jensen for the square root, including possible zero coordinates.
theorem expect_sqrt_le (f : Ω → ℝ) (hf : ∀ x, 0 ≤ f x) : P.expect (fun x => Real.sqrt (f x)) ≤ Real.sqrt (P.expect f) := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.conditional_contraction_boundline 276Source documentation
Root/prefix averaged form of decor:contraction-bound. In the finite model conditional independence is expressed constructively by the independent laws P and Q at each prefix, not by an assumed covariance conclusion.
theorem conditional_contraction_bound {Γ Λ : Type*} [Fintype Γ] [Fintype Λ] (R : FiniteLaw Γ) (P : Γ → FiniteLaw Ω) (Q : Γ → FiniteLaw Λ) (X : Γ → Ω → Fin n → ℝ) (B : Γ → Λ → Fin n → ℝ) (hB : ∀ γ z i, |B γ z i| ≤ 1) : Real.sqrt (R.expect (fun γ => (Q γ).expect (fun z => (P γ).expect (fun x => (dot (fun i => X γ x i - (P γ).expect (fun y => X γ y i)) (B γ z))^2)))) ≤ Real.sqrt (Real.sqrt (R.expect (fun γ => (P γ).covarianceEnergy (X γ)))) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.expect, OAI.DilutedSpinGlass.FiniteLaw.dot, OAI.DilutedSpinGlass.FiniteLaw.covarianceEnergy
- theorem
OAI.DilutedSpinGlass.FiniteLaw.conditional_three_copy_boundline 293Source documentation
Prefix-averaged three-copy lower bound, the other half of decor:contractions.
theorem conditional_three_copy_bound {Γ : Type*} [Fintype Γ] (R : FiniteLaw Γ) (P : Γ → FiniteLaw Ω) (X : Γ → Ω → Fin n → ℝ) : 2 * R.expect (fun γ => (P γ).covarianceEnergy (X γ)) ≤ R.expect (fun γ => (P γ).expect (fun x => (P γ).expect (fun y => (P γ).expect (fun z => (dot (X γ x) (X γ y) - dot (X γ x) (X γ z))^2)))) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.covarianceEnergy, OAI.DilutedSpinGlass.FiniteLaw.expect, OAI.DilutedSpinGlass.FiniteLaw.dot
- theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_mul_sq_leline 306Source documentation
Finite-law Cauchy-Schwarz.
theorem expect_mul_sq_le (f g : Ω → ℝ) : P.expect (fun x => f x * g x)^2 ≤ P.expect (fun x => f x^2) * P.expect (fun x => g x^2) := by … - def
OAI.DilutedSpinGlass.FiniteLaw.l2line 319 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_nonnegline 321 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_sqline 323 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_zeroline 326 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_mul_le_l2line 328 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_add_leline 338Source documentation
Minkowski is used for successive projection of independent child shapes.
theorem l2_add_le (f g : Ω → ℝ) : P.l2 (fun x => f x + g x) ≤ P.l2 f + P.l2 g := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_monoline 352 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_mul_leline 358 - def
OAI.DilutedSpinGlass.FiniteLaw.bindline 366Source documentation
A finite mixture, to represent the root and the independent kernels exactly.
noncomputable def bind {Λ : Type*} [Fintype Λ] (Q : Ω → FiniteLaw Λ) : FiniteLaw (Ω × Λ) where …Mentions: OAI.DilutedSpinGlass.FiniteLaw
- theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_bindline 372 - theorem
OAI.DilutedSpinGlass.FiniteLaw.l2_condition_leline 378Source documentation
Conditional expectation contracts the L2 norm for a finite kernel.
theorem l2_condition_le {Λ : Type*} [Fintype Λ] (Q : Ω → FiniteLaw Λ) (f : Ω × Λ → ℝ) : P.l2 (fun x => (Q x).expect (fun y => f (x, y))) ≤ (P.bind Q).l2 f := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.expect, OAI.DilutedSpinGlass.FiniteLaw.l2
- theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_posline 388Source documentation
Positive functions have positive finite expectation, without a full-support assumption on the kernel.
theorem expect_pos {f : Ω → ℝ} (hf : ∀ x, 0 < f x) : 0 < P.expect f := by … - def
OAI.DilutedSpinGlass.FiniteLaw.expMomentline 399 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expMoment_posline 402 - def
OAI.DilutedSpinGlass.FiniteLaw.tiltline 406Source documentation
One tilted path kernel (trees.tex, original-tilt).
noncomputable def tilt (m : ℝ) (f : Ω → ℝ) : FiniteLaw Ω where …
Mentions: OAI.DilutedSpinGlass.FiniteLaw
- def
OAI.DilutedSpinGlass.FiniteLaw.logMeanline 414 - theorem
OAI.DilutedSpinGlass.FiniteLaw.tilt_expectline 417 - theorem
OAI.DilutedSpinGlass.FiniteLaw.expMoment_addline 422 - theorem
OAI.DilutedSpinGlass.FiniteLaw.logMean_addline 426 - theorem
OAI.DilutedSpinGlass.FiniteLaw.logMean_monoline 433 - theorem
OAI.DilutedSpinGlass.FiniteLaw.logMean_stabilityline 440Source documentation
Root-measurable uniform bounds pass unchanged through each power mean.
theorem logMean_stability {m c : ℝ} (hm : 0 < m) {f g : Ω → ℝ} (h : ∀ x, |f x - g x| ≤ c) : |P.logMean m f - P.logMean m g| ≤ c := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.logMean_insertionline 451Source documentation
Exact insertion identity for a single finite backward step.
theorem logMean_insertion {m : ℝ} (f a : Ω → ℝ) : P.logMean m (fun x => f x + a x) - P.logMean m f = (P.tilt m f).logMean m a := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.logMean
- theorem
OAI.DilutedSpinGlass.FiniteLaw.hasDerivAt_expectline 464Source documentation
Differentiation commutes with a finite path kernel.
theorem hasDerivAt_expect {f : ℝ → Ω → ℝ} {f' : Ω → ℝ} {u : ℝ} (h : ∀ x, HasDerivAt (fun t => f t x) (f' x) u) : HasDerivAt (fun t => P.expect (f t)) (P.expect f') u := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.hasDerivAt_logMeanline 476Source documentation
First variation of a power-mean step: the derivative is the tilted score.
theorem hasDerivAt_logMean {m : ℝ} (hm : m ≠ 0) {f : ℝ → Ω → ℝ} {f' : Ω → ℝ} {u : ℝ} (h : ∀ x, HasDerivAt (fun t => f t x) (f' x) u) : HasDerivAt (fun t => P.logMean m (f t)) ((P.tilt m (f u)).expect f') u := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.expect
- theorem
OAI.DilutedSpinGlass.FiniteLaw.hasDerivAt_tilt_expectline 497Source documentation
Differentiating an observable under a finite exponentially tilted kernel.
theorem hasDerivAt_tilt_expect {m : ℝ} {f g : ℝ → Ω → ℝ} {f' g' : Ω → ℝ} {u : ℝ} (hf : ∀ x, HasDerivAt (fun t => f t x) (f' x) u) (hg : ∀ x, HasDerivAt (fun t => g t x) (g' x) u) : HasDerivAt (fun t => (P.tilt m (f t)).expect (g t)) ((P.tilt m (f u)).expect g' + m * (P.tilt m (f u)).covariance (g u) f') u := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.expect, OAI.DilutedSpinGlass.FiniteLaw.covariance
- theorem
OAI.DilutedSpinGlass.FiniteLaw.hasDerivAt_tilt_scoreline 529Source documentation
The second variation identity used in bounded score concentration.
theorem hasDerivAt_tilt_score {m : ℝ} {f f' : ℝ → Ω → ℝ} {f'' : Ω → ℝ} {u : ℝ} (hf : ∀ x, HasDerivAt (fun t => f t x) (f' u x) u) (hf' : ∀ x, HasDerivAt (fun t => f' t x) (f'' x) u) : HasDerivAt (fun t => (P.tilt m (f t)).expect (f' t)) ((P.tilt m (f u)).expect f'' + m * (P.tilt m (f u)).covariance (f' u) (f' u)) u := …Mentions: OAI.DilutedSpinGlass.FiniteLaw.expect, OAI.DilutedSpinGlass.FiniteLaw.covariance
- theorem
OAI.DilutedSpinGlass.FiniteLaw.variance_bindline 539Source documentation
Total variance at one edge of a finite probability tree.
theorem variance_bind {Λ : Type*} [Fintype Λ] (Q : Ω → FiniteLaw Λ) (f : Ω × Λ → ℝ) : (P.bind Q).covariance f f = P.expect (fun x => (Q x).covariance (fun y => f (x,y)) (fun y => f (x,y))) + P.covariance (fun x => (Q x).expect (fun y => f (x,y))) (fun x => (Q x).expect (fun y => f (x,y))) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.covariance, OAI.DilutedSpinGlass.FiniteLaw.expect
- theorem
OAI.DilutedSpinGlass.FiniteLaw.covariance_self_nonnegline 548 - theorem
OAI.DilutedSpinGlass.FiniteLaw.covariance_self_le_oneline 553Source documentation
A bounded spin product has total conditional variance at most one.
theorem covariance_self_le_one {f : Ω → ℝ} (hf : ∀ x, |f x| ≤ 1) : P.covariance f f ≤ 1 := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.weights_extline 564 - theorem
OAI.DilutedSpinGlass.FiniteLaw.logMean_constline 570 - theorem
OAI.DilutedSpinGlass.FiniteLaw.tilt_weightline 576Source documentation
The edge-density form of the normalized tilted finite kernel.
theorem tilt_weight {m : ℝ} (hm : m ≠ 0) (f : Ω → ℝ) (x : Ω) : (P.tilt m f).weight x = P.weight x * Real.exp (m * (f x - P.logMean m f)) := by … - theorem
OAI.DilutedSpinGlass.FiniteLaw.tilt_insertionline 585Source documentation
Exact composition of two one-step insertions, with no support assumption.
theorem tilt_insertion (m : ℝ) (f a : Ω → ℝ) : (P.tilt m f).tilt m a = P.tilt m (fun x => f x + a x) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw.tilt
- def
OAI.DilutedSpinGlass.FiniteLaw.piline 601Source documentation
Independent product of finitely many finite conditional laws.
noncomputable def pi {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ι → Type*} [∀ i, Fintype (α i)] (Q : (i : ι) → FiniteLaw (α i)) : FiniteLaw ((i : ι) → α i) where …Mentions: OAI.DilutedSpinGlass.FiniteLaw
- theorem
OAI.DilutedSpinGlass.FiniteLaw.expect_pi_productline 608Source documentation
Finite independence identity, valid for arbitrary and distinct kernels.
theorem expect_pi_product {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ι → Type*} [∀ i, Fintype (α i)] (Q : (i : ι) → FiniteLaw (α i)) (f : (i : ι) → α i → ℝ) : (pi Q).expect (fun x => ∏ i, f i (x i)) = ∏ i, (Q i).expect (f i) := by …Mentions: OAI.DilutedSpinGlass.FiniteLaw, OAI.DilutedSpinGlass.FiniteLaw.pi, OAI.DilutedSpinGlass.FiniteLaw.expect
- theorem
OAI.DilutedSpinGlass.FiniteLaw.abs_expect_leline 613 - theorem
OAI.DilutedSpinGlass.FiniteLaw.continuousOn_expectline 622 - theorem
OAI.DilutedSpinGlass.FiniteLaw.continuousOn_logMeanline 630 - theorem
OAI.DilutedSpinGlass.FiniteLaw.continuousOn_tilt_expectline 639 - theorem
OAI.DilutedSpinGlass.FiniteLaw.continuousOn_tilt_covarianceline 650