Exact Lean source
CloningValueComparisonMonotone
formalization/Cloning/CloningValueComparisonMonotone.lean
Source hash: 0dbf7031761a5f1b7e1352befdb6a4284734445e63799b3726977bb7c8312551
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.
In the dependency map: Spectral bounds
Declarations in this module
theorem
Cloning.ValueComparison.modeFactor_hasDerivAttheorem Cloning.ValueComparison.modeFactor_deriv_postheorem Cloning.ValueComparison.modeFactor_strictMonoOntheorem Cloning.ValueComparison.orbitalValue_mono_ratiostheorem Cloning.ValueComparison.orbitalValue_strict_mono_ratiostheorem Cloning.ValueComparison.universalValue_mono_ratiostheorem Cloning.ValueComparison.universalValue_strict_mono_ratios1import Cloning.Main
2import Mathlib.Analysis.Calculus.Deriv.MeanValue
3import Mathlib.Analysis.Calculus.Deriv.Inv
4import Mathlib.Analysis.SpecialFunctions.Sqrt
5
6/-! Exact one-mode derivative and ratio-wise monotonicity of the cloning values. -/
7noncomputable section
8open scoped BigOperators Topology
9namespace Cloning.ValueComparison
10set_option maxHeartbeats 800000
11set_option backward.isDefEq.respectTransparency false
12
13/-- The exact positive derivative displayed in the manuscript. -/
14theorem modeFactor_hasDerivAt {g q : ℝ} (hg : 1 < g) (hq : 0 < q) :
15 HasDerivAt (Thermal.modeFactor g)
16 ((g-1)^2 / (2*Real.sqrt (q*(g-1+q)) *
17 (Real.sqrt (g*(g-1+q))+Real.sqrt q)^2)) q := by
18 have hg0 : 0 < g := by linarith
19 have hv : 0 < g-1+q := by linarith
20 have hrad : 0 < q*(g-1+q) := mul_pos hq hv
21 have hden : g+q ≠ 0 := ne_of_gt (add_pos hg0 hq)
22 have hd := (((hasDerivAt_const q (Real.sqrt g)).add
23 (((hasDerivAt_id q).mul ((hasDerivAt_id q).const_add (g-1))).sqrt hrad.ne')).div
24 ((hasDerivAt_id q).const_add g) hden)
25 have hr := Real.sq_sqrt hq.le
26 have hs := Real.sq_sqrt hv.le
27 have ht := Real.sq_sqrt hg0.le
28 have hrs : Real.sqrt (q*(g-1+q)) = Real.sqrt q*Real.sqrt (g-1+q) :=
29 Real.sqrt_mul hq.le _
30 have hts : Real.sqrt (g*(g-1+q)) = Real.sqrt g*Real.sqrt (g-1+q) :=
31 Real.sqrt_mul hg0.le _
32 have hr0 : Real.sqrt q ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hq)
33 have hs0 : Real.sqrt (g-1+q) ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hv)
34 have hsum : Real.sqrt g*Real.sqrt (g-1+q)+Real.sqrt q ≠ 0 := by positivity
35 have htsq : (Real.sqrt g*Real.sqrt (g-1+q))^2=g*(g-1+q) := by
36 rw [mul_pow,ht,hs]
37 have hrsq : (Real.sqrt q*Real.sqrt (g-1+q))^2=q*(g-1+q) := by
38 rw [mul_pow,hr,hs]
39 have hnum : (g-1+q+q)*(g+q)-2*Real.sqrt q*Real.sqrt (g-1+q)*
40 (Real.sqrt g+Real.sqrt q*Real.sqrt (g-1+q)) =
41 (Real.sqrt g*Real.sqrt (g-1+q)-Real.sqrt q)^2 := by
42 nlinarith [htsq,hrsq]
43 have hprod : (Real.sqrt g*Real.sqrt (g-1+q)-Real.sqrt q)*
44 (Real.sqrt g*Real.sqrt (g-1+q)+Real.sqrt q)=(g-1)*(g+q) := by
45 nlinarith [htsq]
46 convert hd using 1
47 simp only [Pi.mul_apply,Pi.add_apply,id_eq,one_mul,mul_one,zero_add]
48 rw [hrs,hts]
49 field_simp [hr0,hs0,hden,hsum]
50 calc
51 (g-1)^2*(g+q)^2 = ((Real.sqrt g*Real.sqrt (g-1+q)-Real.sqrt q)*
52 (Real.sqrt g*Real.sqrt (g-1+q)+Real.sqrt q))^2 := by rw [hprod]; ring
53 _ = _ := by rw [hnum]; ring
54
55theorem modeFactor_deriv_pos {g q : ℝ} (hg : 1 < g) (hq : 0 < q) :
56 0 < deriv (Thermal.modeFactor g) q := by
57 rw [(modeFactor_hasDerivAt hg hq).deriv]
58 have : 0 < g-1+q := by linarith
59 have : 0 < g-1 := by linarith
60 have : 0 < g := by linarith
61 positivity
62
63theorem modeFactor_strictMonoOn {g : ℝ} (hg : 1 < g) :
64 StrictMonoOn (Thermal.modeFactor g) (Set.Ici 0) := by
65 apply strictMonoOn_of_deriv_pos (convex_Ici 0)
66 · intro q hq
67 have hc := Thermal.modeFactor_continuousAt (g:=g) (q:=q)
68 (by have : 0≤q := hq; linarith)
69 exact (hc.comp (by fun_prop : ContinuousAt (fun x : ℝ => (g,x)) q)).continuousWithinAt
70 · intro q hq
71 rw [interior_Ici] at hq
72 exact modeFactor_deriv_pos hg hq
73
74theorem orbitalValue_mono_ratios {d : ℕ} {g : ℝ} (hg : 1 < g)
75 (p p' : SimpleSpectrum d) (h : ∀ij, p.ratio ij ≤ p'.ratio ij) :
76 orbitalValue g p ≤ orbitalValue g p' := by
77 apply Finset.prod_le_prod
78 · intro ij _
79 exact (Thermal.modeFactor_pos hg (p.ratio_pos ij).le (p.ratio_lt_one ij)).le
80 · intro ij _
81 exact (modeFactor_strictMonoOn hg).monotoneOn
82 (p.ratio_pos ij).le (p'.ratio_pos ij).le (h ij)
83
84theorem orbitalValue_strict_mono_ratios {d : ℕ} {g : ℝ} (hg : 1 < g)
85 (p p' : SimpleSpectrum d) (h : ∀ij, p.ratio ij ≤ p'.ratio ij)
86 (hs : ∃ij, p.ratio ij < p'.ratio ij) : orbitalValue g p < orbitalValue g p' := by
87 apply Finset.prod_lt_prod
88 · intro ij _
89 exact Thermal.modeFactor_pos hg (p.ratio_pos ij).le (p.ratio_lt_one ij)
90 · intro ij _
91 exact (modeFactor_strictMonoOn hg).monotoneOn
92 (p.ratio_pos ij).le (p'.ratio_pos ij).le (h ij)
93 · obtain ⟨ij,hij⟩ := hs
94 exact ⟨ij,Finset.mem_univ _,modeFactor_strictMonoOn hg
95 (p.ratio_pos ij).le (p'.ratio_pos ij).le hij⟩
96
97theorem universalValue_mono_ratios {d : ℕ} {g : ℝ} (hg : 1 < g)
98 (p p' : SimpleSpectrum d) (h : ∀ij, p.ratio ij ≤ p'.ratio ij) :
99 universalValue g p ≤ universalValue g p' :=
100 mul_le_mul_of_nonneg_left (orbitalValue_mono_ratios hg p p' h)
101 (classicalValue_pos (by linarith) d).le
102
103theorem universalValue_strict_mono_ratios {d : ℕ} {g : ℝ} (hg : 1 < g)
104 (p p' : SimpleSpectrum d) (h : ∀ij, p.ratio ij ≤ p'.ratio ij)
105 (hs : ∃ij, p.ratio ij < p'.ratio ij) : universalValue g p < universalValue g p' :=
106 mul_lt_mul_of_pos_left (orbitalValue_strict_mono_ratios hg p p' h hs)
107 (classicalValue_pos (by linarith) d)
108
109end Cloning.ValueComparison