Download data/lean/OAI/Geometry/Borsuk/Support/ChamberPath.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.03 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/Support/ChamberPath.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Borsuk/Support/ChamberPath.lean
-
curl -L -o ChamberPath.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Borsuk/Support/ChamberPath.lean
3.03 kB
| import Mathlib | |
| import OAI.Geometry.Borsuk.Support.Chambers | |
| namespace OAI | |
| namespace BorsukNine | |
| open scoped RealInnerProductSpace | |
| section ChamberPath | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| noncomputable def chamberPath (c u : E) (t : β) : E := | |
| β(1-t) β’ u + t β’ cββ»ΒΉ β’ ((1-t) β’ u + t β’ c) | |
| lemma signChamber_smul {Z : Set E} {c u : E} (hu : u β signChamber Z c) | |
| {t : β} (ht : 0 < t) : t β’ u β signChamber Z c := by | |
| intro z hz | |
| rw [real_inner_smul_left,mul_left_comm] | |
| exact mul_pos ht (hu z hz) | |
| lemma chamber_interpolation_mem {Z : Set E} {c u : E} (hc : c β safeNormals Z) | |
| (hu : u β signChamber Z c) {t : β} (ht : t β Set.Icc 0 1) : | |
| (1-t) β’ u + t β’ c β signChamber Z c := | |
| signChamber_convex Z c hu (mem_signChamber_self hc) (sub_nonneg.mpr ht.2) ht.1 (by ring) | |
| lemma chamber_interpolation_ne_zero {Z : Set E} {c u : E} (hcZ : c β Z) | |
| (hc : c β safeNormals Z) (hu : u β signChamber Z c) | |
| {t : β} (ht : t β Set.Icc 0 1) : (1-t) β’ u + t β’ c β 0 := by | |
| intro he | |
| have h := chamber_interpolation_mem hc hu ht c hcZ | |
| simp [he] at h | |
| lemma chamberPath_norm {Z : Set E} {c u : E} (hcZ : c β Z) | |
| (hc : c β safeNormals Z) (hu : u β signChamber Z c) | |
| {t : β} (ht : t β Set.Icc 0 1) : βchamberPath c u tβ = 1 := by | |
| have hn := chamber_interpolation_ne_zero hcZ hc hu ht | |
| simp only [chamberPath,norm_smul,norm_inv,norm_norm,inv_mul_cancelβ (norm_ne_zero_iff.mpr hn)] | |
| lemma chamberPath_mem {Z : Set E} {c u : E} (hcZ : c β Z) | |
| (hc : c β safeNormals Z) (hu : u β signChamber Z c) | |
| {t : β} (ht : t β Set.Icc 0 1) : chamberPath c u t β signChamber Z c := | |
| signChamber_smul (chamber_interpolation_mem hc hu ht) | |
| (inv_pos.mpr (norm_pos_iff.mpr (chamber_interpolation_ne_zero hcZ hc hu ht))) | |
| lemma chamberPath_zero (c u : E) (hu : βuβ = 1) : chamberPath c u 0 = u := by | |
| simp [chamberPath,hu] | |
| lemma chamberPath_one (c u : E) (hc : βcβ = 1) : chamberPath c u 1 = c := by | |
| simp [chamberPath,hc] | |
| lemma chamber_add_ne_zero {Z : Set E} {c u : E} (hcZ : c β Z) | |
| (hc : c β safeNormals Z) (hu : u β signChamber Z c) : c+u β 0 := by | |
| intro he | |
| have h := hu c hcZ | |
| have hn := hc c hcZ | |
| have hei : βͺc,cβ« + βͺu,cβ« = 0 := by rw [β inner_add_left,he,inner_zero_left] | |
| have hei' : βͺu,cβ« = -βͺc,cβ« := by linarith | |
| rw [hei'] at h | |
| nlinarith [sq_nonneg βͺc,cβ«] | |
| lemma chamberPath_continuousOn {Z : Set E} {c : E} (hcZ : c β Z) | |
| (hc : c β safeNormals Z) : ContinuousOn (fun p : β Γ E => chamberPath c p.2 p.1) | |
| (Set.Icc (0:β) 1 ΓΛ’ signChamber Z c) := by | |
| have hs : Continuous (fun p : β Γ E => (1-p.1) β’ p.2 + p.1 β’ c) := | |
| ((continuous_const.sub continuous_fst).smul continuous_snd).add | |
| (continuous_fst.smul continuous_const) | |
| exact (hs.norm.continuousOn.invβ (fun p hp => norm_ne_zero_iff.mpr | |
| (chamber_interpolation_ne_zero hcZ hc hp.2 hp.1))).smul hs.continuousOn | |
| end ChamberPath | |
| end BorsukNine | |
| end OAI | |