Download data/lean/OAI/Analysis/C0Absorption/Norm.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.98 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/C0Absorption/Norm.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/C0Absorption/Norm.lean
-
curl -L -o Norm.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/C0Absorption/Norm.lean
5.98 kB
| import OAI.Analysis.C0Absorption.Molecules | |
| namespace OAI | |
| namespace C0Absorption | |
| open scoped BigOperators NNReal ENNReal | |
| noncomputable section | |
| open Finset | |
| section SelectedNorm | |
| variable {S : Type*} [MetricSpace S] | |
| def triple (n : β) : β Γ β Γ β := | |
| ((Nat.unpair n).1, Nat.unpair (Nat.unpair n).2) | |
| theorem triple_surjective : Function.Surjective triple := by | |
| rintro β¨h, C, kβ© | |
| exact β¨Nat.pair h (Nat.pair C k), by simp [triple]β© | |
| def listConstant (n : β) : ββ₯0 := (triple n).2.1 + 1 | |
| theorem listConstant_pos (n : β) : 0 < listConstant n := by | |
| dsimp [listConstant] | |
| positivity | |
| def listExponent (n : β) : ββ₯0β := 1 + ((triple n).2.2 + 1 : ββ₯0β)β»ΒΉ | |
| instance (n : β) : Fact (1 β€ listExponent n) := β¨by simp [listExponent]β© | |
| theorem listExponent_ne_top (n : β) : listExponent n β β := by | |
| simp [listExponent] | |
| theorem listExponent_toReal (n : β) : | |
| (listExponent n).toReal = 1 + 1 / ((triple n).2.2 + 1 : β) := by | |
| simp [listExponent, ENNReal.toReal_add, one_div] | |
| def alpha (n : β) : β := (1 / 2 : β) ^ (n + 1) / (listConstant n : β) ^ 2 | |
| theorem alpha_pos (n : β) : 0 < alpha n := by | |
| have hC : 0 < (listConstant n : β) := by exact_mod_cast listConstant_pos n | |
| dsimp [alpha] | |
| positivity | |
| def squareWeight (n : β) : ββ₯0 := | |
| β¨Real.sqrt ((1 / 2 : β) ^ (n + 1)) / (listConstant n : β), by positivityβ© | |
| theorem squareWeight_sq (n : β) : (squareWeight n : β) ^ 2 = alpha n := by | |
| change (Real.sqrt ((1 / 2 : β) ^ (n + 1)) / (listConstant n : β)) ^ 2 = | |
| (1 / 2 : β) ^ (n + 1) / (listConstant n : β) ^ 2 | |
| rw [div_pow, Real.sq_sqrt (by positivity)] | |
| theorem squareWeight_pos (n : β) : 0 < (squareWeight n : β) := by | |
| have h := alpha_pos n | |
| rw [β squareWeight_sq] at h | |
| have hn := (squareWeight n).coe_nonneg | |
| nlinarith | |
| def selectedCoordinate (L : β β Set (S β β)) (n : β) : Seminorm β (Molecule S) := | |
| squareWeight n β’ sigma (L (triple n).1) (listConstant n) (listExponent n) | |
| theorem selectedCoordinate_apply (L : β β Set (S β β)) (n : β) (m : Molecule S) : | |
| selectedCoordinate L n m = (squareWeight n : β) * | |
| sigma (L (triple n).1) (listConstant n) (listExponent n) m := rfl | |
| theorem weighted_bound (n : β) (a b : β) (h : a β€ (listConstant n : β) * b) : | |
| (squareWeight n : β) * a β€ Real.sqrt ((1 / 2 : β) ^ (n + 1)) * b := by | |
| have hC : (listConstant n : β) β 0 := ne_of_gt (by exact_mod_cast listConstant_pos n) | |
| have h' := mul_le_mul_of_nonneg_left h (squareWeight n).coe_nonneg | |
| calc | |
| (squareWeight n : β) * a β€ | |
| (Real.sqrt ((1 / 2 : β) ^ (n + 1)) / (listConstant n : β)) * | |
| ((listConstant n : β) * b) := h' | |
| _ = Real.sqrt ((1 / 2 : β) ^ (n + 1)) * b := by field_simp | |
| theorem selectedCoordinate_bound (L : β β Set (S β β)) (o : S) (n : β) (m : Molecule S) : | |
| selectedCoordinate L n m β€ Real.sqrt ((1 / 2 : β) ^ (n + 1)) * | |
| β s β m.val.support, |m.val s| * dist s o := by | |
| exact weighted_bound n _ _ | |
| (sigma_le (L (triple n).1) (listConstant n) (listExponent n) o m) | |
| theorem geometric_summable : Summable (fun n : β => (1 / 2 : β) ^ (n + 1)) := by | |
| simpa only [pow_succ] using | |
| (summable_geometric_of_lt_one (by norm_num : (0 : β) β€ 1 / 2) | |
| (by norm_num : (1 / 2 : β) < 1)).mul_right (1 / 2) | |
| theorem geometric_tsum : β' n : β, (1 / 2 : β) ^ (n + 1) = 1 := by | |
| simp_rw [pow_succ] | |
| rw [tsum_mul_right, tsum_geometric_of_lt_one (by norm_num) (by norm_num)] | |
| norm_num | |
| theorem selectedCoordinate_summable (L : β β Set (S β β)) (o : S) (m : Molecule S) : | |
| Summable (fun n => (selectedCoordinate L n m) ^ 2) := by | |
| classical | |
| let b := β s β m.val.support, |m.val s| * dist s o | |
| have hb : 0 β€ b := Finset.sum_nonneg (fun _ _ => mul_nonneg (abs_nonneg _) dist_nonneg) | |
| apply Summable.of_nonneg_of_le (fun n => sq_nonneg _) _ (geometric_summable.mul_right (b ^ 2)) | |
| intro n | |
| calc | |
| (selectedCoordinate L n m) ^ 2 β€ (Real.sqrt ((1 / 2 : β) ^ (n + 1)) * b) ^ 2 := by | |
| apply pow_le_pow_leftβ (apply_nonneg _ _) (selectedCoordinate_bound L o n m) | |
| _ = (1 / 2 : β) ^ (n + 1) * b ^ 2 := by | |
| rw [mul_pow, Real.sq_sqrt (by positivity)] | |
| def selectedNorm (L : β β Set (S β β)) (o : S) : Seminorm β (Molecule S) := | |
| squareSeminorm (selectedCoordinate L) (selectedCoordinate_summable L o) | |
| theorem selectedNorm_sq (L : β β Set (S β β)) (o : S) (m : Molecule S) : | |
| (selectedNorm L o m) ^ 2 = β' n, alpha n * | |
| (sigma (L (triple n).1) (listConstant n) (listExponent n) m) ^ 2 := by | |
| rw [selectedNorm, squareSeminorm_sq] | |
| apply tsum_congr | |
| intro n | |
| rw [selectedCoordinate_apply, mul_pow, squareWeight_sq] | |
| theorem selectedNorm_molecule_le (L : β β Set (S β β)) (o s t : S) : | |
| selectedNorm L o (molecule s t) β€ dist s t := by | |
| have hh : β n, (selectedCoordinate L n (molecule s t)) ^ 2 β€ | |
| (1 / 2 : β) ^ (n + 1) * (dist s t) ^ 2 := by | |
| intro n | |
| have h := weighted_bound n _ _ | |
| (sigma_molecule_le (L (triple n).1) (listConstant n) (listExponent n) s t) | |
| calc | |
| (selectedCoordinate L n (molecule s t)) ^ 2 | |
| β€ (Real.sqrt ((1 / 2 : β) ^ (n + 1)) * dist s t) ^ 2 := | |
| pow_le_pow_leftβ (apply_nonneg _ _) h 2 | |
| _ = (1 / 2 : β) ^ (n + 1) * dist s t ^ 2 := by | |
| rw [mul_pow, Real.sq_sqrt (by positivity)] | |
| have hsq : (selectedNorm L o (molecule s t)) ^ 2 β€ dist s t ^ 2 := by | |
| rw [selectedNorm, squareSeminorm_sq] | |
| calc | |
| β' n, (selectedCoordinate L n (molecule s t)) ^ 2 | |
| β€ β' n, (1 / 2 : β) ^ (n + 1) * dist s t ^ 2 := | |
| Summable.tsum_le_tsum hh (selectedCoordinate_summable L o _) | |
| (geometric_summable.mul_right _) | |
| _ = dist s t ^ 2 := by rw [tsum_mul_right, geometric_tsum, one_mul] | |
| nlinarith [apply_nonneg (selectedNorm L o) (molecule s t), dist_nonneg (x := s) (y := t)] | |
| end SelectedNorm | |
| end | |
| end C0Absorption | |
| end OAI | |