Exact Lean source
Nonadditivity.HaarPrescribedProbability
Download original .lean · View on GitHub · Jump to source
Catalog entries: Explicit favorable-realization probability
Imported by project modules
1 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
1 project constants, including generated, internal and private declarations.
1 declarations
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarPrescribedBound7import Nonadditivity.ProbabilityQuantitative89/-! # Explicit favorable-event probability at the prescribed Haar dimension -/1011noncomputable section12namespace Nonadditivity.HaarPrescribedDimension13open MeasureTheory StructuredHaarConsequences StructuredHaarModel14StructuredLinearization PolynomialReduction15open scoped Matrix Matrix.Norms.L2Operator1617/-- The manuscript's probability fraction for each admissible linearized test18polynomial. The expectation estimate is discharged by the full Haar proof. -/19theorem prescribed_polynomial_favorable_probability {K n : ℕ}20(hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)21(H : Polynomial (StructuredLinearization.G n))22(hlinear : ∀ w ∈ H.support, w = 1 ∨ ∃ x : Fin n × Fin 2,23w = ProductPolynomialReduction.generator x ∨24w = (ProductPolynomialReduction.generator x)⁻¹)25(hherm : ∀ (ν : Type) [Fintype ν] [DecidableEq ν] [Nonempty ν]26(π : StructuredLinearization.G n →* unitary (Matrix ν ν ℂ)),27(H.finiteEval π).IsHermitian)28(hL : Real.log (2 * (Fintype.card H.Index : ℝ)) ≤292 * (K : ℝ)^(2*n) * Real.log (1 + 2*(n : ℝ)))30(hpos : 0 < ‖H.regularEval‖) :31Quantitative.tolerance (Real.log K) n /32(2 * (1 + Quantitative.tolerance (Real.log K) n)) ≤33(HaarModel.sampleMeasure 2 n (sampleSize K n)).real34{ω | ‖H.finiteEval (sampleRepresentation n (sampleSize K n) ω)‖ ≤35(1 + Quantitative.tolerance (Real.log K) n) * ‖H.regularEval‖} := by36have hnpos : (0 : ℝ) < n := by37have hn64 := (Quantitative.threshold_consequences hK hn).2.138linarith39have hL0 : 0 ≤ Real.log (2 * (Fintype.card H.Index : ℝ)) := by40have hc : (1 : ℝ) ≤ Fintype.card H.Index := by41exact_mod_cast Fintype.card_pos (α := H.Index)42exact Real.log_nonneg (by linarith)43have hlog := (Quantitative.quantitative_certificate hK hn hL0 hL).2.2.244have hε : 0 < Quantitative.tolerance (Real.log K) n := by45unfold Quantitative.tolerance46positivity47have he := (explicitHaarExpectation hK hn) H hlinear hherm48have hfactor : Real.exp (Quantitative.haarLogMultiplier (Real.log K) n49(Real.log (2 * (Fintype.card H.Index : ℝ)))) ≤501 + Quantitative.tolerance (Real.log K) n / 2 := by51have h := Real.exp_lt_exp.mpr hlog52rw [Real.exp_log (by linarith :530 < 1 + Quantitative.tolerance (Real.log K) n / 2)] at h54exact h.le55apply Probability.favorable_realization_probability56(integrable_polynomial_norm n (sampleSize K n) H)57(Filter.Eventually.of_forall (fun _ => norm_nonneg _)) hε hpos58exact he.trans (by nlinarith [mul_le_mul_of_nonneg_left hfactor hpos.le])5960end Nonadditivity.HaarPrescribedDimension