OAI/Dynamics/ThreeTorus/PredictionModels.lean
75 declarations, 0 contain sorry, 0 declared as axioms
Block tests, diagonal predictions, centering, and stability of finite-color models.
- lemma
OAI.ThreeTorus.PhaseLaurent.coordinateline 16 - lemma
OAI.ThreeTorus.PhaseLaurent.blockFactorline 21 - lemma
OAI.ThreeTorus.PhaseLaurent.blockProductline 31 - lemma
OAI.ThreeTorus.CircleBounded.negline 37 - lemma
OAI.ThreeTorus.CircleBounded.subline 41 - lemma
OAI.ThreeTorus.circleBounded_ofRealline 45 - def
OAI.ThreeTorus.blockTotalline 52 - def
OAI.ThreeTorus.blockWeightsline 55 - def
OAI.ThreeTorus.blockTagMeanline 58 - lemma
OAI.ThreeTorus.blockTotal_nonnegline 61 - lemma
OAI.ThreeTorus.continuous_blockTotalline 65 - lemma
OAI.ThreeTorus.blockWeights_boundsline 69 - lemma
OAI.ThreeTorus.sum_blockWeightsline 80 - lemma
OAI.ThreeTorus.circleBounded_blockWeightsline 85 - def
OAI.ThreeTorus.blockSqrtTestline 96Source documentation
The exact polynomial lower bound, not the non-polynomial square root.
def blockSqrtTest {m : ℕ} (p : Fin m → UnitAddCircle → ℝ) (b : Fin m → ℂ) (q : UnitAddCircle → ℂ) (n : ℕ) (ell : ℝ) (z : UnitAddCircle) (y : Fin n → UnitAddCircle) : ℝ := … - def
OAI.ThreeTorus.blockPhaseEstimatorline 102 - def
OAI.ThreeTorus.blockErrorTestline 106 - lemma
OAI.ThreeTorus.phaseLaurent_blockMixtureline 112 - lemma
OAI.ThreeTorus.phaseLaurent_blockSqrtTestline 122 - lemma
OAI.ThreeTorus.phaseLaurent_blockPhaseEstimatorline 139 - lemma
OAI.ThreeTorus.phaseLaurent_blockErrorTestline 145 - lemma
OAI.ThreeTorus.CircleBounded.sumline 170 - lemma
OAI.ThreeTorus.PhaseLaurent.diagonal_boundedline 181 - lemma
OAI.ThreeTorus.integral_phaseTest_pointwiseline 193 - lemma
OAI.ThreeTorus.PhaseLaurent.independent_boundedline 212 - lemma
OAI.ThreeTorus.PhaseLaurent.diagonal_integrable_realline 226 - lemma
OAI.ThreeTorus.PhaseLaurent.independent_integrable_realline 232 - lemma
OAI.ThreeTorus.blockMixture_polynomial_integralline 238 - lemma
OAI.ThreeTorus.blockTagMean_centeredline 257 - lemma
OAI.ThreeTorus.blockSqrtTest_independent_boundline 267 - lemma
OAI.ThreeTorus.blockPhaseEstimator_noiseline 286 - lemma
OAI.ThreeTorus.blockErrorTest_independent_exactline 297 - lemma
OAI.ThreeTorus.CircleBounded.norm_sqline 322 - lemma
OAI.ThreeTorus.integrable_real_of_circleBoundedline 326 - lemma
OAI.ThreeTorus.circleBounded_blockTagMeanline 330 - lemma
OAI.ThreeTorus.integral_sqrt_le_sqrt_twoline 336 - lemma
OAI.ThreeTorus.blockSqrtTest_integral_boundline 361 - def
OAI.ThreeTorus.blockPreviousErrorline 396 - lemma
OAI.ThreeTorus.integrable_blockPreviousErrorline 400 - lemma
OAI.ThreeTorus.blockErrorTest_integral_boundline 409 - def
OAI.ThreeTorus.blockModelDensityline 453 - lemma
OAI.ThreeTorus.blockTotal_mul_blockWeightsline 458 - lemma
OAI.ThreeTorus.blockModelDensity_eqline 469 - lemma
OAI.ThreeTorus.blockModelDensity_nonnegline 479 - lemma
OAI.ThreeTorus.blockSqrtTest_le_model_sqrtline 489 - lemma
OAI.ThreeTorus.continuous_blockModel_diagonalline 500 - theorem
OAI.ThreeTorus.block_model_diagonalline 510Source documentation
The exact Hellinger and previous-estimator estimates of source 04 on one common actual diagonal, with arbitrary successive geometric lower bounds. This is the analytic model step, not the geometric prediction proposition.
theorem block_model_diagonal {m n : ℕ} {p : Fin m → UnitAddCircle → ℝ} (hp : ∀ r z, 0 ≤ p r z) (hc : ∀ r, Continuous (p r)) (b : Fin m → ℂ) (hb : ∀ r, ‖b r‖ ≤ 1) {q A : UnitAddCircle → ℂ} (hq : Continuous q) (hqB : ∀ z, ‖q z‖ ≤ 2) (hA : CircleBounded A) (k : ℕ) {ell delta eta : ℝ} (hell : 0 < ell) (hs : 6*ell ≤ 1) (hd : 0 < delta) (hd1 : delta ≤ 1/100) (hn0 : delta/2 ≤ (n:ℝ)*ell^2) (hn1 : (n:ℝ)*ell^2 ≤ delta) (hmass : (∫ z, blockTotal p z ∂phaseHaar) ≤ 2) (hcenter : (∫ z, Real.sqrt (blockTotal p z)*‖blockTagMean p b z-q z‖^2 ∂phaseHaar) ≤ delta) (heta : 0 < eta) (B : (j : ℕ) → (Fin j → ℤ) → ℤ) : ∃ L : Fin n → ℤ, (∀ j, 0 < L j) ∧ (∀ j : Fin n, B j (fun i => L ⟨i.val, i.isLt.trans j.isLt⟩) < L j) ∧ …Mentions: OAI.ThreeTorus.CircleBounded, OAI.ThreeTorus.blockTotal, OAI.ThreeTorus.phaseHaar, OAI.ThreeTorus.blockTagMean
- def
OAI.ThreeTorus.blockNumeratorline 577 - def
OAI.ThreeTorus.blockCenterline 580 - lemma
OAI.ThreeTorus.blockNumerator_normline 584 - lemma
OAI.ThreeTorus.blockTagMean_eqline 594 - lemma
OAI.ThreeTorus.blockTagMean_normline 600 - lemma
OAI.ThreeTorus.blockCenter_normline 610 - lemma
OAI.ThreeTorus.blockCenter_error_eqline 620 - lemma
OAI.ThreeTorus.blockCenter_error_boundline 643 - lemma
OAI.ThreeTorus.sqrt_weighted_regularization_boundline 652 - lemma
OAI.ThreeTorus.continuous_blockNumeratorline 671 - lemma
OAI.ThreeTorus.continuous_blockCenterline 676 - lemma
OAI.ThreeTorus.blockCenter_integral_errorline 686 - lemma
OAI.ThreeTorus.exists_block_centerline 705 - lemma
OAI.ThreeTorus.contDiff_blockCenter_liftline 719Source documentation
The regularized center is genuinely smooth as a circle function whenever its finite color densities are smooth; no regularity of beta is needed at zeros.
lemma contDiff_blockCenter_lift {m : ℕ} {p : Fin m → UnitAddCircle → ℝ} (hp : ∀ r z, 0 ≤ p r z) (hs : ∀ r, ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun x : ℝ => p r (x : UnitAddCircle))) (b : Fin m → ℂ) {epsilon : ℝ} (he : 0 < epsilon) : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun x : ℝ => blockCenter p b epsilon (x : UnitAddCircle)) := by …Mentions: OAI.ThreeTorus.blockCenter
- lemma
OAI.ThreeTorus.blockTotal_reflectionline 739 - lemma
OAI.ThreeTorus.blockNumerator_reflectionline 746 - lemma
OAI.ThreeTorus.blockCenter_reflectionline 754 - theorem
OAI.ThreeTorus.exists_smooth_symmetric_block_centerline 764Source documentation
Source 04 centering with its smoothness, norm, and conjugation requirements. The explicit center even has norm at most one (the source permits two).
theorem exists_smooth_symmetric_block_center {m : ℕ} {p : Fin m → UnitAddCircle → ℝ} (hp : ∀ r z, 0 ≤ p r z) (hc : ∀ r, Continuous (p r)) (hs : ∀ r, ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun x : ℝ => p r (x : UnitAddCircle))) {b : Fin m → ℂ} (hb : ∀ r, ‖b r‖ ≤ 1) (e : Equiv.Perm (Fin m)) (hpr : ∀ r z, p (e r) (-z) = p r z) (hbr : ∀ r, b (e r) = conj (b r)) {delta : ℝ} (hd : 0 < delta) : ∃ q : UnitAddCircle → ℂ, Continuous q ∧ ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun x : ℝ => q (x : UnitAddCircle)) ∧ (∀ z, ‖q z‖ ≤ 2) ∧ (∀ z, q (-z) = conj (q z)) ∧ (∫ z, Real.sqrt (blockTotal p z)*‖blockTagMean p b z-q z‖^2 ∂phaseHaar) < delta := by …Mentions: OAI.ThreeTorus.blockTotal, OAI.ThreeTorus.blockTagMean, OAI.ThreeTorus.phaseHaar
- def
OAI.ThreeTorus.colorL1Distanceline 798 - lemma
OAI.ThreeTorus.colorL1Distance_nonnegline 801 - lemma
OAI.ThreeTorus.continuous_circle_integrableline 805 - lemma
OAI.ThreeTorus.integral_sqrt_le_sqrt_integralline 809 - lemma
OAI.ThreeTorus.sqrt_le_sqrt_add_sqrt_errorline 832 - theorem
OAI.ThreeTorus.color_hellinger_stabilityline 843Source documentation
Total Hellinger loss is bounded by the square root of total color L1 loss.
theorem color_hellinger_stability {m : ℕ} {p g : Fin m → UnitAddCircle → ℝ} (hp : ∀ r z, 0 ≤ p r z) (hg : ∀ r z, 0 ≤ g r z) (hcp : ∀ r, Continuous (p r)) (hcg : ∀ r, Continuous (g r)) : (∫ z, Real.sqrt (blockTotal p z) ∂phaseHaar) ≤ (∫ z, Real.sqrt (blockTotal g z) ∂phaseHaar)+Real.sqrt (colorL1Distance p g) := by …Mentions: OAI.ThreeTorus.blockTotal, OAI.ThreeTorus.phaseHaar, OAI.ThreeTorus.colorL1Distance
- theorem
OAI.ThreeTorus.color_weighted_stabilityline 871Source documentation
Bounded weights transfer the model prediction integral to actual densities.
theorem color_weighted_stability {m : ℕ} {p g w : Fin m → UnitAddCircle → ℝ} (hcp : ∀ r, Continuous (p r)) (hcg : ∀ r, Continuous (g r)) (hcw : ∀ r, Continuous (w r)) {W : ℝ} (hw : ∀ r z, 0 ≤ w r z ∧ w r z ≤ W) : (∑ r, ∫ z, g r z*w r z ∂phaseHaar) ≤ (∑ r, ∫ z, p r z*w r z ∂phaseHaar)+W*colorL1Distance p g := by …Mentions: OAI.ThreeTorus.phaseHaar, OAI.ThreeTorus.colorL1Distance
- lemma
OAI.ThreeTorus.colorL1Distance_triangleline 896 - lemma
OAI.ThreeTorus.colorL1Distance_mul_boundline 911 - lemma
OAI.ThreeTorus.finite_error_propagationline 932Source documentation
The geometric amplification is finite and fixed before choosing any anchor accuracy, even when the block length is very large.
lemma finite_error_propagation {E : ℕ → ℝ} {M t : ℝ} (hM : 1 ≤ M) (ht : 0 ≤ t) (h0 : E 0 ≤ t) (hstep : ∀ i, E (i+1) ≤ M*E i+t) (n : ℕ) : E n ≤ ((n:ℝ)+1)*M^n*t := by …