Exact Lean source
Nonadditivity.HaarTensorConstants
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarMomentConstantsMathlib.Algebra.BigOperators.Intervalsdependency
Imported by project modules
3 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.HaarTensorConstants.momentMultiplierNonadditivity.HaarTensorConstants.momentMultiplier._proof_1internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_posNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_expNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._proof_1_1internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_2internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_3internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_4internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_5internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_6internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_7internal/detail/privateNonadditivity.HaarTensorConstants.momentMultiplier_root_eq_exp._simp_1_8internal/detail/privateNonadditivity.HaarTensorConstants.moment_parameter_dimension_boundNonadditivity.HaarTensorConstants.prod_stage_factorsNonadditivity.HaarTensorConstants.replacementMultiplierNonadditivity.HaarTensorConstants.replacementMultiplier.eq_1internal/detail/privateNonadditivity.HaarTensorConstants.replacementMultiplier_leNonadditivity.HaarTensorConstants.replacementMultiplier_le._proof_1_1internal/detail/privateNonadditivity.HaarTensorConstants.replacementMultiplier_le._proof_1_2internal/detail/privateNonadditivity.HaarTensorConstants.replacementMultiplier_nonnegNonadditivity.HaarTensorConstants.replacementMultiplier_succNonadditivity.HaarTensorConstants.sum_stage_dimensionNonadditivity.HaarTensorConstants.sum_stage_freeNonadditivity.HaarTensorConstants.sum_stage_free._proof_1_1internal/detail/privateNonadditivity.HaarTensorConstants.triangleNonadditivity.HaarTensorConstants.triangle.eq_1internal/detail/privateNonadditivity.HaarTensorConstants.triangle_castNonadditivity.HaarTensorConstants.triangle_eq_lower_addNonadditivity.HaarTensorConstants.triangle_succNonadditivity.HaarTensorConstants.triangle_succ._proof_1_1internal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarMomentConstants7import Mathlib.Algebra.BigOperators.Intervals89/-! # Exact scalar factors for Haar tensor replacement1011This file connects the actual prescribed moment order to the dimension12condition used by the growing-moment estimate. It also expresses the tensor13iteration's moment multiplier in the precise logarithmic form consumed by14the channel construction.15-/1617noncomputable section18namespace Nonadditivity.HaarTensorConstants19open scoped BigOperators2021/-- The prescribed even order has sufficient slack for the tracked22two-generator growing-moment estimate. -/23theorem moment_parameter_dimension_bound {h n : ℝ}24(hh : (2 : ℝ) / 3 ≤ h) (hn : 2 ≤ n) :252 ^ 32 * (Quantitative.momentParameter h n : ℝ) ^ 80 ≤26(Quantitative.dimensionChoice h n : ℝ) := by27obtain ⟨_, _, _, hp⟩ := Quantitative.moment_parameter_bounds hh hn28have hD : 0 < (Quantitative.dimensionChoice h n : ℝ) :=29(Real.exp_pos _).trans_le (Nat.le_ceil _)30have htwop : 2 * (Quantitative.momentParameter h n : ℝ) ≤31Real.exp (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80) := by32linarith33have he : (Real.exp (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80)) ^ 80 =34(Quantitative.dimensionChoice h n : ℝ) := by35rw [← Real.exp_nat_mul]36have ha : (80 : ℝ) * (Real.log (Quantitative.dimensionChoice h n : ℝ) / 80) =37Real.log (Quantitative.dimensionChoice h n : ℝ) := by ring38norm_num only [Nat.cast_ofNat]39rw [ha]40rw [Real.exp_log hD]41calc42_ ≤ (2 * (Quantitative.momentParameter h n : ℝ)) ^ 80 := by43rw [mul_pow]44exact mul_le_mul_of_nonneg_right (by norm_num) (by positivity)45_ ≤ _ := he ▸ pow_le_pow_left₀ (by positivity) htwop 804647def triangle (n : ℕ) : ℕ := n * (n + 1) / 24849theorem triangle_cast (n : ℕ) :50(triangle n : ℝ) = (n : ℝ) * ((n : ℝ) + 1) / 2 := by51rw [triangle, Nat.cast_div (Nat.two_dvd_mul_add_one n) (by norm_num)]52push_cast53rfl5455/-- The generous power-form multiplier in the manuscript's expectation56bound, before taking the `p`th root. -/57def momentMultiplier (m D : ℝ) (p n : ℕ) : ℝ :=58(2 * m) ^ (n + 1) * D ^ triangle n * (p : ℝ) ^ (3 * triangle n) *59(1 + D ^ (-(1 / 2 : ℝ))) ^ (n * p)6061theorem momentMultiplier_pos {m D : ℝ} (hm : 0 < m) (hD : 0 < D)62{p n : ℕ} (hp : 0 < p) : 0 < momentMultiplier m D p n := by63unfold momentMultiplier64positivity6566/-- Exact conversion to the logarithmic factor already used by the explicit67dimension proof; no asymptotic simplification is made here. -/68theorem momentMultiplier_root_eq_exp {h m : ℝ} {n : ℕ}69(hh : (2 : ℝ) / 3 ≤ h) (hn : 2 ≤ n) (hm : 0 < m) :70(momentMultiplier m (Quantitative.dimensionChoice h n)71(Quantitative.momentParameter h n) n) ^72(1 / (Quantitative.momentParameter h n : ℝ)) =73Real.exp (Quantitative.haarLogMultiplier h n (Real.log (2 * m))) := by74obtain ⟨_, hp, _, _⟩ := Quantitative.moment_parameter_bounds (n := (n : ℝ)) hh75(by exact_mod_cast hn)76have hp0 : 0 < Quantitative.momentParameter h (n : ℝ) := by omega77have hD : 0 < (Quantitative.dimensionChoice h n : ℝ) :=78(Real.exp_pos _).trans_le (Nat.le_ceil _)79have hR : 0 < 1 + (Quantitative.dimensionChoice h n : ℝ) ^ (-(1 / 2 : ℝ)) := by80positivity81rw [Real.rpow_def_of_pos (momentMultiplier_pos hm hD hp0)]82congr 183unfold momentMultiplier84rw [Real.log_mul (by positivity) (by positivity),85Real.log_mul (by positivity) (by positivity),86Real.log_mul (by positivity) (by positivity)]87simp only [Real.log_pow, Nat.cast_add, Nat.cast_one, Nat.cast_mul, Nat.cast_ofNat,88triangle_cast]89have hroot : (Quantitative.dimensionChoice h n : ℝ) ^ (-(1 / 2 : ℝ)) =90Real.exp (-(Real.log (Quantitative.dimensionChoice h n : ℝ) / 2)) := by91rw [Real.rpow_def_of_pos hD]92congr 193ring94rw [hroot]95unfold Quantitative.haarLogMultiplier96have hpnz : (Quantitative.momentParameter h (n : ℝ) : ℝ) ≠ 0 := by positivity97field_simp9899/-- The smaller multiplier obtained by replacing one coordinate at a time. -/100def replacementMultiplier (m D : ℝ) (p n : ℕ) : ℝ :=101(2 * m) ^ n * D ^ triangle n * (p : ℝ) ^ (3 * (n * (n - 1) / 2)) *102(1 + D ^ (-(1 / 2 : ℝ))) ^ n103104/-- The actual iteration leaves slack in the coefficient, free-coordinate,105and error factors, all in the favorable direction. -/106theorem replacementMultiplier_le {m D : ℝ} (hm : 1 ≤ m) (hD : 0 ≤ D)107{p n : ℕ} (hp : 1 ≤ p) :108replacementMultiplier m D p n ≤ momentMultiplier m D p n := by109have ht : n * (n - 1) / 2 ≤ triangle n := by110unfold triangle111exact Nat.div_le_div_right (Nat.mul_le_mul_left n (by omega))112have he : n ≤ n * p := by nlinarith113have hc : (2 * m) ^ n ≤ (2 * m) ^ (n + 1) :=114pow_le_pow_right₀ (by linarith) (by omega)115have hpow : (p : ℝ) ^ (3 * (n * (n - 1) / 2)) ≤116(p : ℝ) ^ (3 * triangle n) :=117pow_le_pow_right₀ (by exact_mod_cast hp) (Nat.mul_le_mul_left 3 ht)118have hr : (1 + D ^ (-(1 / 2 : ℝ))) ^ n ≤119(1 + D ^ (-(1 / 2 : ℝ))) ^ (n * p) :=120pow_le_pow_right₀ (by linarith [Real.rpow_nonneg hD (-(1 / 2 : ℝ))]) he121unfold replacementMultiplier momentMultiplier122have hab := mul_le_mul_of_nonneg_right hc (pow_nonneg hD (triangle n))123have habc := mul_le_mul hab hpow (by positivity) (by positivity)124exact mul_le_mul habc hr (by positivity) (by positivity)125126/-- The dimension exponents accumulate to the triangular number. -/127theorem sum_stage_dimension (n : ℕ) :128(∑ k ∈ Finset.range n, (k + 1)) = triangle n := by129have h := Finset.sum_range_id (n + 1)130rw [Finset.sum_range_succ'] at h131simpa [triangle, Nat.mul_comm] using h132133/-- The count of free coordinates decreases once at every replacement. -/134theorem sum_stage_free (n : ℕ) :135(∑ k ∈ Finset.range n, 3 * (n - (k + 1))) = 3 * (n * (n - 1) / 2) := by136calc137_ = ∑ k ∈ Finset.range n, 3 * (n - 1 - k) := by138apply Finset.sum_congr rfl139intro k _140congr 1141omega142_ = _ := by143rw [← Finset.mul_sum, Finset.sum_range_reflect (fun k : ℕ => k), Finset.sum_range_id]144145/-- Exact product of the costs at all forward replacement stages. -/146theorem prod_stage_factors (m D : ℝ) (p n : ℕ) :147(∏ k ∈ Finset.range n,148(2 * m * D ^ (k + 1) * (p : ℝ) ^ (3 * (n - (k + 1))) *149(1 + D ^ (-(1 / 2 : ℝ))))) = replacementMultiplier m D p n := by150simp only [Finset.prod_mul_distrib]151rw [Finset.prod_pow_eq_pow_sum, Finset.prod_pow_eq_pow_sum,152sum_stage_dimension, sum_stage_free]153simp [replacementMultiplier, mul_pow]154155theorem triangle_succ (n : ℕ) : triangle (n + 1) = triangle n + n + 1 := by156rw [← sum_stage_dimension, Finset.sum_range_succ, sum_stage_dimension]157omega158159theorem triangle_eq_lower_add (n : ℕ) :160triangle n = n * (n - 1) / 2 + n := by161rw [← sum_stage_dimension, Finset.sum_add_distrib, Finset.sum_range_id]162simp163164theorem replacementMultiplier_nonneg {m D : ℝ} (hm : 0 ≤ m) (hD : 0 ≤ D)165(p n : ℕ) : 0 ≤ replacementMultiplier m D p n := by166unfold replacementMultiplier167positivity168169/-- The coefficient index grows by one matrix factor at every recursive170replacement. This identity records that growth without any loss. -/171theorem replacementMultiplier_succ (m D : ℝ) (p n : ℕ) :172replacementMultiplier (m * D) D p n *173(2 * m * D * (p : ℝ) ^ (3 * n) * (1 + D ^ (-(1 / 2 : ℝ)))) =174replacementMultiplier m D p (n + 1) := by175have hl : (n + 1) * ((n + 1) - 1) / 2 = triangle n := by176simp [triangle, Nat.mul_comm]177unfold replacementMultiplier178rw [hl, triangle_succ, triangle_eq_lower_add]179simp only [mul_pow, pow_add, pow_one, Nat.mul_add]180ring181182end Nonadditivity.HaarTensorConstants