lemmasignVector_norm (m : ℕ) (b : Fin m →Bool) : ‖signVector m b‖ = Real.sqrt m :=by
proof · 6
lines
rw [EuclideanSpace.norm_eq]
congr 1have h (i : Fin m) : ‖signVector m b i‖ ^ 2 = (1:ℝ) :=by
simp only [signVector_apply]
cases b i <;> norm_num
simp only [h, Finset.sum_const, nsmul_eq_mul, Finset.card_univ, Fintype.card_fin, mul_one]
lemmafacetCenter_region (m : ℕ) (b : Fin m →Bool) (i : Fin m) :
facetCenter m b ∈ labelRegion i (b i) :=by
proof · 9
lines
have ha (j : Fin m) : |facetCenter m b j| = (Real.sqrt m)⁻¹:=by
simp only [facetCenter, PiLp.smul_apply, smul_eq_mul, signVector_apply, abs_mul,
abs_of_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _))]
cases b j <;> norm_num
refine ⟨fun j =>by rw [ha j,ha i],?_⟩
change (if b i then (Real.sqrt m)⁻¹ * (if b i then (-1:ℝ) else1) ≤0else0≤ (Real.sqrt m)⁻¹ * (if b i then (-1:ℝ) else1))
have h := inv_nonneg.mpr (Real.sqrt_nonneg (m:ℝ))
cases b i <;> simp_all
lemmaall_labelRegions_iff_center (m : ℕ) [NeZero m] (b : Fin m →Bool)
(y : EuclideanSpaceℝ (Fin m)) (hy : ‖y‖ = 1) :
(∀ i, y ∈ labelRegion i (b i)) ↔ y = facetCenter m b :=by
proof · 25
lines
refine ⟨?_,fun he i => he ▸ facetCenter_region m b i⟩
intro hyc
leti₀ : Fin m := ⟨0,NeZero.pos m⟩
letd : ℝ:= |y i₀|
havehd : 0≤ d := abs_nonneg _
have hcoord (i : Fin m) : |y i| = d :=
le_antisymm ((hyc i₀).1 i) ((hyc i).1 i₀)
havehv : y = d • signVector m b :=by
ext i
simp only [PiLp.smul_apply, smul_eq_mul, signVector_apply]
have hsign := (hyc i).2
change (if b i then y i ≤0else0≤ y i) at hsign
cases hb : b i
· simp only [hb, Bool.false_eq_true, ↓reduceIte] at hsign ⊢
simpa only [abs_of_nonneg hsign, mul_one] using hcoord i
· simp only [hb, ↓reduceIte] at hsign ⊢have he := hcoord i
rw [abs_of_nonpos hsign] at he
linarith
havehdval : d = (Real.sqrt m)⁻¹:=byhave he := hy
rw [hv,norm_smul,Real.norm_eq_abs,abs_of_nonneg hd,signVector_norm] at he
exact eq_inv_of_mul_eq_one_left he
rw [hv,hdval]
rfl
lemmaconstant_approximation_facet_zero (n m r : ℕ) (hm : 1 < m) [NeZero m]
(b : Fin m →Bool) (y : EuclideanSpaceℝ (Fin m)) :
approximation n m r (fun _ => sphereLabel y) (crossFundamental n)
⟨crossFacet m b,crossFacet_mem m (NeZero.pos m) b⟩ = 0:=by
proof · 25
lines
classical
letK:= hemisphereComplex (n:ℝ) (E:=EuclideanSpaceℝ (Fin n))
lett : {s : FinsetSignedVertex // s ∈ cross m} := ⟨crossFacet m b,crossFacet_mem m (NeZero.pos m) b⟩
letT : ChainK→ₗ[F₂] F₂:= (Finsupp.lapply t).comp (mapChains K (cross m) (fun _ => sphereLabel y))
change T (fineCrossMap n r (crossFundamental n)) = 0haveht : T = 0:=by
apply Finsupp.lhom_ext
intro s a
havehh : T (simplex K s.val) = 0:=by
change mapChains K (cross m) (fun _ => sphereLabel y) (simplex K s.val) t = 0
rw [mapChains_simplex K (cross m) _ s.property]
apply mapSimplex_coeff_zero_of_ne
intro he
havehc : (s.val.image (fun _ => sphereLabel y)).card ≤1:=by
apply Finset.card_le_one.mpr
intro a ha c hc
obtain ⟨_,_,rfl⟩ :=Finset.mem_image.mp ha
obtain ⟨_,_,rfl⟩ :=Finset.mem_image.mp hc
rfl
rw [he,crossFacet_card] at hc
omega
rw [simplex_of_mem K s.property] at hh
haveha : Finsupp.single s a = a • Finsupp.single s (1:F₂) :=by simp
simp only [ha,map_smul,hh,smul_zero,LinearMap.zero_apply]
rw [ht,LinearMap.zero_apply]
lemmacontinuous_missed_facet_zero (n m : ℕ) (hn : 0 < n) (hm : 1 < m) [NeZero m]
(b : Fin m →Bool) (f : EuclideanSpaceℝ (Fin n) →EuclideanSpaceℝ (Fin m))
(hf : ContinuousOn f (annulus n)) (hfn : ∀ x ∈ annulus n, ‖f x‖ = 1)
(hmiss : ∀ x ∈ annulus n, f x ≠ facetCenter m b) :
∃ δ > 0, ∀r : ℕ, (((n:ℝ)-1)/n)^r * 2 < δ →
approximation n m r (fun x => sphereLabel (f x)) (crossFundamental n)
⟨crossFacet m b,crossFacet_mem m (NeZero.pos m) b⟩ = 0:=by
proof · 19
lines
havehfneg : -(facetCenter m b) ≠ facetCenter m b :=by
intro he
havehz : facetCenter m b = 0:=by
ext i
have hi := congrArg (funz : EuclideanSpaceℝ (Fin m) => z i) he
simp only [PiLp.neg_apply] at hi
change facetCenter m b i = 0
linarith
have hn := facetCenter_norm m b
rw [hz,norm_zero] at hn
exact zero_ne_one hn
obtain ⟨δ,hδ,hh⟩ := localized_approximation_coeff n m hn b f (fun _ => -(facetCenter m b))
hf continuousOn_const ∅ isOpen_empty (by simp) (by
intro x hx
rcases hx with h | h
· exact False.elim (hmiss x.val x.property ((all_labelRegions_iff_center m b _ (hfn _ x.property)).mp h))
· exact False.elim (hfneg ((all_labelRegions_iff_center m b _ (by simp [facetCenter_norm])).mp h)))
refine ⟨δ,hδ,fun r hr => ?_⟩
rw [hh r hr,constant_approximation_facet_zero n m r hm b]