Exact Lean source
Nonadditivity.StructuredHaarConsequences
Download original .lean · View on GitHub · Jump to source
Catalog entries: Uniform adjoint norm estimate at prescribed dimensions
Direct imports
Imported by project modules
2 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
30 project constants, including generated, internal and private declarations.
30 declarations
Nonadditivity.InitialNetReduction.shortProductEmbedding.congr_simpNonadditivity.Quantitative.tolerance.eq_1internal/detail/privateNonadditivity.StructuredHaarConsequences.ExplicitHaarExpectationNonadditivity.StructuredHaarConsequences.ExplicitHaarExpectation._proof_1internal/detail/privateNonadditivity.StructuredHaarConsequences.ExplicitHaarExpectation._proof_2internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_3internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_4internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_5internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_6internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_7internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_8internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_certificate._simp_1_9internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_channelNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channelNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_2internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_3internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_4internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_5internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_6internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_7internal/detail/privateNonadditivity.StructuredHaarConsequences.exists_explicit_finite_channel._simp_1_8internal/detail/privateNonadditivity.StructuredHaarConsequences.explicit_input_dimensionNonadditivity.StructuredHaarConsequences.kappaNonadditivity.StructuredHaarConsequences.kappa_ge_oneNonadditivity.StructuredHaarConsequences.localDimensionNonadditivity.StructuredHaarConsequences.localDimension_posNonadditivity.StructuredHaarConsequences.sampleSizeNonadditivity.StructuredHaarConsequences.sampleSize_add_oneNonadditivity.StructuredHaarModel.derivedUnitary.congr_simp
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.StructuredHaarModel7import Nonadditivity.StructuredFiniteChannel8import Nonadditivity.HaarConsequences910/-! # Explicit-dimension channels from the sole remaining Haar estimate1112The hypothesis below is a literal expectation inequality for actual linear13matrix polynomials evaluated in independent Haar pairs. Every net, embedding,14coefficient budget, error transfer, probability-space construction, and channel15conversion is proved by the imported constructions.16-/17noncomputable section18set_option backward.isDefEq.respectTransparency false19set_option linter.unusedSectionVars false20set_option maxHeartbeats 120000021namespace Nonadditivity.StructuredHaarConsequences22open MeasureTheory StructuredHaarModel StructuredLinearization PolynomialReduction23open Entropy Channels.KrausChannel BlockConstruction FreeModel24open scoped Matrix Matrix.Norms.L2Operator BigOperators Topology2526/-- The manuscript's exact integer local dimension. -/27def localDimension (K n : ℕ) : ℕ := Quantitative.dimensionChoice (Real.log K) n2829theorem localDimension_pos (K n : ℕ) : 0 < localDimension K n := by30exact Nat.ceil_pos.mpr (Real.exp_pos _)3132/-- Convert to the canonical Haar model's `N+1` indexing convention. -/33def sampleSize (K n : ℕ) : ℕ := localDimension K n - 13435@[simp] theorem sampleSize_add_one (K n : ℕ) : sampleSize K n + 1 = localDimension K n :=36Nat.sub_add_cancel (localDimension_pos K n)3738/-- The remaining analytic assertion, specialized only to the manuscript's39explicit N and even moment choice. There is no coefficient-size restriction.40The expectation, representation and regular norm are literal mathematical objects. -/41def ExplicitHaarExpectation (K n : ℕ) : Prop :=42∀ H : Polynomial (StructuredLinearization.G n),43(∀ w ∈ H.support, w=1 ∨ ∃ x : Fin n × Fin 2,44w=ProductPolynomialReduction.generator x ∨ w=(ProductPolynomialReduction.generator x)⁻¹) →45(∀ (ν : Type) [Fintype ν] [DecidableEq ν] [Nonempty ν]46(π : StructuredLinearization.G n →* unitary (Matrix ν ν ℂ)),47(H.finiteEval π).IsHermitian) →48(∫ ω : HaarModel.Sample 2 n (sampleSize K n),49‖H.finiteEval (sampleRepresentation n (sampleSize K n) ω)‖50∂HaarModel.sampleMeasure 2 n (sampleSize K n)) ≤51‖H.regularEval‖ * Real.exp (Quantitative.haarLogMultiplier (Real.log K) n52(Real.log (2*(Fintype.card H.Index:ℝ))))5354/-- The exact net amplification for mesh `1/n`. -/55def kappa (n : ℕ) : ℝ := ((n:ℝ)+1)/((n:ℝ)-1)5657theorem kappa_ge_one {n : ℕ} (hn : 2 ≤ n) : 1 ≤ kappa n := by58have hnr : (2:ℝ) ≤ n := by exact_mod_cast hn59unfold kappa60exact (le_div_iff₀ (by linarith)).mpr (by linarith)6162variable {K n : ℕ} [NeZero K]6364/-- Full explicit-dimension realization. The only remaining hypothesis is65`ExplicitHaarExpectation`; all prior separate dimension/error budgets are gone. -/66theorem exists_explicit_certificate (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)67(hHaar : ExplicitHaarExpectation K n) :68∃ ω : HaarModel.Sample 2 n (sampleSize K n),69∀ A : Matrix (ZMod (K^n)) (ZMod (K^n)) ℂ, A.IsHermitian → A.trace=0 →70‖(blockChannel (derivedUnitary K n (sampleSize K n) hK ω) n).adjointMap A‖ ≤71(kappa n*c K n)*AdjointPurity.hsLength A := by72obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn73have hnr : (1:ℝ) < n := by linarith74obtain ⟨tests,hne,htnorm,htsymm,hnet,H,hlinear,hL,htransfer⟩ :=75exists_net_linearization hK hn76have hL0 : 0 ≤ Real.log (2*(Fintype.card H.Index:ℝ)) := by77have hc : (1:ℝ) ≤ Fintype.card H.Index := by exact_mod_cast Fintype.card_pos (α := H.Index)78exact Real.log_nonneg (by linarith)79obtain ⟨_,_,_,hlog⟩ := Quantitative.quantitative_certificate hK hn hL0 hL80have htol : 0 < Quantitative.tolerance (Real.log K) n := by81unfold Quantitative.tolerance82positivity83have hm : Real.exp (Quantitative.haarLogMultiplier (Real.log K) n84(Real.log (2*(Fintype.card H.Index:ℝ)))) ≤ 1+Quantitative.tolerance (Real.log K) n := by85have hh := Real.exp_lt_exp.mpr hlog86rw [Real.exp_log (by linarith : 0 < 1+Quantitative.tolerance (Real.log K) n/2)] at hh87linarith88obtain ⟨ω,hω⟩ := exists_le_integral (integrable_polynomial_norm n (sampleSize K n) H)89have he := hHaar H hlinear (fun ν _ _ _ π => (htransfer ν π).1)90have hcomparison : ‖H.finiteEval (sampleRepresentation n (sampleSize K n) ω)‖ ≤91(1+Quantitative.tolerance (Real.log K) n)*‖H.regularEval‖ := by92exact hω.trans (he.trans (by nlinarith [mul_le_mul_of_nonneg_left hm (norm_nonneg H.regularEval)]))93have hp := (htransfer (TensorChainIndex (Fin (sampleSize K n+1)) n)94(sampleRepresentation n (sampleSize K n) ω)).2 (by95simpa only [Quantitative.tolerance] using hcomparison)96have hcert := StructuredFiniteChannel.certificate_of_finitePaired_bound97(derivedUnitary K n (sampleSize K n) hK ω)98(fun b => sampleRepresentation n (sampleSize K n) ω99(InitialNetReduction.shortProductEmbedding K n hK (branchWord b)))100(sampleRepresentation_branchWord K n (sampleSize K n) hK ω) tests101(1/(n:ℝ)) ((1+1/(n:ℝ))*c K n) (by positivity)102((div_lt_one (by linarith)).mpr hnr) (by unfold c; positivity) hnet hp103have hκ : ((1+1/(n:ℝ))*c K n)/(1-1/(n:ℝ)) = kappa n*c K n := by104unfold kappa105field_simp106exact ⟨ω,by simpa only [hκ] using hcert⟩107108/-- The actual converted channel has exactly the claimed input dimension. -/109theorem explicit_input_dimension :110Fintype.card ((ZMod (K^n) × ZMod (K^n)) ×111(Bool × TensorChainIndex (Fin (sampleSize K n+1)) n)) =1122 * (localDimension K n)^n * K^(2*n) := by113rw [Conversion.converted_input_dimension,Entropy.tensorChainIndex_card]114simp only [Fintype.card_fin,sampleSize_add_one,pow_mul,Nat.mul_comm 2 n]115116/-- The full finite channel bounds at the exact explicit dimensions. -/117theorem exists_explicit_channel (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)118(hHaar : ExplicitHaarExpectation K n) :119∃ ω : HaarModel.Sample 2 n (sampleSize K n),120let T := Conversion.converted (blockChannel (derivedUnitary K n (sampleSize K n) hK ω) n)121T.holevo ≤ (n:ℝ)*Real.log (1+9/(K:ℝ)) + 2*Real.log (kappa n) ∧122(n:ℝ)*Real.log K/(K:ℝ) ≤ (T.tensor T).holevo ∧123(n:ℝ)*BlockScalars.gapCoefficient K - 4*Real.log (kappa n) ≤124(T.tensor T).holevo - 2*T.holevo := by125obtain ⟨ω,hω⟩ := exists_explicit_certificate hK hn hHaar126obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn127have hn2 : 2 ≤ n := by exact_mod_cast (show (2:ℝ) ≤ n by linarith)128have hκ := kappa_ge_one hn2129have hbounds := block_converted_bounds_of_certificate130(derivedUnitary K n (sampleSize K n) hK ω) n131(show 0 ≤ kappa n*c K n by unfold c; positivity) hω132have hscalar := BlockScalars.log_purity_factor_le (n := n) hK hκ133change Real.log (1+(K:ℝ)^n*(kappa n*c K n)^2) ≤ _ at hscalar134refine ⟨ω,?_,hbounds.2.1,?_⟩135· exact hbounds.1.trans (by simpa only [Nat.cast_pow] using hscalar)136· dsimp [BlockScalars.gapCoefficient]137have hb := hbounds.2.2138calc139(n:ℝ)*(Real.log (K:ℝ)/(K:ℝ)-2*Real.log (1+9/(K:ℝ))) - 4*Real.log (kappa n) =140(n:ℝ)*Real.log (K:ℝ)/(K:ℝ) -1412*((n:ℝ)*Real.log (1+9/(K:ℝ)) + 2*Real.log (kappa n)) := by ring142_ ≤ _ := by linarith143144145/-- Review-facing form: a genuine finite CPTP channel, the exact manuscript146input/output dimensions, strictly positive one-use Holevo information, and all147bounds in bits. Its sole nonnumeric premise is the literal Haar expectation. -/148theorem exists_explicit_finite_channel (hK : 2 ≤ K) (hn : Quantitative.n₀ K ≤ n)149(hHaar : ExplicitHaarExpectation K n) :150∃ T : ActualConsequences.FiniteQuantumChannel,151Fintype.card T.Input = 2*(localDimension K n)^n*K^(2*n) ∧152Fintype.card T.Output = K^n ∧1530 < T.chi ∧154T.chi ≤ (n:ℝ)*Scalar.aK K + 2*Scalar.log2 (kappa n) ∧155(n:ℝ)*Scalar.log2 K/(K:ℝ) ≤ T.chiTwo ∧156(n:ℝ)*Scalar.deltaK K - 4*Scalar.log2 (kappa n) ≤ T.gap := by157obtain ⟨ω,hupper,hlower,_⟩ := exists_explicit_channel hK hn hHaar158let U := derivedUnitary K n (sampleSize K n) hK ω159let T := ActualConsequences.FiniteQuantumChannel.ofKraus (Conversion.converted (blockChannel U n))160obtain ⟨_,hn64,_,_⟩ := Quantitative.threshold_consequences hK hn161have hn1 : 1 ≤ n := by exact_mod_cast (show (1:ℝ) ≤ n by linarith)162have hp : 0 < T.chi := PositiveHolevo.block_converted_holevoBits_pos hK U hn1163have he : (2*Scalar.log2 (kappa n))*Real.log 2 = 2*Real.log (kappa n) := by164dsimp [Scalar.log2]165field_simp166have hu : T.chi ≤ (n:ℝ)*Scalar.aK K + 2*Scalar.log2 (kappa n) :=167HolevoBits.natural_upper_to_bits n (by simpa only [he] using hupper)168have hl : (n:ℝ)*Scalar.log2 K/(K:ℝ) ≤ T.chiTwo :=169HolevoBits.natural_lower_to_bits n hlower170refine ⟨T,explicit_input_dimension,ZMod.card _,hp,hu,hl,?_⟩171unfold ActualConsequences.FiniteQuantumChannel.gap Scalar.deltaK172rw [mul_sub,← mul_div_assoc]173nlinarith only [hu,hl]174175end Nonadditivity.StructuredHaarConsequences