Buckets:
cfahlgren1/math / lean /OAI /Geometry /SurfaceImmersion /Primitive /CircularPrimitiveBoundaryStep.lean
| import OAI.Geometry.SurfaceImmersion.Primitive.GlobalCircularNormal | |
| import OAI.Geometry.SurfaceImmersion.Primitive.FiniteExteriorCrossings | |
| import OAI.Geometry.SurfaceImmersion.Geometry.GeometricNormalExtension | |
| import OAI.Geometry.SurfaceImmersion.Primitive.PhasePrimitiveBoundaryGauss | |
| import OAI.Geometry.SurfaceImmersion.Geometry.CompactSlopeNormal | |
| import OAI.Geometry.SurfaceImmersion.Atlas.PhaseGaussRepresentative | |
| import OAI.Geometry.SurfaceImmersion.Primitive.AnalyticCurveCrossingLoop | |
| import OAI.Geometry.SurfaceImmersion.Atlas.PhaseMetricPositive | |
| import OAI.Geometry.SurfaceImmersion.Primitive.ExactCircularPrimitive | |
| import OAI.Geometry.SurfaceImmersion.Atlas.PhaseMetricRegularity | |
| import OAI.Geometry.SurfaceImmersion.Atlas.PhaseMetricRead | |
| import OAI.Geometry.SurfaceImmersion.Primitive.PhaseCircularPeriod | |
| import OAI.Geometry.SurfaceImmersion.Primitive.ExactPhaseOriginalProfiles | |
| import OAI.Geometry.SurfaceImmersion.Primitive.PhaseLeadingProfileStability | |
| import OAI.Geometry.SurfaceImmersion.Primitive.PrimitiveProfileStability | |
| import OAI.Geometry.SurfaceImmersion.Geometry.ExactGeometricFastFamily | |
| import OAI.Geometry.SurfaceImmersion.Primitive.PrimitiveMetric | |
| import OAI.Geometry.SurfaceImmersion.Atlas.AtlasMetricJetMargins | |
| namespace OAI | |
| /-! Actual finite-accuracy primitive immersions with a Riemannian target, | |
| uniform first-jet bounds, and a uniform nonzero second-form margin. -/ | |
| noncomputable section | |
| open Set Manifold Bundle | |
| open scoped ContDiff Manifold Topology | |
| namespace ClosedSurfaceR4.FiniteOrderSmoothing | |
| open JetPolynomial JetPolynomial.Perturbation RealModes CovarianceCorrector GeometryPreservation | |
| local instance boundaryCircularPrimitiveFiberNormed : NormedAddCommGroup TensorFiber := inferInstance | |
| local instance boundaryCircularPrimitiveFiberSpace : NormedSpace ℝ TensorFiber := inferInstance | |
| variable {M : Type*} [TopologicalSpace M] [ChartedSpace Plane M] | |
| [IsManifold planeModel ∞ M] [CompactSpace M] | |
| local instance boundaryCircularPrimitiveDualAdd : ∀ p : M, ContinuousAdd (TangentSpace planeModel p →L[ℝ] ℝ) := | |
| fun _ => inferInstanceAs (ContinuousAdd (Plane →L[ℝ] ℝ)) | |
| local instance boundaryCircularPrimitiveDualSmul : ∀ p : M, ContinuousSMul ℝ (TangentSpace planeModel p →L[ℝ] ℝ) := | |
| fun _ => inferInstanceAs (ContinuousSMul ℝ (Plane →L[ℝ] ℝ)) | |
| local instance boundaryCircularPrimitiveSectionNormed (p : M) : NormedAddCommGroup (CovariantTwoTensor p) := | |
| inferInstanceAs (NormedAddCommGroup TensorFiber) | |
| local instance boundaryCircularPrimitiveSectionSpace (p : M) : NormedSpace ℝ (CovariantTwoTensor p) := | |
| inferInstanceAs (NormedSpace ℝ TensorFiber) | |
| namespace MetricGoodPhaseData | |
| open SurfaceJetCoordinates SurfaceVelocityFamily VelocityFrame | |
| variable {g : SmoothMetric M} {F : M → Space} | |
| theorem circular_primitive_boundary_step [T2Space M] (data : MetricGoodPhaseData g F) | |
| (hF : ContMDiff planeModel spaceModel ∞ F) (hmetric : g.inner = inducedTensor F) | |
| (i : data.A.centers) | |
| (e : OpenPartialHomeomorph JetPolynomial.Base JetPolynomial.Base) | |
| (he : ContDiff ℝ ∞ e) (hi : ContDiff ℝ ∞ e.symm) | |
| {χ : JetPolynomial.Base → ℝ} (hχ : ContDiff ℝ ∞ χ) | |
| (hχc : HasCompactSupport χ) (hχs : tsupport χ ⊆ e.source) | |
| (hcover : (data.A.chartWeightCompact i : Set JetPolynomial.Base) ⊆ e.source) | |
| {a : SmallModes.Base → ℝ} (ha : ContDiff ℝ ∞ a) | |
| {n : SmallModes.Base → NormalFrame.Vec} {T U : Set SmallModes.Base} | |
| (hT : IsCompact T) (hU : IsOpen U) (hTU : T ⊆ U) | |
| (hn : ContDiffOn ℝ ∞ n U) | |
| (hI : ∀ p ∈ U, Function.Injective (fderiv ℝ (data.A.phaseRealChartMap i e.symm F) p)) | |
| (hN : ∀ p ∈ U, SmallModes.coordDeriv SmallModes.dx (data.A.phaseRealChartMap i e.symm F) p ⬝ᵥ n p = 0 ∧ | |
| SmallModes.coordDeriv SmallModes.dy (data.A.phaseRealChartMap i e.symm F) p ⬝ᵥ n p = 0 ∧ n p ⬝ᵥ n p = 1) | |
| (hHess : ∀ p ∈ U, 0 < PhaseGeometry.coordinateMetricHessian | |
| (RealModes.inducedCoordinateMetric (data.A.phaseRealChartMap i e.symm F)) Prod.fst p SmallModes.dy SmallModes.dy) | |
| (ha0 : ∀ p, 0 ≤ a p) | |
| (hboundary : ∀ p ∈ T, a p = 0 → | |
| realSecondForm (data.A.phaseRealChartMap i e.symm F) SmallModes.dy SmallModes.dy p ≠ 0 ∧ | |
| normalize (realSecondForm (data.A.phaseRealChartMap i e.symm F) SmallModes.dy SmallModes.dy p) ≠ -n p) | |
| {ι : Type*} [Finite ι] {Curves : ι → Set SmallModes.Base} | |
| (hCurves : ∀ j, IsCompact (Curves j)) (hCurvesT : ∀ j, Curves j ⊆ T) | |
| {P : Set SmallModes.Base} (hP : P.Finite) | |
| (hlocal : ∀ p ∈ (⋃ j, Curves j) \ P, ∃ N : Set SmallModes.Base, IsOpen N ∧ p ∈ N ∧ | |
| ∃ f : SmallModes.Base → ℝ, ContDiffOn ℝ ∞ f N ∧ | |
| (∀ x ∈ (⋃ j, Curves j) ∩ N, f x = 0) ∧ fderiv ℝ f p (0,1) ≠ 0) | |
| {E : Set SmallModes.Base} (hE : E.Finite) (hET : E ⊆ T) (haE : ∀ x ∈ E, 0 < a x) | |
| (slopeBound : ℝ) (hSlope : 0 ≤ slopeBound) | |
| {b c : ι → SmallModes.Base → ℝ} | |
| (hb : ∀ j, ContDiff ℝ ∞ (b j)) (hc : ∀ j, ContDiff ℝ ∞ (c j)) | |
| (hbc : ∀ j, ∀ x ∈ Curves j, b j x ≠ 0 ∨ c j x ≠ 0) | |
| (S : TopologicalSpace.Opens JetPolynomial.Base) | |
| (hSc : IsCompact (closure (S : Set JetPolynomial.Base))) (hTS : MapsTo e e.source S) | |
| (hST : baseEquiv '' closure (S : Set JetPolynomial.Base) ⊆ T) | |
| (K : Set JetPolynomial.Base) (hK : IsCompact K) (hKS : K ⊆ S) | |
| (hKA : e.symm '' K ⊆ (data.A.chartWeightCompact i : Set JetPolynomial.Base)) | |
| (hone : ∀ x ∈ e.symm '' K, χ x = 1) | |
| (haoff : ∀ p ∉ K, a (baseEquiv p) = 0) | |
| (ℓ : JetPolynomial.Base →L[ℝ] ℝ) | |
| (hℓx : ℓ (coordinateVector 0) = 1) (hℓy : ℓ (coordinateVector 1) = 0) | |
| (h : SmoothMetric M) | |
| (htarget : h.inner = g.inner + data.A.bundleRestore data.A.tensorTriv i | |
| (fun y => fiberFromThree (localizedTensorPullback e χ (fun q => ![(a (baseEquiv q))^2,0,0]) y))) | |
| {C : Set JetPolynomial.Base} (hC : IsCompact C) | |
| (hCS : C ⊆ (S : Set JetPolynomial.Base) ∩ e.target) | |
| (hCurveC : ∀ j x, x ∈ Curves j → baseEquiv.symm x ∈ C) | |
| (hactiveC : ∀ p ∈ C, data.A.chartWeight i (e.symm p) ≠ 0) | |
| (hEC : ∀ x ∈ E, baseEquiv.symm x ∈ C) | |
| (hold : ∀ j, ∀ x ∈ Curves j, a x = 0 → | |
| let H := data.A.phaseRealChartMap i e.symm F | |
| let κ := coordinateGaussianCurvature (realMetric H SmallModes.dx SmallModes.dx) | |
| (realMetric H SmallModes.dx SmallModes.dy) (realMetric H SmallModes.dy SmallModes.dy) x | |
| 0 < orderedCrossing H SmallModes.dy (b j x,c j x) x κ) | |
| {σ : Type*} [Fintype σ] [DecidableEq σ] | |
| (left right : σ → ι) (x : σ → SmallModes.Base) (hxinj : Function.Injective x) | |
| (hxE : ∀ j, x j ∈ E) | |
| {V : Set SmallModes.Base} (hV : IsOpen V) (hxV : ∀ j, x j ∈ V) | |
| (honly : ∀ j k, x j ∈ Curves k → k = left j ∨ k = right j) | |
| (hfirst : ∀ j, b (left j) (x j) ≠ 0 ∧ b (right j) (x j) ≠ 0) | |
| (hslopes : ∀ j, |c (left j) (x j)/b (left j) (x j)| ≤ slopeBound ∧ | |
| |c (right j) (x j)/b (right j) (x j)| ≤ slopeBound) (B : SmoothingAtlas M) (curves : ι → PhaseBoundaryCurve B) | |
| (n₀ : PreferredNormal F) | |
| (hglobal : ∀ j p, p ∈ (curves j).carrier → (curves j).second F p ≠ 0 ∧ | |
| spaceCoordinates (n₀.vector p) ≠ -normalize ((curves j).second F p)) | |
| {D : Set M} (hD : IsOpen D) (hDr : interior (closure D) = D) | |
| (hDs : closure D ⊆ (chart (i : M)).source) | |
| (hDe : MapsTo (chart (i : M)) (closure D) e.source) | |
| (hDw : ∀ p ∈ closure D, data.A.weight i p ≠ 0) | |
| (E₀ : Set M) (hE₀ : E₀.Finite) (hE₀f : Disjoint E₀ (frontier D)) | |
| (hsupport : data.A.phaseSurfaceSupport i e K = closure D) | |
| (hDC : ∀ p ∈ closure D, e (chart (i : M) p) ∈ C) | |
| (hcurveChart : ∀ j p, p ∈ (curves j).carrier → p ∈ closure D → | |
| baseEquiv (e (chart (i : M) p)) ∈ Curves j) | |
| (hvector : ∀ j p, p ∈ (curves j).carrier → p ∈ closure D → | |
| (b j (baseEquiv (e (chart (i : M) p))),c j (baseEquiv (e (chart (i : M) p)))) = | |
| fderiv ℝ (surfacePhaseTransition ((curves j).index : M) (curves j).phase (i : M) e) | |
| ((curves j).coordinate p) SmallModes.dy) | |
| (hworldBoundary : ∀ p ∈ frontier D, | |
| realSecondForm (data.A.phaseRealChartMap i e.symm F) SmallModes.dy SmallModes.dy | |
| (baseEquiv (e (chart (i : M) p))) ≠ 0 ∧ | |
| spaceCoordinates (n₀.vector p) ≠ -normalize (realSecondForm (data.A.phaseRealChartMap i e.symm F) | |
| SmallModes.dy SmallModes.dy (baseEquiv (e (chart (i : M) p))))) | |
| (haFrontier : ∀ p ∈ frontier D, a (baseEquiv (e (chart (i : M) p))) = 0) | |
| (hpositive : ∀ j p, p ∈ (curves j).carrier → p ∈ frontier D → | |
| 0 < (curves j).second F p ⬝ᵥ spaceCoordinates (n₀.vector p)) | |
| (hVfrontier : ∀ p ∈ frontier D, baseEquiv (e (chart (i : M) p)) ∉ V) | |
| (hσD : ∀ j, (surfacePhaseChart (i : M) e).symm (x j) ∈ E₀ ∩ D) (hinsideCover : ∀ p ∈ E₀, p ∈ D → ∃ s, (surfacePhaseChart (i : M) e).symm (x s) = p) | |
| (hglobalCross : ∀ j k, j ≠ k → ∀ p ∈ E₀, | |
| p ∈ (curves j).carrier → p ∈ (curves k).carrier → | |
| (0 < (curves j).second F p ⬝ᵥ spaceCoordinates (n₀.vector p) ∧ | |
| 0 < (curves k).second F p ⬝ᵥ spaceCoordinates (n₀.vector p)) ∧ | |
| 0 < (curves j).crossing (curves k) F p ∧ 0 < (curves k).crossing (curves j) F p) : | |
| ∃ W : M → Space, IsSmoothIsometricImmersion M h W ∧ Nonempty (MetricGoodPhaseData h W) ∧ | |
| ∃ N : PreferredNormal W, | |
| (∀ j p, p ∈ (curves j).carrier → (curves j).second W p ≠ 0 ∧ | |
| spaceCoordinates (N.vector p) ≠ -normalize ((curves j).second W p)) ∧ | |
| ∀ j k, j ≠ k → ∀ p ∈ E₀, p ∈ (curves j).carrier → p ∈ (curves k).carrier → | |
| (0 < (curves j).second W p ⬝ᵥ spaceCoordinates (N.vector p) ∧ | |
| 0 < (curves k).second W p ⬝ᵥ spaceCoordinates (N.vector p)) ∧ | |
| 0 < (curves j).crossing (curves k) W p ∧ 0 < (curves k).crossing (curves j) W p := by | |
| classical | |
| have : Fintype ι := Fintype.ofFinite ι | |
| have hFiso : IsSmoothIsometricImmersion M g F := ⟨hF,fun p v w => by rw [hmetric]; rfl⟩ | |
| obtain ⟨ρ,hρ,houtside⟩ := data.A.finite_exterior_crossing_preservation B hFiso n₀ | |
| data.outer_locally_one curves hDr hE₀ hglobalCross | |
| have hsmall : 0 < ρ/4 := by positivity | |
| obtain ⟨z,hz,hzρ,hz1,W,hW,hdata,N,hNav,hNout,hNcross,G,hG,hGF,V₀,hV₀,hWV,hVouter,hVsupport⟩ := | |
| data.global_circular_primitive_normal hF hmetric i e he hi hχ hχc hχs hcover | |
| ha hT hU hTU hn hI hN hHess ha0 hboundary hCurves hCurvesT hP hlocal | |
| hE hET haE slopeBound hSlope hb hc hbc S hSc hTS hST K hK hKS hKA hone haoff | |
| ℓ hℓx hℓy h htarget hC hCS hCurveC hactiveC hEC hold left right x hxinj hxE | |
| hV hxV honly hfirst hslopes B curves n₀ hglobal hD hDr hDs hDe hDw E₀ hE₀ hE₀f | |
| hsupport hDC hcurveChart hvector hworldBoundary haFrontier hpositive hVfrontier hσD | |
| (ρ/4) hsmall (ρ/4) hsmall | |
| have hz8 : z^8 ≤ z := calc | |
| z^8 = z*z^7 := by ring | |
| _ ≤ z*1 := mul_le_mul_of_nonneg_left (pow_le_one₀ hz.le hz1) hz.le | |
| _ = z := mul_one _ | |
| have hsum : ρ/4+z^8 < ρ := by linarith | |
| have hout := houtside G V₀ W hG hV₀ h hW (ρ/4) (z^8) hsmall.le (pow_nonneg hz.le _) | |
| hsum (fun j => (hGF j).mono_order (by decide)) hWV | |
| (fun p hp => hVsupport p (by rwa [hsupport])) N hNout | |
| have hsource (p : M) (hp : p ∈ D) : p ∈ (surfacePhaseChart (i : M) e).source := | |
| ⟨hDs (subset_closure hp),hDe (subset_closure hp)⟩ | |
| have hsecond (j : ι) (p : M) (hp : p ∈ (curves j).carrier) (hpD : p ∈ D) : | |
| (curves j).second W p = realSecondForm (data.A.phaseRealChartMap i e.symm W) | |
| (b j (baseEquiv (e (chart (i : M) p))),c j (baseEquiv (e (chart (i : M) p)))) | |
| (b j (baseEquiv (e (chart (i : M) p))),c j (baseEquiv (e (chart (i : M) p)))) | |
| (baseEquiv (e (chart (i : M) p))) := by | |
| rw [(curves j).second_transition data.A i e he hi hW hp (hsource p hpD) | |
| (hDw p (subset_closure hpD)),← hvector j p hp (subset_closure hpD)] | |
| have hcrossing (j k : ι) (p : M) (hpj : p ∈ (curves j).carrier) | |
| (hpk : p ∈ (curves k).carrier) (hpD : p ∈ D) := | |
| (curves j).crossing_transition (curves k) data.A i e he hi hW hpj hpk (hsource p hpD) | |
| (hDw p (subset_closure hpD)) | |
| refine ⟨W,hW,hdata,N,hNav,?_⟩ | |
| intro j k hjk p hpE hpj hpk | |
| by_cases hpD : p ∈ D | |
| · obtain ⟨s,hsp⟩ := hinsideCover p hpE hpD | |
| have hxT : x s ∈ (surfacePhaseChart (i : M) e).target := by | |
| constructor | |
| · change baseEquiv.symm (x s) ∈ e.target | |
| exact (hCS (hEC _ (hxE s))).2 | |
| · change e.symm (baseEquiv.symm (x s)) ∈ (chart (i : M)).target | |
| have hh := hactiveC _ (hEC _ (hxE s)) | |
| by_contra hn | |
| simp only [SmoothingAtlas.chartWeight,indicator_of_notMem hn] at hh | |
| exact hh rfl | |
| have hxp : baseEquiv (e (chart (i : M) p)) = x s := by | |
| rw [← hsp] | |
| exact (surfacePhaseChart (i : M) e).right_inv hxT | |
| have hj : j = left s ∨ j = right s := by | |
| apply honly s j | |
| rw [← hxp] | |
| exact hcurveChart j p hpj (subset_closure hpD) | |
| have hk : k = left s ∨ k = right s := by | |
| apply honly s k | |
| rw [← hxp] | |
| exact hcurveChart k p hpk (subset_closure hpD) | |
| have hjk' := hcrossing j k p hpj hpk hpD | |
| have hkj' := hcrossing k j p hpk hpj hpD | |
| dsimp only at hjk' hkj' | |
| rw [← hvector j p hpj (subset_closure hpD),← hvector k p hpk (subset_closure hpD)] at hjk' | |
| rw [← hvector k p hpk (subset_closure hpD),← hvector j p hpj (subset_closure hpD)] at hkj' | |
| rw [hsecond j p hpj hpD,hsecond k p hpk hpD,hjk',hkj',hxp] | |
| have hs := hNcross s | |
| dsimp only at hs | |
| rw [hsp] at hs | |
| rcases hj with hj | hj <;> rcases hk with hk | hk | |
| · exact (hjk (hj.trans hk.symm)).elim | |
| · subst j; subst k | |
| exact ⟨⟨hs.2.2.1,hs.2.2.2⟩,hs.1,hs.2.1⟩ | |
| · subst j; subst k | |
| exact ⟨⟨hs.2.2.2,hs.2.2.1⟩,hs.2.1,hs.1⟩ | |
| · exact (hjk (hj.trans hk.symm)).elim | |
| · exact hout j k hjk p hpE hpD hpj hpk | |
| end MetricGoodPhaseData | |
| end ClosedSurfaceR4.FiniteOrderSmoothing | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 14.2 kB
- Xet hash:
- 68128d3555e210c2cd44432f00052bcc17a1276181823f08926dcdd6d745a108
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.