cfahlgren1/math / lean /OAI /Geometry /BallPacking /Annuli /AnnularCurvaturePrimitive.lean
cfahlgren1's picture
download
raw
28.9 kB
14
def annularRadialIntegral (a : ℝ) (ΞΊ : P Γ— Plane β†’ ℝ) (q : P Γ— Plane) : ℝ :=
body Β· 1 line
  ∫ s in a..q.2.1,κ (q.1,(s,q.2.2))
17
theorem annularRadialIntegral_smooth {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ))) :
    ContDiffOn ℝ ∞ (annularRadialIntegral a ΞΊ) (V Γ—Λ’ (I Γ—Λ’ univ)) := by
proof Β· 7 lines
  have hG : ContDiffOn ℝ ∞ (fun q : (P Γ— ℝ) Γ— ℝ => ΞΊ (q.1.1,(q.2,q.1.2)))
      ((V Γ—Λ’ univ) Γ—Λ’ I) :=
    hΞΊ.comp (contDiff_fst.fst.prodMk (contDiff_snd.prodMk contDiff_fst.snd)).contDiffOn
      (fun _ hq => ⟨hq.1.1,hq.2,hq.1.2⟩)
  have hi := contDiffOn_parameter_segment_integral (hV.prod isOpen_univ) hI hc a ha hG
  exact hi.comp ((contDiff_fst.prodMk contDiff_snd.snd).prodMk contDiff_snd.fst).contDiffOn
    (fun _ hq => ⟨⟨hq.1,hq.2.2⟩,hq.2.1⟩)
30
theorem annularRadialIntegral_periodic {V : Set P} {I : Set ℝ} (hc : Convex ℝ I)
    {a : ℝ} (ha : a∈I) {ΞΊ : P Γ— Plane β†’ ℝ}
    (hΞΊ : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {s : ℝ} (hs : s∈I) :
    Periodic (fun t => annularRadialIntegral a ΞΊ (p,(s,t))) 1 := by
proof Β· 5 lines
  intro t
  apply intervalIntegral.integral_congr
  intro u hu
  have huI : u∈I := hc.segment_subset ha hs (by simpa only [segment_eq_uIcc] using hu)
  exact hΞΊ p hp u huI t
42
theorem annularRadialIntegral_hasDerivAt {V : Set P} {I : Set ℝ}
    (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    {p : P} (hp : p∈V) {q : Plane} (hq : q.1∈I) :
    HasDerivAt (fun s => annularRadialIntegral a ΞΊ (p,(s,q.2))) (ΞΊ (p,q)) q.1 := by
proof Β· 5 lines
  change HasDerivAt (fun s => ∫ u in a..s,κ (p,(u,q.2))) (κ (p,(q.1,q.2))) q.1
  apply hasDerivAt_primitive_on hI hc _ ha hq
  exact hΞΊ.continuousOn.comp
    (continuous_const.prodMk (continuous_id.prodMk continuous_const)).continuousOn
    (fun _ hs => ⟨hp,hs,mem_univ _⟩)
54
theorem planarCovector_exterior_at {U V : Plane β†’ ℝ} {p : Plane}
    (hU : ContDiffAt ℝ ∞ U p) (hV : ContDiffAt ℝ ∞ V p) :
    euclideanExteriorOneForm (fun x => planarCovector (U x) (V x)) p=
      (fderiv ℝ V p (1,0)-fderiv ℝ U p (0,1)) β€’ planarArea := by
proof Β· 16 lines
  let Ξ± : Plane β†’ Plane β†’L[ℝ] ℝ := fun x => planarCovector (U x) (V x)
  have ha : DifferentiableAt ℝ Ξ± p :=
    ((hU.smul contDiffAt_const).add (hV.smul contDiffAt_const)).differentiableAt (by simp)
  have hV' : fderiv ℝ Ξ± p (1,0) (0,1)=fderiv ℝ V p (1,0) := by
    rw [← fderiv_clm_eval ha]
    simp only [Ξ±,planarCovector_apply,mul_zero,mul_one,zero_add]
  have hU' : fderiv ℝ Ξ± p (0,1) (1,0)=fderiv ℝ U p (0,1) := by
    rw [← fderiv_clm_eval ha]
    simp only [Ξ±,planarCovector_apply,mul_zero,mul_one,add_zero]
  apply ContinuousLinearMap.ext
  intro u
  apply ContinuousLinearMap.ext
  intro v
  change fderiv ℝ Ξ± p u v-fderiv ℝ Ξ± p v u=_
  rw [bilinear_skew_plane,hV',hU']
  rfl
75
theorem annular_curvature_primitive {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1) :
    ContMDiffOn ((π“˜(ℝ,P Γ— ℝ)).prod π“˜(ℝ,CircleModel)) π“˜(ℝ,ℝ) ∞
      (annularScalarDescent (annularRadialIntegral a ΞΊ)) ((V Γ—Λ’ I) Γ—Λ’ univ) ∧
      (βˆ€ p∈V,βˆ€ q : Plane,q.1∈I β†’
        euclideanExteriorOneForm (fun z => planarCovector 0 (annularRadialIntegral a ΞΊ (p,z))) q=
          ΞΊ (p,q) β€’ planarArea) := by
proof Β· 13 lines
  have hB := annularRadialIntegral_smooth hV hI hc ha hΞΊ
  refine ⟨annularScalarDescent_smoothOn hV hI hB
    (fun _ hp _ hs => annularRadialIntegral_periodic hc ha hper hp hs),?_⟩
  intro p hp q hq
  have hBp : ContDiffOn ℝ ∞ (fun z => annularRadialIntegral a ΞΊ (p,z)) (I Γ—Λ’ univ) :=
    hB.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun _ hz => ⟨hp,hz⟩)
  have hBa := hBp.contDiffAt ((hI.prod isOpen_univ).mem_nhds ⟨hq,mem_univ _⟩)
  have hd := (hBa.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt q.1
    ((hasDerivAt_id q.1).prodMk (hasDerivAt_const q.1 q.2))
  have he : fderiv ℝ (fun z => annularRadialIntegral a ΞΊ (p,z)) q (1,0)=ΞΊ (p,q) :=
    hd.unique (annularRadialIntegral_hasDerivAt hI hc ha hΞΊ hp hq)
  rw [planarCovector_exterior_at contDiffAt_const hBa,he]
  simp
106
def handleCutPoint : Circle := circleTurn (1/2)
108
theorem handleCutPoint_ne_one : handleCutPoint≠1 := by
proof Β· 6 lines
  have he : handleCutPoint=Circle.exp Real.pi := by
    unfold handleCutPoint circleTurn
    congr 1
    ring
  rw [he]
  exact Circle.exp_pi_ne_one
116
theorem shortCircleArgument_cutPoint : shortCircleArgument handleCutPoint=1/2 := by
proof Β· 8 lines
  have he : handleCutPoint=Circle.exp Real.pi := by
    unfold handleCutPoint circleTurn
    congr 1
    ring
  rw [he]
  unfold shortCircleArgument
  rw [Circle.arg_exp (by linarith [Real.pi_pos]) le_rfl]
  field_simp
126
theorem handleCutPoint_not_band : handleCutPointβˆ‰circleBandCoordinate.target := by
proof Β· 4 lines
  rintro ⟨s,hs,he⟩
  have ht := congrArg shortCircleArgument he
  rw [shortCircleArgument_cutPoint,shortCircleArgument_turn hs] at ht
  exact hs.2.ne ht
132
def compactHandleBand (a : ℝ) : Set HandleTorus :=
body Β· 1 line
  torusAnnulusMap '' (Icc (-a) a Γ—Λ’ (univ : Set Circle))
135
theorem compactHandleBand_isCompact (a : ℝ) : IsCompact (compactHandleBand a) :=
proof Β· 1 line
  torusAnnulus_compact
138
def handlePuncture : HandleTorus := (handleCutPoint,1)
140
theorem handlePuncture_not_compactBand {a : ℝ} (ha : a<1/2) :
    handlePunctureβˆ‰compactHandleBand a := by
proof Β· 5 lines
  rintro ⟨z,hz,he⟩
  have hs : z.1∈Ioo (-(1/2):ℝ) (1/2) := ⟨by linarith [hz.1.1],by linarith [hz.1.2]⟩
  apply handleCutPoint_not_band
  refine ⟨z.1,hs,?_⟩
  exact congrArg Prod.fst he
148
theorem exists_torus_handle_away_from_puncture {a : ℝ} (ha : a<1/2) :
    βˆƒ (f : Circle β†’ ℝ) (U : Set HandleTorus),
      ContMDiff π“˜(ℝ,CircleModel) π“˜(ℝ,ℝ) ∞ f ∧
      (βˆ€ z,0≀f z) ∧
      (βˆ€ z,manifoldExteriorOneForm (torusHandleForm f) z=0) ∧
      IsOpen U ∧ handlePuncture∈U ∧
      Disjoint U (compactHandleBand a) ∧
      Disjoint U (tsupport (torusHandleForm f)) ∧
      (βˆ€ z : Circle, (∫ t in (0:ℝ)..1, torusHandleForm f (transverseTorusCircle z t)
        (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,TorusModel) (transverseTorusCircle z) t 1))=1) := by
proof Β· 18 lines
  have hn : ({1}ᢜ : Set Circle) ∈ 𝓝 handleCutPoint :=
    isClosed_singleton.isOpen_compl.mem_nhds handleCutPoint_ne_one
  obtain ⟨f,hf,hpos,hsupp,hJ,_⟩ := exists_normalized_circle_bump hn
  let T := compactHandleBand a βˆͺ tsupport (torusHandleForm f)
  have hT : IsClosed T := (compactHandleBand_isCompact a).isClosed.union isClosed_closure
  have hp : handlePunctureβˆ‰T := by
    rintro (hband|hs)
    Β· exact handlePuncture_not_compactBand ha hband
    Β· have hh := hsupp (torusHandleForm_tsupport f hs).2
      exact hh rfl
  refine ⟨f,Tᢜ,hf,hpos,torusHandleForm_closed hf,hT.isOpen_compl,hp,?_,?_,?_⟩
  Β· exact disjoint_compl_left.mono_right subset_union_left
  Β· exact disjoint_compl_left.mono_right subset_union_right
  Β· intro z
    refine Eq.trans ?_ hJ
    apply intervalIntegral.integral_congr
    intro t _
    exact (torusHandleForm_transverse f z t 1).trans (mul_one _)
185
theorem torus_fst_smooth : ContMDiff π“˜(ℝ,TorusModel) π“˜(ℝ,CircleModel) ∞
    (Prod.fst : HandleTorus β†’ Circle) := by
proof Β· 3 lines
  rw [show π“˜(ℝ,TorusModel) = (π“˜(ℝ,CircleModel)).prod π“˜(ℝ,CircleModel) from
    modelWithCornersSelf_prod]
  exact contMDiff_fst
191
def torusFirstForm (f : Circle β†’ ℝ) : ManifoldOneForm TorusModel HandleTorus :=
body Β· 1 line
  manifoldPullbackOneForm (fun _ => weightedCircleAngular f) Prod.fst 0
194
@[simp] theorem torusFirstForm_apply (f : Circle β†’ ℝ) (z : HandleTorus) (v : TorusModel) :
    torusFirstForm f z v=weightedCircleAngular f z.1 v.1 := by
proof Β· 4 lines
  simp only [torusFirstForm,manifoldPullbackOneForm,manifoldMapDifferential]
  rw [show π“˜(ℝ,TorusModel) = (π“˜(ℝ,CircleModel)).prod π“˜(ℝ,CircleModel) from
    modelWithCornersSelf_prod,mfderiv_fst]
  rfl
201
theorem torusFirstForm_smooth {f : Circle β†’ ℝ}
    (hf : ContMDiff π“˜(ℝ,CircleModel) π“˜(ℝ,ℝ) ∞ f) (c : HandleTorus) :
    ContDiffOn ℝ ∞ (chartOneForm (torusFirstForm f) c)
      (extChartAt π“˜(ℝ,TorusModel) c).target := by
proof Β· 10 lines
  have hΞ± : βˆ€ b : Circle, ContDiffOn ℝ ∞
      (fun p : ℝ Γ— CircleModel => chartOneForm (weightedCircleAngular f) b p.2)
      (univ Γ—Λ’ (extChartAt π“˜(ℝ,CircleModel) b).target) := by
    intro b
    exact (weightedCircleAngular_smooth hf b).comp contDiffOn_snd (fun _ hp => hp.2)
  have ht := manifoldPullbackOneForm_smooth
    (E := CircleModel) (F := TorusModel) (Ξ± := fun _ => weightedCircleAngular f)
    (e := (Prod.fst : HandleTorus β†’ Circle)) torus_fst_smooth hΞ± c
  exact ht.comp (f := fun y => ((0 : ℝ),y))
    (contDiffOn_const.prodMk contDiffOn_id) (fun _ hy => ⟨mem_univ _,hy⟩)
216
def torusTurns (z : Plane) : HandleTorus := (circleTurn z.1,circleTurn z.2)
218
theorem flatPlane_fst_smooth : ContMDiff π“˜(ℝ,Plane) π“˜(ℝ,ℝ) ∞ (Prod.fst : Plane β†’ ℝ) :=
proof Β· 1 line
  (contDiff_fst : ContDiff ℝ ∞ (Prod.fst : Plane β†’ ℝ)).contMDiff
221
theorem flatPlane_snd_smooth : ContMDiff π“˜(ℝ,Plane) π“˜(ℝ,ℝ) ∞ (Prod.snd : Plane β†’ ℝ) :=
proof Β· 1 line
  (contDiff_snd : ContDiff ℝ ∞ (Prod.snd : Plane β†’ ℝ)).contMDiff
224
theorem torusTurns_smooth : ContMDiff π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) ∞ torusTurns := by
proof Β· 4 lines
  rw [show π“˜(ℝ,TorusModel) = (π“˜(ℝ,CircleModel)).prod π“˜(ℝ,CircleModel) from
    modelWithCornersSelf_prod]
  exact (circleTurn_smooth.comp flatPlane_fst_smooth).prodMk
    (circleTurn_smooth.comp flatPlane_snd_smooth)
230
theorem torusTurns_derivative (z v : Plane) :
    mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z v=
      (mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn z.1 v.1,
       mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn z.2 v.2) := by
proof Β· 20 lines
  rw [show π“˜(ℝ,TorusModel) = (π“˜(ℝ,CircleModel)).prod π“˜(ℝ,CircleModel) from
    modelWithCornersSelf_prod]
  have hd := mfderiv_prodMk (I := π“˜(ℝ,Plane)) (I' := π“˜(ℝ,CircleModel))
    (I'' := π“˜(ℝ,CircleModel)) (f := fun z : Plane => circleTurn z.1)
    (g := fun z : Plane => circleTurn z.2) (x := z)
    ((circleTurn_smooth.comp flatPlane_fst_smooth).mdifferentiableAt (by simp))
    ((circleTurn_smooth.comp flatPlane_snd_smooth).mdifferentiableAt (by simp))
  change (mfderiv π“˜(ℝ,Plane) ((π“˜(ℝ,CircleModel)).prod π“˜(ℝ,CircleModel))
    (fun x : Plane => (circleTurn x.1,circleTurn x.2)) z v)=_
  rw [hd]
  have hfst := mfderiv_comp z (circleTurn_smooth.mdifferentiableAt (by simp))
    (I := π“˜(ℝ,Plane)) (I' := π“˜(ℝ,ℝ)) (I'' := π“˜(ℝ,CircleModel))
    (f := (Prod.fst : Plane β†’ ℝ)) (flatPlane_fst_smooth.mdifferentiableAt (by simp))
  have hsnd := mfderiv_comp z (circleTurn_smooth.mdifferentiableAt (by simp))
    (I := π“˜(ℝ,Plane)) (I' := π“˜(ℝ,ℝ)) (I'' := π“˜(ℝ,CircleModel))
    (f := (Prod.snd : Plane β†’ ℝ)) (flatPlane_snd_smooth.mdifferentiableAt (by simp))
  change ((mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CircleModel) (circleTurn ∘ Prod.fst) z) v,
    (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CircleModel) (circleTurn ∘ Prod.snd) z) v)=_
  rw [hfst,hsnd,mfderiv_eq_fderiv,mfderiv_eq_fderiv,fderiv_fst,fderiv_snd]
  rfl
255
def torusAnnularDensity (b : ℝ) (f : Circle β†’ ℝ) : ManifoldTwoForm TorusModel HandleTorus :=
body Β· 1 line
  manifoldWedge (torusFirstForm (circleClockDensity b)) (torusHandleForm f)
258
theorem torusAnnularDensity_smooth {b : ℝ} (hb : 0<b) (hsmall : b<1/2)
    {f : Circle β†’ ℝ} (hf : ContMDiff π“˜(ℝ,CircleModel) π“˜(ℝ,ℝ) ∞ f) :
    SmoothTwoForm (torusAnnularDensity b f) :=
proof Β· 2 lines
  manifoldWedge_smooth (torusFirstForm_smooth (circleClockDensity_smooth hb hsmall))
    (torusHandleForm_smooth hf)
264
theorem torusAnnularDensity_turns (b : ℝ) (f : Circle β†’ ℝ) (z v w : Plane) :
    torusAnnularDensity b f (torusTurns z)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z v)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z w)=
      circleClockDensity b (circleTurn z.1)*f (circleTurn z.2)*(v.1*w.2-v.2*w.1) := by
proof Β· 25 lines
  have hform (x : HandleTorus) (u₁ uβ‚‚ : TorusModel) :
      torusAnnularDensity b f x u₁ uβ‚‚ =
        weightedCircleAngular (circleClockDensity b) x.1 u₁.1 *
          weightedCircleAngular f x.2 uβ‚‚.2 -
        weightedCircleAngular f x.2 u₁.2 *
          weightedCircleAngular (circleClockDensity b) x.1 uβ‚‚.1 := by
    simp only [torusAnnularDensity,manifoldWedge_apply,torusFirstForm_apply,
      torusHandleForm_apply]
  let A : Plane β†’L[ℝ] TorusModel :=
    mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z
  let D₁ : ℝ β†’L[ℝ] CircleModel :=
    mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn z.1
  let Dβ‚‚ : ℝ β†’L[ℝ] CircleModel :=
    mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn z.2
  have hA (u : Plane) : A u = (D₁ u.1,Dβ‚‚ u.2) := torusTurns_derivative z u
  have hD₁ (g : Circle β†’ ℝ) (u : ℝ) :
      weightedCircleAngular g (circleTurn z.1) (D₁ u) = g (circleTurn z.1)*u :=
    weightedCircleAngular_pullback g z.1 u
  have hDβ‚‚ (g : Circle β†’ ℝ) (u : ℝ) :
      weightedCircleAngular g (circleTurn z.2) (Dβ‚‚ u) = g (circleTurn z.2)*u :=
    weightedCircleAngular_pullback g z.2 u
  change torusAnnularDensity b f (torusTurns z) (A v) (A w) = _
  rw [hform,hA v,hA w]
  simp only [torusTurns,hD₁,hDβ‚‚]
  ring
295
theorem torusAnnularDensity_support {b : ℝ} (hb : 0<b) (f : Circle β†’ ℝ) :
    support (torusAnnularDensity b f) βŠ† (circleTurn '' Icc (-b) b) Γ—Λ’ tsupport f := by
proof Β· 22 lines
  intro z hz
  have hnonzero₁ : circleClockDensity b z.1β‰ 0 := by
    intro he
    apply hz
    apply ContinuousLinearMap.ext
    intro v
    apply ContinuousLinearMap.ext
    intro w
    change torusAnnularDensity b f z v w=0
    simp [torusAnnularDensity,torusFirstForm_apply,torusHandleForm_apply,
      weightedCircleAngular,he]
  have hnonzeroβ‚‚ : f z.2β‰ 0 := by
    intro he
    apply hz
    apply ContinuousLinearMap.ext
    intro v
    apply ContinuousLinearMap.ext
    intro w
    change torusAnnularDensity b f z v w=0
    simp [torusAnnularDensity,torusFirstForm_apply,torusHandleForm_apply,
      weightedCircleAngular,he]
  exact ⟨circleClockDensity_support hb hnonzero₁,subset_closure hnonzeroβ‚‚βŸ©
320
theorem torusAnnularDensity_tsupport {b : ℝ} (hb : 0<b) (f : Circle β†’ ℝ) :
    tsupport (torusAnnularDensity b f) βŠ† (circleTurn '' Icc (-b) b) Γ—Λ’ tsupport f :=
proof Β· 2 lines
  closure_minimal (torusAnnularDensity_support hb f)
    (circleBand_compact.isClosed.prod isClosed_closure)
325
theorem torusAnnularDensity_normalized {b : ℝ} (hb : 0<b) (hsmall : b<1/2)
    {f : Circle β†’ ℝ} (hpos : βˆ€ z,0≀f z)
    (hJ : (∫ t in (0:ℝ)..1,f (circleTurn t))=1) :
    (βˆ€ z : Plane,0≀torusAnnularDensity b f (torusTurns z)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z (1,0))
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns z (0,1))) ∧
    (∫ s in (-(1/2):ℝ)..(1/2), ∫ t in (0:ℝ)..1,
      torusAnnularDensity b f (torusTurns (s,t))
        (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns (s,t) (1,0))
        (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,TorusModel) torusTurns (s,t) (0,1)))=1 := by
proof Β· 6 lines
  simp only [torusAnnularDensity_turns,zero_mul,sub_zero,mul_one]
  constructor
  Β· intro z
    exact mul_nonneg (circleClockDensity_nonneg hb _) (hpos _)
  Β· simp_rw [intervalIntegral.integral_const_mul,hJ,mul_one]
    exact circleClockDensity_integral hb hsmall
346
def angularUnitVector (z : Circle) : CircleModel :=
body Β· 1 line
  mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn (shortCircleArgument z) 1
349
theorem angularUnitVector_value (z : Circle) : circleAngular z (angularUnitVector z)=1 := by
proof Β· 2 lines
  have h := circleAngular_unit_pullback (shortCircleArgument z) 1
  rwa [circleTurn_shortCircleArgument] at h
353
theorem circleAngular_injective (z : Circle) : Injective (circleAngular z) := by
proof Β· 15 lines
  let e : CircleModel := EuclideanSpace.single 0 1
  have he (v : CircleModel) : v=(v 0) β€’ e := by
    ext i
    fin_cases i
    simp [e]
  have hz : circleAngular z e≠0 := by
    intro hzero
    have hv := angularUnitVector_value z
    rw [he (angularUnitVector z),map_smul,hzero,smul_zero] at hv
    norm_num at hv
  intro v w hvw
  have hce : v 0 * circleAngular z e=w 0 * circleAngular z e := by
    rwa [he v,he w,map_smul,map_smul,smul_eq_mul,smul_eq_mul] at hvw
  have hcoords := mul_right_cancelβ‚€ hz hce
  rw [he v,he w,hcoords]
370
def torusAreaForm : ManifoldTwoForm TorusModel HandleTorus :=
body Β· 1 line
  manifoldWedge (torusFirstForm (fun _ => 1)) (torusHandleForm (fun _ => 1))
373
@[simp] theorem torusAreaForm_apply (z : HandleTorus) (v w : TorusModel) :
    torusAreaForm z v w=circleAngular z.1 v.1*circleAngular z.2 w.2-
      circleAngular z.2 v.2*circleAngular z.1 w.1 := by
proof Β· 1 line
  simp [torusAreaForm,manifoldWedge_apply,weightedCircleAngular]
378
theorem torusAreaForm_smooth : SmoothTwoForm torusAreaForm :=
proof Β· 2 lines
  manifoldWedge_smooth (torusFirstForm_smooth contMDiff_const)
    (torusHandleForm_smooth contMDiff_const)
382
theorem torusAreaForm_skew (z : HandleTorus) (v w : TorusModel) :
    torusAreaForm z v w= -torusAreaForm z w v :=
proof Β· 1 line
  manifoldWedge_skew _ _ z v w
386
theorem torusAreaForm_isInvertible (z : HandleTorus) : (torusAreaForm z).IsInvertible := by
proof Β· 20 lines
  let : ContinuousSMul ℝ TorusModel := IsBoundedSMul.continuousSMul
  have hBi : Injective (torusAreaForm z) := by
    apply (torusAreaForm z).toLinearMap.ker_eq_bot.mp
    apply LinearMap.ker_eq_bot'.mpr
    intro v hv
    have h₁ := congrArg (fun Ξ± : TorusModel β†’L[ℝ] ℝ => Ξ± (0,angularUnitVector z.2)) hv
    have hβ‚‚ := congrArg (fun Ξ± : TorusModel β†’L[ℝ] ℝ => Ξ± (angularUnitVector z.1,0)) hv
    change torusAreaForm z v (0,angularUnitVector z.2)=0 at h₁
    change torusAreaForm z v (angularUnitVector z.1,0)=0 at hβ‚‚
    simp only [torusAreaForm_apply,map_zero,mul_zero,mul_one,zero_sub,
      sub_zero,angularUnitVector_value] at h₁ hβ‚‚
    have h₁z : v.1=0 := circleAngular_injective z.1 (by simpa only [map_zero] using h₁)
    have hβ‚‚z : v.2=0 := circleAngular_injective z.2 (by simpa only [map_zero,neg_eq_zero] using hβ‚‚)
    exact Prod.ext h₁z hβ‚‚z
  have hd : Module.finrank ℝ TorusModel=Module.finrank ℝ (TorusModel β†’L[ℝ] ℝ) := by
    calc
      Module.finrank ℝ TorusModel=Module.finrank ℝ (TorusModel β†’β‚—[ℝ] ℝ) :=
        by simp
      _ = Module.finrank ℝ (TorusModel β†’L[ℝ] ℝ) := LinearMap.toContinuousLinearMap.finrank_eq
  exact ⟨((torusAreaForm z).toLinearMap.linearEquivOfInjective hBi hd).toContinuousLinearEquiv,rfl⟩
408
theorem torusAnnularDensity_eq_multiple (b : ℝ) (f : Circle β†’ ℝ) (z : HandleTorus) :
    torusAnnularDensity b f z=(circleClockDensity b z.1*f z.2) β€’ torusAreaForm z := by
proof Β· 7 lines
  apply ContinuousLinearMap.ext
  intro v
  apply ContinuousLinearMap.ext
  intro w
  simp only [torusAnnularDensity,manifoldWedge_apply,torusFirstForm_apply,
    torusHandleForm_apply,weightedCircleAngular,smul_apply,smul_eq_mul,torusAreaForm_apply]
  ring
427
def annularCylinderScalar (F : P Γ— Plane β†’ ℝ) (p : P) (z : HandleCylinder) : ℝ :=
body Β· 1 line
  annularScalarDescent F ((p,z.1),z.2)
430
theorem annularCylinderScalar_smoothAt {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) {F : P Γ— Plane β†’ ℝ}
    (hF : ContDiffOn ℝ ∞ F (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => F (p,(s,t))) 1)
    {p : P} (hp : p∈V) {z : HandleCylinder} (hz : z.1∈I) :
    ContMDiffAt π“˜(ℝ,CylinderModel) π“˜(ℝ,ℝ) ∞ (annularCylinderScalar F p) z := by
proof Β· 16 lines
  have hd := (annularScalarDescent_smoothOn hV hI hF hper).contMDiffAt
    (((hV.prod hI).prod isOpen_univ).mem_nhds (show ((p,z.1),z.2)∈_
      from ⟨⟨hp,hz⟩,mem_univ _⟩))
  have hi : ContMDiff π“˜(ℝ,CylinderModel) ((π“˜(ℝ,P Γ— ℝ)).prod π“˜(ℝ,CircleModel)) ∞
      (fun z : HandleCylinder => ((p,z.1),z.2)) := by
    rw [show π“˜(ℝ,CylinderModel) = (π“˜(ℝ,ℝ)).prod π“˜(ℝ,CircleModel) from
      modelWithCornersSelf_prod]
    have hfst : ContMDiff ((π“˜(ℝ,ℝ)).prod π“˜(ℝ,CircleModel)) π“˜(ℝ,ℝ) ∞
        (Prod.fst : HandleCylinder β†’ ℝ) := contMDiff_fst
    have hsnd : ContMDiff ((π“˜(ℝ,ℝ)).prod π“˜(ℝ,CircleModel)) π“˜(ℝ,CircleModel) ∞
        (Prod.snd : HandleCylinder β†’ Circle) := contMDiff_snd
    have hpair : ContMDiff ((π“˜(ℝ,ℝ)).prod π“˜(ℝ,CircleModel)) π“˜(ℝ,P Γ— ℝ) ∞
        (fun z : HandleCylinder => (p,z.1)) :=
      ((contDiff_const.prodMk contDiff_id : ContDiff ℝ ∞ (fun s : ℝ => (p,s))).contMDiff).comp hfst
    exact hpair.prodMk hsnd
  exact hd.comp z hi.contMDiffAt
455
def cylinderCurvaturePrimitive (a : ℝ) (ΞΊ : P Γ— Plane β†’ ℝ) (p : P) :
    ManifoldOneForm CylinderModel HandleCylinder :=
body Β· 1 line
  weightedCylinderAngular (annularCylinderScalar (annularRadialIntegral a ΞΊ) p)
459
theorem cylinderCurvaturePrimitive_smoothAt {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {z : HandleCylinder} (hz : z.1∈I) :
    ContDiffAt ℝ ∞ (chartOneForm (cylinderCurvaturePrimitive a ΞΊ p) z)
      (extChartAt π“˜(ℝ,CylinderModel) z z) :=
proof Β· 3 lines
  weightedCylinderAngular_smoothAt (annularCylinderScalar_smoothAt hV hI
    (annularRadialIntegral_smooth hV hI hc ha hΞΊ)
    (fun _ hp _ hs => annularRadialIntegral_periodic hc ha hper hp hs) hp hz)
471
theorem cylinderCurvaturePrimitive_cover {V : Set P} {I : Set ℝ}
    (hc : Convex ℝ I) {a : ℝ} (ha : a∈I) {ΞΊ : P Γ— Plane β†’ ℝ}
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {q : Plane} (hq : q.1∈I) (v : Plane) :
    cylinderCurvaturePrimitive a ΞΊ p (cylinderCover q)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q v)=
      annularRadialIntegral a ΞΊ (p,q)*v.2 := by
proof Β· 6 lines
  change annularCylinderScalar (annularRadialIntegral a ΞΊ) p (cylinderCover q)*
    cylinderAngular (cylinderCover q)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q v)=_
  rw [cylinderAngular_cover]
  change annularScalarDescent (annularRadialIntegral a ΞΊ) ((p,q.1),circleTurn q.2)*v.2=_
  rw [annularScalarDescent_turn (annularRadialIntegral_periodic hc ha hper hp hq)]
485
theorem cylinderCurvaturePrimitive_exterior_cover {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {q : Plane} (hq : q.1∈I) :
    (manifoldExteriorOneForm (cylinderCurvaturePrimitive a ΞΊ p) (cylinderCover q)).bilinearComp
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q)=ΞΊ (p,q) β€’ planarArea := by
proof Β· 20 lines
  have hn := euclidean_manifold_pullback_exterior_at cylinderCover_smooth.contMDiffAt
    (cylinderCurvaturePrimitive_smoothAt hV hI hc ha hΞΊ hper hp hq)
  have he : (fun y => euclideanPullbackOneForm (fun _ => cylinderCurvaturePrimitive a ΞΊ p)
      cylinderCover (0,y)) =αΆ [𝓝 q]
      (fun y => planarCovector 0 (annularRadialIntegral a ΞΊ (p,y))) := by
    filter_upwards [(hI.prod isOpen_univ).mem_nhds (show q∈I Γ—Λ’ univ from ⟨hq,mem_univ _⟩)] with y hy
    apply ContinuousLinearMap.ext
    intro v
    change cylinderCurvaturePrimitive a ΞΊ p (cylinderCover y)
      (mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover y v)=_
    rw [cylinderCurvaturePrimitive_cover hc ha hper hp hy.1]
    simp only [planarCovector_apply,zero_mul,zero_add]
  calc
    _ = euclideanExteriorOneForm (fun y => euclideanPullbackOneForm
        (fun _ => cylinderCurvaturePrimitive a ΞΊ p) cylinderCover (0,y)) q := hn.symm
    _ = euclideanExteriorOneForm
        (fun y => planarCovector 0 (annularRadialIntegral a ΞΊ (p,y))) q := by
      unfold euclideanExteriorOneForm
      rw [he.fderiv_eq]
    _ = _ := (annular_curvature_primitive hV hI hc ha hΞΊ hper).2 p hp q hq
521
theorem circleTurn_derivative_right_inverse (t : ℝ) (v : CircleModel) :
    mfderiv π“˜(ℝ,ℝ) π“˜(ℝ,CircleModel) circleTurn t (circleAngular (circleTurn t) v)=v :=
proof Β· 1 line
  circleAngular_injective (circleTurn t) (circleAngular_unit_pullback t _)
525
theorem cylinderCover_derivative_right_inverse (q : Plane) (v : CylinderModel) :
    mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q
      (v.1,circleAngular (circleTurn q.2) v.2)=v := by
proof Β· 2 lines
  rw [cylinderCover_derivative,circleTurn_derivative_right_inverse]
  rfl
531
def cylinderAreaForm : ManifoldTwoForm CylinderModel HandleCylinder :=
body Β· 1 line
  manifoldWedge (fun _ => ContinuousLinearMap.fst ℝ ℝ CircleModel) cylinderAngular
534
@[simp] theorem cylinderAreaForm_apply (z : HandleCylinder) (v w : CylinderModel) :
    cylinderAreaForm z v w=v.1*circleAngular z.2 w.2-circleAngular z.2 v.2*w.1 := by
proof Β· 2 lines
  simp only [cylinderAreaForm,manifoldWedge_apply,cylinderAngular_apply]
  rfl
541
theorem cylinderCurvaturePrimitive_exterior_covered {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {q : Plane} (hq : q.1∈I) :
    manifoldExteriorOneForm (cylinderCurvaturePrimitive a ΞΊ p) (cylinderCover q)=
      ΞΊ (p,q) β€’ cylinderAreaForm (cylinderCover q) := by
proof Β· 15 lines
  let L : Plane β†’L[ℝ] CylinderModel := mfderiv π“˜(ℝ,Plane) π“˜(ℝ,CylinderModel) cylinderCover q
  have he : (manifoldExteriorOneForm (cylinderCurvaturePrimitive a ΞΊ p) (cylinderCover q)).bilinearComp
      L L=ΞΊ (p,q) β€’ planarArea :=
    cylinderCurvaturePrimitive_exterior_cover hV hI hc ha hΞΊ hper hp hq
  have hL (v : CylinderModel) : L (v.1,circleAngular (circleTurn q.2) v.2)=v :=
    cylinderCover_derivative_right_inverse q v
  apply ContinuousLinearMap.ext
  intro v
  apply ContinuousLinearMap.ext
  intro w
  have hv := congrArg (fun Ξ© : Plane β†’L[ℝ] Plane β†’L[ℝ] ℝ =>
    Ξ© (v.1,circleAngular (circleTurn q.2) v.2) (w.1,circleAngular (circleTurn q.2) w.2)) he
  simp only [ContinuousLinearMap.bilinearComp_apply,smul_apply,smul_eq_mul] at hv
  rw [hL v,hL w] at hv
  simpa only [planarArea_apply,cylinderAreaForm_apply,smul_apply,smul_eq_mul,cylinderCover] using hv
564
theorem cylinderCurvaturePrimitive_exterior {V : Set P} {I : Set ℝ}
    (hV : IsOpen V) (hI : IsOpen I) (hc : Convex ℝ I) {a : ℝ} (ha : a∈I)
    {ΞΊ : P Γ— Plane β†’ ℝ} (hΞΊ : ContDiffOn ℝ ∞ ΞΊ (V Γ—Λ’ (I Γ—Λ’ univ)))
    (hper : βˆ€ p∈V,βˆ€ s∈I,Periodic (fun t => ΞΊ (p,(s,t))) 1)
    {p : P} (hp : p∈V) {z : HandleCylinder} (hz : z.1∈I) :
    manifoldExteriorOneForm (cylinderCurvaturePrimitive a ΞΊ p) z=
      annularCylinderScalar ΞΊ p z β€’ cylinderAreaForm z := by
proof Β· 9 lines
  let q : Plane := (z.1,shortCircleArgument z.2)
  have hq : cylinderCover q=z := by
    apply Prod.ext
    Β· rfl
    Β· exact circleTurn_shortCircleArgument z.2
  have hv : annularCylinderScalar ΞΊ p (cylinderCover q)=ΞΊ (p,q) :=
    annularScalarDescent_turn (hper p hp q.1 hz) q.2
  rw [← hq,hv]
  exact cylinderCurvaturePrimitive_exterior_covered hV hI hc ha hΞΊ hper hp hz

Xet Storage Details

Size:
28.9 kB
Β·
Xet hash:
2e93332e55b991c3e775b10719e4e4cd62e1ec2da095354b72fb9a41d3fb2173

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.