Download data/lean/OAI/Geometry/Borsuk/Simplicial/Refinement.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.36 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/Simplicial/Refinement.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Borsuk/Simplicial/Refinement.lean
-
curl -L -o Refinement.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/Simplicial/Refinement.lean
5.36 kB
Lean 4 Β· 8
declarations fullstatements
| import Mathlib | |
| import OAI.Geometry.Borsuk.Simplicial.MapChainsEquivSimplexAll | |
| import OAI.Geometry.Borsuk.Simplicial.BarycenterNeg | |
| namespace OAI | |
| namespace BorsukNine.SimplicialChains | |
| open Finset | |
| open scoped RealInnerProductSpace | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] [DecidableEq E] | |
| noncomputable def refinement (R : β) : β β | |
| Chain (hemisphereComplex R : PreAbstractSimplicialComplex E) ββ[Fβ] | |
| Chain (hemisphereComplex R : PreAbstractSimplicialComplex E) | |
| | 0 => LinearMap.id | |
| | r+1 => (subdivMap (hemisphereComplex R) (hemisphereComplex R) barycenter).comp | |
| (refinement R r) | |
| lemma refinement_boundary (R : β) (r : β) : | |
| (boundary (hemisphereComplex R : PreAbstractSimplicialComplex E)).comp (refinement R r) = | |
| (refinement R r).comp (boundary (hemisphereComplex R)) := by | |
| induction r with | |
| | zero => simp only [refinement, LinearMap.comp_id, LinearMap.id_comp] | |
| | succ r ih => | |
| rw [refinement, β LinearMap.comp_assoc, subdivMap_boundary _ _ _ (hemisphere_subdivision_carrier R), | |
| LinearMap.comp_assoc, ih, β LinearMap.comp_assoc] | |
| lemma refinement_augmentation (R : β) (r : β) : | |
| (augmentation (hemisphereComplex R : PreAbstractSimplicialComplex E)).comp | |
| (refinement R r) = augmentation (hemisphereComplex R) := by | |
| induction r with | |
| | zero => simp only [refinement, LinearMap.comp_id] | |
| | succ r ih => | |
| rw [refinement, β LinearMap.comp_assoc, | |
| subdivMap_augmentation _ _ _ (hemisphere_subdivision_carrier R), ih] | |
| lemma refinement_norm (R : β) (r : β) : | |
| (normMap (hemisphereComplex R : PreAbstractSimplicialComplex E) (Equiv.neg E)).comp | |
| (refinement R r) = (refinement R r).comp (normMap (hemisphereComplex R) (Equiv.neg E)) := by | |
| induction r with | |
| | zero => simp only [refinement, LinearMap.comp_id, LinearMap.id_comp] | |
| | succ r ih => | |
| rw [refinement, β LinearMap.comp_assoc, | |
| subdivMap_norm _ _ (Equiv.neg E) (Equiv.neg E) (hemisphere_neg R) (hemisphere_neg R) | |
| barycenter (barycenter_neg), LinearMap.comp_assoc, ih, β LinearMap.comp_assoc] | |
| lemma refinement_degree (R : β) (r d : β) : | |
| degreeChains (hemisphereComplex R : PreAbstractSimplicialComplex E) d β€ | |
| (degreeChains (hemisphereComplex R) d).comap (refinement R r) := by | |
| induction r with | |
| | zero => intro c hc; exact hc | |
| | succ r ih => | |
| intro c hc | |
| change subdivMap (hemisphereComplex R) (hemisphereComplex R) barycenter | |
| (refinement R r c) β degreeChains (hemisphereComplex R) d | |
| exact subdivMap_degree (hemisphereComplex R : PreAbstractSimplicialComplex E) | |
| (hemisphereComplex R) barycenter d (ih hc) | |
| lemma refinement_mesh (R : β) (r n : β) {c : Chain (hemisphereComplex R : PreAbstractSimplicialComplex E)} | |
| (hc : c β degreeChains (hemisphereComplex R) n) {D : β} (hD : 0 β€ D) | |
| (hmesh : β s β c.support, β x β s.val, β y β s.val, dist x y β€ D) | |
| {t : {s : Finset E // s β hemisphereComplex R}} | |
| (ht : t β (refinement R r c).support) : | |
| β x β t.val, β y β t.val, dist x y β€ (((n:β)-1)/n)^r * D := by | |
| induction r generalizing t with | |
| | zero => simpa only [refinement, LinearMap.id_apply, pow_zero, one_mul] using hmesh t ht | |
| | succ r ih => | |
| change t β (subdivMap (hemisphereComplex R) (hemisphereComplex R) barycenter | |
| (refinement R r c)).support at ht | |
| obtain β¨s,hs,htsβ© := support_linearMap _ _ _ _ ht | |
| rw [subdivMap_simplex _ _ _ s.property] at hts | |
| have hdeg := refinement_degree R r n hc hs | |
| change s.val.card = n at hdeg | |
| have hn : 0 < n := hdeg βΈ s.property.1.card_pos | |
| have hfac : 0 β€ ((n:β)-1)/n := by | |
| have hh : (1:β) β€ n := by exact_mod_cast hn | |
| exact div_nonneg (by linarith) (by positivity) | |
| have hh := subdivSimplex_mesh R s.val n (le_of_eq hdeg) | |
| ((((n:β)-1)/n)^r * D) (mul_nonneg (pow_nonneg hfac _) hD) (ih hs) hts | |
| simpa only [pow_succ', mul_assoc] using hh | |
| omit [DecidableEq E] in | |
| lemma hemisphere_mesh_two (R : β) {s : Finset E} (hs : s β hemisphereComplex R) | |
| {x y : E} (hx : x β s) (hy : y β s) : dist x y β€ 2 := by | |
| obtain β¨_, _, _, unit_normβ© := hs | |
| calc | |
| dist x y β€ βxβ + βyβ := dist_le_norm_add_norm x y | |
| _ β€ 2 := by linarith [(unit_norm x hx).1, (unit_norm y hy).1] | |
| lemma refinement_mesh_uniform (R : β) (r n d : β) (hd : d β€ n) | |
| {c : Chain (hemisphereComplex R : PreAbstractSimplicialComplex E)} | |
| (hc : c β degreeChains (hemisphereComplex R) d) | |
| {t : {s : Finset E // s β hemisphereComplex R}} | |
| (ht : t β (refinement R r c).support) : | |
| β x β t.val, β y β t.val, dist x y β€ (((n:β)-1)/n)^r * 2 := by | |
| have hdeg := refinement_degree R r d hc ht | |
| have htpos := t.property.1.card_pos | |
| change t.val.card = d at hdeg | |
| have hdpos : 0 < d := hdeg βΈ htpos | |
| have hfac : 0 β€ ((d:β)-1)/d := by | |
| have hh : (1:β) β€ d := by exact_mod_cast hdpos | |
| exact div_nonneg (by linarith) (by positivity) | |
| have hm := refinement_mesh R r d hc (D := 2) (by norm_num) | |
| (fun simplex _ _ first_mem _ second_mem => | |
| hemisphere_mesh_two R simplex.property first_mem second_mem) ht | |
| intro x hx y hy | |
| exact (hm x hx y hy).trans (mul_le_mul_of_nonneg_right | |
| (pow_le_pow_leftβ hfac (barycenter_mesh_factor hdpos hd) r) (by norm_num)) | |
| end BorsukNine.SimplicialChains | |
| end OAI | |
Outline