Download data/lean/OAI/NumberTheory/Jacobsthal/Analysis/SmallModelMeasure.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.52 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/Jacobsthal/Analysis/SmallModelMeasure.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/Jacobsthal/Analysis/SmallModelMeasure.lean
-
curl -L -o SmallModelMeasure.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/Jacobsthal/Analysis/SmallModelMeasure.lean
3.52 kB
| import OAI.NumberTheory.Jacobsthal.Estimates.SmallModelSourceScales | |
| namespace OAI | |
| namespace Erdos970 | |
| open scoped _root_.Erdos970 | |
| section | |
| namespace ErdosVarianceSmallModel | |
| attribute [local instance] Classical.propDecidable | |
| attribute [local instance] Classical.decEq | |
| noncomputable def modelUnitIntegers (R xi : β) (H : β) (C0 : β€) : Finset β€ := | |
| (modelIntegers R xi (H : β) (C0 : β)).filter (fun m => m.natAbs.Coprime H) | |
| noncomputable def modelUniverse (R xi w : β) (H : β) (C0 : β€) : Finset (ModelPoint w H) := | |
| (modelUnitIntegers R xi H C0).product Finset.univ | |
| noncomputable def atomWeight (R xi w : β) (H : β) (C0 : β€) : β := | |
| (H : β)/((H.totient : β)*modelLength R xi (H : β) (C0 : β)* | |
| (divisorModulus w H : β)*((coprimeModulus w H).totient : β)) | |
| noncomputable def modelMass (R xi w : β) (H : β) (C0 : β€) (E : ModelPoint w H β Prop) : β := | |
| β _v β (modelUniverse R xi w H C0).filter E,atomWeight R xi w H C0 | |
| theorem mem_modelUniverse (R xi w : β) (H : β) (C0 : β€) (v : ModelPoint w H) : | |
| v β modelUniverse R xi w H C0 β | |
| modelLeft R xi (C0 : β) β€ (v.1 : β) β§ (v.1 : β) < modelRight R xi (H : β) (C0 : β) β§ | |
| v.1.natAbs.Coprime H := by | |
| simp only [modelUniverse,Finset.product_eq_sprod,Finset.mem_product,Finset.mem_univ,and_true, | |
| modelUnitIntegers,Finset.mem_filter,mem_modelIntegers,and_assoc] | |
| theorem atomWeight_pos (R xi w : β) (H : β) (C0 : β€) (hR : 0 < R) (hxi : 0 β€ xi) (hH : 0 < H) : | |
| 0 < atomWeight R xi w H C0 := by | |
| have hHR : (0 : β) < H := by exact_mod_cast hH | |
| have hphi : (0 : β) < H.totient := by exact_mod_cast Nat.totient_pos.mpr hH | |
| have hT0 : (0 : β) < divisorModulus w H := by exact_mod_cast divisorModulus_pos w H | |
| have hT1 : (0 : β) < (coprimeModulus w H).totient := by | |
| exact_mod_cast Nat.totient_pos.mpr (coprimeModulus_pos w H) | |
| have hY : 0 < modelLength R xi (H : β) (C0 : β) := by | |
| dsimp [modelLength,interceptScale] | |
| positivity | |
| unfold atomWeight | |
| positivity | |
| theorem modelMass_card (R xi w : β) (H : β) (C0 : β€) (E : ModelPoint w H β Prop) : | |
| modelMass R xi w H C0 E = | |
| (((modelUniverse R xi w H C0).filter E).card : β)*atomWeight R xi w H C0 := by | |
| simp only [modelMass,Finset.sum_const,nsmul_eq_mul] | |
| theorem modelUniverse_card (R xi w : β) (H : β) (C0 : β€) : | |
| (modelUniverse R xi w H C0).card = | |
| (modelUnitIntegers R xi H C0).card*(divisorModulus w H*(coprimeModulus w H).totient) := by | |
| simp only [modelUniverse,Finset.product_eq_sprod,Finset.card_product,Finset.card_univ,pattern_card] | |
| theorem model_total_mass (R xi w : β) (H : β) (C0 : β€) (hR : 0 < R) (hxi : 0 β€ xi) (hH : 0 < H) : | |
| modelMass R xi w H C0 (fun _ => True) = | |
| ((modelUnitIntegers R xi H C0).card : β)*(H : β)/ | |
| ((H.totient : β)*modelLength R xi (H : β) (C0 : β)) := by | |
| have hphi : (0 : β) < H.totient := by exact_mod_cast Nat.totient_pos.mpr hH | |
| have hT0 : (0 : β) < divisorModulus w H := by exact_mod_cast divisorModulus_pos w H | |
| have hT1 : (0 : β) < (coprimeModulus w H).totient := by | |
| exact_mod_cast Nat.totient_pos.mpr (coprimeModulus_pos w H) | |
| have hY : 0 < modelLength R xi (H : β) (C0 : β) := by | |
| have hHR : (0 : β) < H := by exact_mod_cast hH | |
| dsimp [modelLength,interceptScale] | |
| positivity | |
| rw [modelMass_card,Finset.filter_true,modelUniverse_card] | |
| simp only [Nat.cast_mul,atomWeight] | |
| field_simp | |
| end ErdosVarianceSmallModel | |
| end | |
| end Erdos970 | |
| end OAI | |