Offline · exact source
Exact Lean source

TensorCCRScalar

formalization/Cloning/TensorCCRScalar.lean

Source hash: fff42962d5644300c432d70c3366cb8990b10a8f98a9d66ca743f463d7023fd4

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Mathlib.Analysis.SpecialFunctions.Pow.Real
2import Mathlib.Analysis.SpecialFunctions.Sqrt
3import Mathlib.Tactic
4 
5/-! Scalar normalization estimates for physical root commutators. -/
6noncomputable section
7namespace Cloning.TensorLie
8set_option maxHeartbeats 1000000
9 
10/-- Uniform off-diagonal coefficient after normalizing two positive gaps. -/
11theorem normalized_root_scalar_bound {g h δ : ℝ} (hδ : 0 < δ)
12    (hg : δ ≤ g) (hh : δ ≤ h) (r : ℕ) :
13    (Real.sqrt g)⁻¹ * (Real.sqrt h)⁻¹ *
14      Real.sqrt (((r : ℝ) + 1) * (|g - h| + 2 * r)) ≤
15    Real.sqrt (((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2) := by
16  have hg0 : 0 < g := hδ.trans_le hg
17  have hh0 : 0 < h := hδ.trans_le hh
18  have hprod : 0 < g * h := mul_pos hg0 hh0
19  have hsq : δ ^ 2 ≤ g * h := by nlinarith
20  have habs : δ * |g - h| ≤ g * h := by
21    rcases le_total g h with hgh | hhg
22    · rw [abs_of_nonpos (sub_nonpos.mpr hgh)]
23      nlinarith
24    · rw [abs_of_nonneg (sub_nonneg.mpr hhg)]
25      nlinarith
26  have hratio : |g - h| / (g * h) ≤ 1 / δ := by
27    apply (div_le_div_iff₀ hprod hδ).mpr
28    nlinarith
29  have hinv : 1 / (g * h) ≤ 1 / δ ^ 2 := by
30    exact one_div_le_one_div_of_le (sq_pos_of_pos hδ) hsq
31  have hnum : (((r : ℝ) + 1) * (|g - h| + 2 * r)) / (g * h) ≤
32      ((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2 := by
33    calc
34      _ = ((r : ℝ) + 1) * (|g - h| / (g * h)) +
35          (2 * r * ((r : ℝ) + 1)) * (1 / (g * h)) := by ring
36      _ ≤ ((r : ℝ) + 1) * (1 / δ) +
37          (2 * r * ((r : ℝ) + 1)) * (1 / δ ^ 2) := by gcongr
38      _ = _ := by ring
39  have hleftsq : ((Real.sqrt g)⁻¹ * (Real.sqrt h)⁻¹ *
40      Real.sqrt (((r : ℝ) + 1) * (|g - h| + 2 * r))) ^ 2 =
41      (((r : ℝ) + 1) * (|g - h| + 2 * r)) / (g * h) := by
42    rw [mul_pow, mul_pow, inv_pow, inv_pow, Real.sq_sqrt hg0.le,
43      Real.sq_sqrt hh0.le, Real.sq_sqrt (by positivity)]
44    ring
45  have hrightsq := Real.sq_sqrt (by positivity :
46    0 ≤ ((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2)
47  nlinarith [Real.sqrt_nonneg (((r : ℝ) + 1) / δ + 2 * r * ((r : ℝ) + 1) / δ ^ 2)]
48 
49end Cloning.TensorLie