/- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/DeTurckJetCoordinatesNative.lean` at f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See `references/ricci-flow/mapher/local-theory/port.json`. -/ import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Jets.DeTurckCompatibleJet import Mathlib.MeasureTheory.Function.Holder import Mathlib.MeasureTheory.Function.LpSpace.ContinuousFunctions /-! # Native coordinates for the finite DeTurck derivative tuples The chart fields are smooth linear combinations of the fixed native fields. Iterating this identity gives an actual finite differential expression, including every derivative of its fixed coefficients. -/ set_option autoImplicit false set_option maxHeartbeats 1200000 set_option backward.isDefEq.respectTransparency false noncomputable section open scoped Manifold ContDiff Bundle namespace PoincareMT.DeTurckJetCoordinatesNative open TensorProbeNative DeTurckCompatibleJetNative DeTurckNative DeTurckInverseCompositionNative variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {iota jota : Type*} [Fintype iota] def scaleTerms (c : M β†’ ℝ) (hc : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ c) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : List (DirectionalTerm (n := n) (M := M) (iota := iota)) := terms.map (fun t => { coefficient := fun x => c x * t.coefficient x smooth := by exact hc.mul (g := t.coefficient) t.smooth word := t.word }) theorem directionalTerms_scale (F : iota β†’ SmoothField (n := n) (M := M)) (c : M β†’ ℝ) (hc : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ c) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) (f : M β†’ ℝ) (x : M) : directionalTerms F (scaleTerms c hc terms) f x = c x * directionalTerms F terms f x := by induction terms with | nil => simp [scaleTerms] | cons t terms ih => change (c x * t.coefficient x) * directionalWord F t.word f x + directionalTerms F (scaleTerms c hc terms) f x = c x * (t.coefficient x * directionalWord F t.word f x + directionalTerms F terms f x) rw [ih] ring theorem directionalTerms_flatMap {Ξ± : Type*} (F : iota β†’ SmoothField (n := n) (M := M)) (l : List Ξ±) (terms : Ξ± β†’ List (DirectionalTerm (n := n) (M := M) (iota := iota))) (f : M β†’ ℝ) (x : M) : directionalTerms F (l.flatMap terms) f x = (l.map (fun a => directionalTerms F (terms a) f x)).sum := by induction l with | nil => rfl | cons a l ih => rw [List.flatMap_cons, directionalTerms_append, ih] rfl variable (F : iota β†’ SmoothField (n := n) (M := M)) (coefficient : jota β†’ iota β†’ M β†’ ℝ) (hcoefficient : βˆ€ a i, ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ (coefficient a i)) def expandedDerivative (a : jota) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) : List (DirectionalTerm (n := n) (M := M) (iota := iota)) := Finset.univ.toList.flatMap (fun i => scaleTerms (coefficient a i) (hcoefficient a i) (differentiateDirectionalTerms F i terms)) theorem expandedDerivative_order (a : jota) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) {k : β„•} (h : βˆ€ t ∈ terms, t.word.length ≀ k) : βˆ€ t ∈ expandedDerivative F coefficient hcoefficient a terms, t.word.length ≀ k + 1 := by intro t ht obtain ⟨i, _, ht⟩ := List.mem_flatMap.mp ht dsimp only [scaleTerms] at ht obtain ⟨s, hs, rfl⟩ := List.mem_map.mp ht exact differentiateDirectionalTerms_order F i terms h s hs theorem expandedDerivative_eq (V : jota β†’ SmoothField (n := n) (M := M)) (hV : βˆ€ a x, V a x = βˆ‘ i, coefficient a i x β€’ F i x) (a : jota) (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) {f : M β†’ ℝ} (hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f) (x : M) : directionalTerms F (expandedDerivative F coefficient hcoefficient a terms) f x = scalarDirectional (V a) (directionalTerms F terms f) x := by simp only [expandedDerivative, directionalTerms_flatMap, directionalTerms_scale, directionalTerms_differentiate F _ _ hf, Finset.sum_map_toList] change (βˆ‘ i, coefficient a i x * scalarDirectional (F i) (directionalTerms F terms f) x) = mfderiv (𝓑 n) π“˜(ℝ, ℝ) (directionalTerms F terms f) x (V a x) rw [hV a x, map_sum] simp only [map_smul, scalarDirectional] rfl def wordTerms : List jota β†’ List (DirectionalTerm (n := n) (M := M) (iota := iota)) | [] => [⟨fun _ => 1, contMDiff_const, []⟩] | a :: w => expandedDerivative F coefficient hcoefficient a (wordTerms w) theorem wordTerms_order (w : List jota) : βˆ€ t ∈ wordTerms F coefficient hcoefficient w, t.word.length ≀ w.length := by induction w with | nil => intro t ht have ht' : t = ⟨fun _ => 1, contMDiff_const, []⟩ := List.mem_singleton.mp ht subst t exact le_rfl | cons a w ih => exact expandedDerivative_order F coefficient hcoefficient a _ ih theorem wordTerms_eq (V : jota β†’ SmoothField (n := n) (M := M)) (hV : βˆ€ a x, V a x = βˆ‘ i, coefficient a i x β€’ F i x) (w : List jota) {f : M β†’ ℝ} (hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f) (x : M) : directionalTerms F (wordTerms F coefficient hcoefficient w) f x = directionalWord V w f x := by induction w generalizing x with | nil => simp [wordTerms] | cons a w ih => rw [wordTerms, expandedDerivative_eq F coefficient hcoefficient V hV _ _ hf] exact congrArg (fun g : M β†’ ℝ => scalarDirectional (V a) g x) (funext ih) section Compatible variable [T2Space M] [CompactSpace M] {p : M} {K : Set M} (C : Cutoffs (n := n) p K) def combinedFields : Fin n βŠ• iota β†’ SmoothField (n := n) (M := M) := Sum.elim C.field F def combinedCoefficient (g0 : RiemannianMetric n M) : (Fin n βŠ• iota) β†’ iota β†’ M β†’ ℝ := by classical exact Sum.elim (C.fieldCoefficient g0 F) (fun a i _ => if a = i then 1 else 0) theorem combinedCoefficient_contMDiff (g0 : RiemannianMetric n M) (a : Fin n βŠ• iota) (i : iota) : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ (combinedCoefficient F C g0 a i) := by cases a with | inl a => exact C.fieldCoefficient_contMDiff g0 F a i | inr a => exact contMDiff_const theorem combinedFields_eq_sum (g0 : RiemannianMetric n M) (hF : βˆ€ (x : M) (v : TangentSpace (𝓑 n) x), (βˆ‘ i, g0.inner x (F i x) v β€’ F i x) = v) (a : Fin n βŠ• iota) (x : M) : combinedFields F C a x = βˆ‘ i, combinedCoefficient F C g0 a i x β€’ F i x := by classical cases a with | inl a => exact C.field_eq_sum g0 F hF a x | inr a => simp [combinedFields, combinedCoefficient] def combinedWordTerms (g0 : RiemannianMetric n M) (w : List (Fin n βŠ• iota)) : List (DirectionalTerm (n := n) (M := M) (iota := iota)) := wordTerms F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) w theorem combinedWordTerms_order (g0 : RiemannianMetric n M) (w : List (Fin n βŠ• iota)) : βˆ€ t ∈ combinedWordTerms F C g0 w, t.word.length ≀ w.length := wordTerms_order F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) w theorem combinedWordTerms_eq (g0 : RiemannianMetric n M) (hF : βˆ€ (x : M) (v : TangentSpace (𝓑 n) x), (βˆ‘ i, g0.inner x (F i x) v β€’ F i x) = v) (w : List (Fin n βŠ• iota)) {f : M β†’ ℝ} (hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f) (x : M) : directionalTerms F (combinedWordTerms F C g0 w) f x = directionalWord (combinedFields F C) w f x := wordTerms_eq F (combinedCoefficient F C g0) (combinedCoefficient_contMDiff F C g0) (combinedFields F C) (combinedFields_eq_sum F C g0 hF) w hf x theorem matrix_word_eq_native (g0 g : RiemannianMetric n M) (hF : βˆ€ (x : M) (v : TangentSpace (𝓑 n) x), (βˆ‘ i, g0.inner x (F i x) v β€’ F i x) = v) (w : List (Fin n βŠ• iota)) (i j : Fin n) (x : M) : directionalWord (combinedFields F C) w (fun y => C.matrix g y i j) x = directionalTerms F (combinedWordTerms F C g0 w) (fun y => C.matrix g y i j) x := (combinedWordTerms_eq F C g0 hF w (C.matrix_entry_contMDiff g i j) x).symm end Compatible section ChartOutput variable [T2Space M] [CompactSpace M] {p : M} {K : Set M} (C : Cutoffs (n := n) p K) /-- Fixed, globally smooth chart coordinates for a native field on the localization set. -/ def dualCoefficient (g0 : RiemannianMetric n M) (V : SmoothField (n := n) (M := M)) (i : Fin n) (x : M) : ℝ := βˆ‘ k, (C.matrix g0 x)⁻¹ i k * g0.inner x (C.field k x) (V x) theorem dualCoefficient_contMDiff (g0 : RiemannianMetric n M) (V : SmoothField (n := n) (M := M)) (i : Fin n) : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ (dualCoefficient C g0 V i) := by apply contMDiff_finsetSum intro k _ exact (inverse_entry_contMDiff (C.matrix g0) (C.matrix_contMDiff g0) (fun x => ((C.matrix g0 x).isUnit_iff_isUnit_det.mp (C.matrix_posDef g0 x).isUnit).ne_zero) i k).mul (contMDiff_pairing (metricTensor g0) (C.field k) V) theorem dualCoefficient_eq_repr (g0 : RiemannianMetric n M) (V : SmoothField (n := n) (M := M)) {x : M} (hx : x ∈ K) (i : Fin n) : dualCoefficient C g0 V i x = (chartFrameBasis p x (C.eta_support (C.mem_eta_support hx))).repr (V x) i := by let b := chartFrameBasis p x (C.eta_support (C.mem_eta_support hx)) have hfield (k : Fin n) : C.field k x = b k := by rw [(C.field_eventuallyEq (C.zeta_one x (C.mem_eta_support hx)) k).eq_of_nhds] exact chartFrame_eq_basis p x _ k have hmatrix (k j : Fin n) : C.matrix g0 x k j = g0.inner x (b k) (b j) := by rw [(C.matrix_eventuallyEq g0 (C.eta_one x hx)).eq_of_nhds] change g0.inner x (chartFrame p k x) (chartFrame p j x) = _ rw [chartFrame_eq_basis p x _ k, chartFrame_eq_basis p x _ j] have hpair : (fun k => g0.inner x (C.field k x) (V x)) = (C.matrix g0 x).mulVec (fun j => b.repr (V x) j) := by funext k change g0.inner x (C.field k x) (V x) = βˆ‘ j, C.matrix g0 x k j * b.repr (V x) j calc _ = g0.inner x (b k) (βˆ‘ j, b.repr (V x) j β€’ b j) := by rw [b.sum_repr, hfield] _ = _ := by simp only [map_sum, map_smul, smul_eq_mul, hmatrix] apply Finset.sum_congr rfl intro j _ exact mul_comm _ _ have hinv := (C.matrix g0 x).nonsing_inv_mul ((C.matrix g0 x).isUnit_iff_isUnit_det.mp (C.matrix_posDef g0 x).isUnit) change ((C.matrix g0 x)⁻¹.mulVec (fun k => g0.inner x (C.field k x) (V x))) i = _ rw [hpair, Matrix.mulVec_mulVec, hinv, Matrix.one_mulVec] theorem sum_dualCoefficient_field (g0 : RiemannianMetric n M) (V : SmoothField (n := n) (M := M)) {x : M} (hx : x ∈ K) : (βˆ‘ i, dualCoefficient C g0 V i x β€’ C.field i x) = V x := by let b := chartFrameBasis p x (C.eta_support (C.mem_eta_support hx)) calc _ = βˆ‘ i, b.repr (V x) i β€’ b i := by apply Finset.sum_congr rfl intro i _ rw [dualCoefficient_eq_repr C g0 V hx i, (C.field_eventuallyEq (C.zeta_one x (C.mem_eta_support hx)) i).eq_of_nhds, chartFrame_eq_basis p x _ i] _ = _ := b.sum_repr (V x) def outputCoefficient (g0 : RiemannianMetric n M) (chi : M β†’ ℝ) (V W : SmoothField (n := n) (M := M)) (i j : Fin n) (x : M) : ℝ := chi x * dualCoefficient C g0 V i x * dualCoefficient C g0 W j x theorem outputCoefficient_contMDiff (g0 : RiemannianMetric n M) {chi : M β†’ ℝ} (hchi : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ chi) (V W : SmoothField (n := n) (M := M)) (i j : Fin n) : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ (outputCoefficient C g0 chi V W i j) := (hchi.mul (dualCoefficient_contMDiff C g0 V i)).mul (dualCoefficient_contMDiff C g0 W j) /-- A supported chart contribution reconstructs the actual native bilinear evaluation. -/ theorem weighted_bilinear_eq (g0 : RiemannianMetric n M) (chi : M β†’ ℝ) (hchi : Function.support chi βŠ† K) (V W : SmoothField (n := n) (M := M)) (B : (x : M) β†’ TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x β†’L[ℝ] ℝ) (x : M) : chi x * B x (V x) (W x) = βˆ‘ i, βˆ‘ j, outputCoefficient C g0 chi V W i j x * B x (C.field i x) (C.field j x) := by by_cases hx : x ∈ K Β· conv_lhs => arg 2 rw [← sum_dualCoefficient_field C g0 V hx, ← sum_dualCoefficient_field C g0 W hx] simp only [map_sum, map_smul, ContinuousLinearMap.sum_apply, ContinuousLinearMap.smul_apply, smul_eq_mul, Finset.mul_sum, outputCoefficient] rw [Finset.sum_comm] apply Finset.sum_congr rfl intro i _ apply Finset.sum_congr rfl intro j _ ring Β· have hz : chi x = 0 := by by_contra h exact hx (hchi h) simp only [hz, outputCoefficient, zero_mul, Finset.sum_const_zero] theorem weighted_source_eq (g0 : RiemannianMetric n M) (chi : M β†’ ℝ) (hchi : Function.support chi βŠ† K) (V W : SmoothField (n := n) (M := M)) (B : (x : M) β†’ TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x β†’L[ℝ] ℝ) (S : M β†’ Matrix (Fin n) (Fin n) ℝ) (hS : βˆ€ x ∈ K, βˆ€ i j, S x i j = B x (C.field i x) (C.field j x)) (x : M) : chi x * B x (V x) (W x) = βˆ‘ i, βˆ‘ j, outputCoefficient C g0 chi V W i j x * S x i j := by rw [weighted_bilinear_eq C g0 chi hchi V W B x] by_cases hx : x ∈ K Β· simp only [hS x hx] Β· have hz : chi x = 0 := by by_contra h exact hx (hchi h) simp only [outputCoefficient, hz, zero_mul, Finset.sum_const_zero] /-- The finite compatible chart source reconstructs the actual intrinsic DeTurck tensor. -/ theorem weighted_ricciDeTurck_eq (g0 g : RiemannianMetric n M) (D : LeviCivitaData g) (B : LeviCivitaData g0) (chi : M β†’ ℝ) (hchi : Function.support chi βŠ† K) (V W : SmoothField (n := n) (M := M)) (x : M) : chi x * smoothRicciDeTurckTensor D B x (V x) (W x) = βˆ‘ i, βˆ‘ j, outputCoefficient C g0 chi V W i j x * ricciDeTurckSource (C.jet g0 x) (C.jet g x) i j := by apply weighted_source_eq C g0 chi hchi V W (smoothRicciDeTurckTensor D B) intro y hy i j rw [C.jet_eq_on g0 hy, C.jet_eq_on g hy, (C.field_eventuallyEq (C.zeta_one y (C.mem_eta_support hy)) i).eq_of_nhds, (C.field_eventuallyEq (C.zeta_one y (C.mem_eta_support hy)) j).eq_of_nhds, smoothRicciDeTurckTensor_apply] exact ricciDeTurckSource_frameMetricJet_eq_intrinsic D B p (C.eta_support (C.mem_eta_support hy)) i j /-- A finite chart partition gives a global source identity on the native tensor types. -/ theorem ricciDeTurck_eq_sum_chartSources {A : Type*} [Fintype A] (centers : A β†’ M) (sets : A β†’ Set M) (cutoffs : βˆ€ a, Cutoffs (n := n) (centers a) (sets a)) (chi : A β†’ M β†’ ℝ) (hchi : βˆ€ a, Function.support (chi a) βŠ† sets a) (hsum : βˆ€ x, βˆ‘ a, chi a x = 1) (g0 g : RiemannianMetric n M) (D : LeviCivitaData g) (B : LeviCivitaData g0) (V W : SmoothField (n := n) (M := M)) (x : M) : smoothRicciDeTurckTensor D B x (V x) (W x) = βˆ‘ a, βˆ‘ i, βˆ‘ j, outputCoefficient (cutoffs a) g0 (chi a) V W i j x * ricciDeTurckSource ((cutoffs a).jet g0 x) ((cutoffs a).jet g x) i j := by calc _ = βˆ‘ a, chi a x * smoothRicciDeTurckTensor D B x (V x) (W x) := by rw [← Finset.sum_mul, hsum, one_mul] _ = _ := Finset.sum_congr rfl (fun a _ => weighted_ricciDeTurck_eq (cutoffs a) g0 g D B (chi a) (hchi a) V W x) end ChartOutput section FiniteCover variable [T2Space M] [CompactSpace M] structure CompatibleChartCover where centers : Finset M partition : SmoothPartitionOfUnity centers (𝓑 n) M Set.univ cutoffs : βˆ€ a : centers, Cutoffs (n := n) a.val (tsupport (partition a)) /-- All chart-local forcing inputs are supplied by one finite compatible cover. -/ theorem exists_compatibleChartCover : Nonempty (CompatibleChartCover (n := n) (M := M)) := by classical let U : M β†’ Set M := fun p => (chartAt (EuclideanSpace ℝ (Fin n)) p).source have hcover : Set.univ βŠ† ⋃ p : M, U p := by intro x _ exact Set.mem_iUnion.mpr ⟨x, mem_chart_source _ x⟩ obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover U (fun p => (chartAt (EuclideanSpace ℝ (Fin n)) p).open_source) hcover have hscover : Set.univ βŠ† ⋃ a : s, U a.val := by intro x hx have hxs := hs hx simp only [Set.mem_iUnion] at hxs obtain ⟨p, hp, hxp⟩ := hxs exact Set.mem_iUnion.mpr ⟨⟨p, hp⟩, hxp⟩ obtain ⟨rho, hrho⟩ := SmoothPartitionOfUnity.exists_isSubordinate (𝓑 n) isClosed_univ (fun a : s => U a.val) (fun a => (chartAt (EuclideanSpace ℝ (Fin n)) a.val).open_source) hscover exact ⟨{ centers := s partition := rho cutoffs := fun a => Classical.choice (exists_cutoffs a.val (isClosed_tsupport (rho a)).isCompact (hrho a)) }⟩ namespace CompatibleChartCover variable (A : CompatibleChartCover (n := n) (M := M)) theorem weight_sum (x : M) : (βˆ‘ a : A.centers, A.partition a x) = 1 := by simpa only [finsum_eq_sum_of_fintype] using A.partition.sum_eq_one (Set.mem_univ x) theorem source_eq (g0 g : RiemannianMetric n M) (D : LeviCivitaData g) (B : LeviCivitaData g0) (V W : SmoothField (n := n) (M := M)) (x : M) : smoothRicciDeTurckTensor D B x (V x) (W x) = βˆ‘ a : A.centers, βˆ‘ i, βˆ‘ j, outputCoefficient (A.cutoffs a) g0 (A.partition a) V W i j x * ricciDeTurckSource ((A.cutoffs a).jet g0 x) ((A.cutoffs a).jet g x) i j := ricciDeTurck_eq_sum_chartSources (fun a : A.centers => a.val) (fun a => tsupport (A.partition a)) A.cutoffs (fun a => A.partition a) (fun a => subset_tsupport (A.partition a)) A.weight_sum g0 g D B V W x end CompatibleChartCover end FiniteCover section CompletedTuples open MeasureTheory Filter variable [T2Space M] [CompactSpace M] [MeasurableSpace M] [BorelSpace M] (ΞΌ : Measure M) [IsFiniteMeasure ΞΌ] abbrev WordIndex (iota : Type*) (k : β„•) := Ξ£ l : Fin (k + 1), Fin l.val β†’ iota def wordIndex (w : List iota) {k : β„•} (hw : w.length ≀ k) : WordIndex iota k := ⟨⟨w.length, by omega⟩, w.get⟩ theorem wordIndex_word (w : List iota) {k : β„•} (hw : w.length ≀ k) : List.ofFn (wordIndex w hw).2 = w := by exact List.ofFn_get w def coefficientL2 (c : M β†’ ℝ) (hc : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ c) : Lp ℝ 2 ΞΌ β†’L[ℝ] Lp ℝ 2 ΞΌ := (ContinuousLinearMap.mul ℝ ℝ).holderL ΞΌ (⊀ : ENNReal) 2 2 (ContinuousMap.toLp (⊀ : ENNReal) ΞΌ ℝ ⟨c, hc.continuous⟩) theorem coefficientL2_coe (c : M β†’ ℝ) (hc : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ c) (q : Lp ℝ 2 ΞΌ) : coefficientL2 ΞΌ c hc q =ᡐ[ΞΌ] fun x => c x * q x := by filter_upwards [(ContinuousLinearMap.mul ℝ ℝ).coeFn_holder (r := (2 : ENNReal)) (ContinuousMap.toLp (⊀ : ENNReal) ΞΌ ℝ ⟨c, hc.continuous⟩) q, ContinuousMap.coeFn_toLp (p := (⊀ : ENNReal)) (ΞΌ := ΞΌ) (π•œ := ℝ) (⟨c, hc.continuous⟩ : C(M, ℝ))] with x hx hc' change coefficientL2 ΞΌ c hc q x = (ContinuousMap.toLp (⊀ : ENNReal) ΞΌ ℝ ⟨c, hc.continuous⟩) x * q x at hx rw [hc'] at hx exact hx def termsL2 {k : β„•} : (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) β†’ (βˆ€ t ∈ terms, t.word.length ≀ k) β†’ (WordIndex iota k β†’ Lp ℝ 2 ΞΌ) β†’L[ℝ] Lp ℝ 2 ΞΌ | [], _ => 0 | t :: terms, h => (coefficientL2 ΞΌ t.coefficient t.smooth).comp (ContinuousLinearMap.proj (wordIndex t.word (h t List.mem_cons_self))) + termsL2 terms (fun s hs => h s (List.mem_cons_of_mem t hs)) /-- The completed tuple map agrees with every actual compatible derivative tuple. -/ theorem termsL2_ae_eq {k : β„•} (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) (h : βˆ€ t ∈ terms, t.word.length ≀ k) (Q : WordIndex iota k β†’ Lp ℝ 2 ΞΌ) (f : M β†’ ℝ) (hQ : βˆ€ w (hw : w.length ≀ k), Q (wordIndex w hw) =ᡐ[ΞΌ] directionalWord F w f) : termsL2 ΞΌ terms h Q =ᡐ[ΞΌ] directionalTerms F terms f := by induction terms with | nil => change (0 : Lp ℝ 2 ΞΌ) =ᡐ[ΞΌ] (0 : M β†’ ℝ) exact Lp.coeFn_zero ℝ 2 ΞΌ | cons t terms ih => let q := Q (wordIndex t.word (h t List.mem_cons_self)) let rest := termsL2 ΞΌ terms (fun s hs => h s (List.mem_cons_of_mem t hs)) Q have hrest : rest =ᡐ[ΞΌ] directionalTerms F terms f := ih _ filter_upwards [coefficientL2_coe ΞΌ t.coefficient t.smooth q, hQ t.word (h t List.mem_cons_self), hrest, Lp.coeFn_add (coefficientL2 ΞΌ t.coefficient t.smooth q) rest] with x hx hqx hrx hadd change (coefficientL2 ΞΌ t.coefficient t.smooth q + rest) x = _ rw [hadd, Pi.add_apply, hx, hqx, hrx] rfl variable {p : M} {K : Set M} (C : Cutoffs (n := n) p K) def combinedWordL2 (g0 : RiemannianMetric n M) (w : List (Fin n βŠ• iota)) : (WordIndex iota w.length β†’ Lp ℝ 2 ΞΌ) β†’L[ℝ] Lp ℝ 2 ΞΌ := termsL2 ΞΌ (combinedWordTerms F C g0 w) (combinedWordTerms_order F C g0 w) theorem combinedWordL2_ae_eq (g0 : RiemannianMetric n M) (hF : βˆ€ (x : M) (v : TangentSpace (𝓑 n) x), (βˆ‘ i, g0.inner x (F i x) v β€’ F i x) = v) (w : List (Fin n βŠ• iota)) (Q : WordIndex iota w.length β†’ Lp ℝ 2 ΞΌ) (f : M β†’ ℝ) (hf : ContMDiff (𝓑 n) π“˜(ℝ, ℝ) ∞ f) (hQ : βˆ€ v (hv : v.length ≀ w.length), Q (wordIndex v hv) =ᡐ[ΞΌ] directionalWord F v f) : combinedWordL2 F ΞΌ C g0 w Q =ᡐ[ΞΌ] directionalWord (combinedFields F C) w f := by have h := termsL2_ae_eq F ΞΌ (combinedWordTerms F C g0 w) (combinedWordTerms_order F C g0 w) Q f hQ exact h.mono (fun x hx => hx.trans (combinedWordTerms_eq F C g0 hF w hf x)) def termsContinuous {k : β„•} : (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) β†’ (βˆ€ t ∈ terms, t.word.length ≀ k) β†’ (WordIndex iota k β†’ C(M, ℝ)) β†’L[ℝ] C(M, ℝ) | [], _ => 0 | t :: terms, h => (ContinuousLinearMap.mul ℝ C(M, ℝ) ⟨t.coefficient, t.smooth.continuous⟩).comp (ContinuousLinearMap.proj (wordIndex t.word (h t List.mem_cons_self))) + termsContinuous terms (fun s hs => h s (List.mem_cons_of_mem t hs)) theorem termsContinuous_eq {k : β„•} (terms : List (DirectionalTerm (n := n) (M := M) (iota := iota))) (h : βˆ€ t ∈ terms, t.word.length ≀ k) (Q : WordIndex iota k β†’ C(M, ℝ)) (f : M β†’ ℝ) (hQ : βˆ€ w (hw : w.length ≀ k) x, Q (wordIndex w hw) x = directionalWord F w f x) (x : M) : termsContinuous terms h Q x = directionalTerms F terms f x := by induction terms with | nil => rfl | cons t terms ih => change t.coefficient x * Q (wordIndex t.word (h t List.mem_cons_self)) x + termsContinuous terms (fun s hs => h s (List.mem_cons_of_mem t hs)) Q x = t.coefficient x * directionalWord F t.word f x + directionalTerms F terms f x rw [hQ, ih] variable {A : Type*} [Fintype A] /-- Fixed packing into the finite high fibre used by the DeTurck source. -/ def packL2 : (A β†’ Lp ℝ 2 ΞΌ) β†’L[ℝ] Lp (A β†’ ℝ) 2 ΞΌ := by classical exact βˆ‘ a : A, ((ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLpL 2 ΞΌ).comp (ContinuousLinearMap.proj a) theorem packL2_coe (Q : A β†’ Lp ℝ 2 ΞΌ) : packL2 ΞΌ Q =ᡐ[ΞΌ] fun x a => Q a x := by classical filter_upwards [Lp.coeFn_fun_finsetSum Finset.univ (fun a : A => (ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLpL 2 ΞΌ (Q a)), ae_all_iff.mpr (fun a : A => (ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).coeFn_compLpL (Q a))] with x hsum hsingle simp only [packL2, ContinuousLinearMap.sum_apply, ContinuousLinearMap.comp_apply, ContinuousLinearMap.proj_apply] rw [hsum] ext a simp [hsingle, ContinuousLinearMap.single_apply] theorem packL2_ae_eq (Q : A β†’ Lp ℝ 2 ΞΌ) (f : A β†’ M β†’ ℝ) (hQ : βˆ€ a, Q a =ᡐ[ΞΌ] f a) : packL2 ΞΌ Q =ᡐ[ΞΌ] fun x a => f a x := by filter_upwards [packL2_coe ΞΌ Q, ae_all_iff.mpr hQ] with x hx h exact hx.trans (funext h) /-- The continuous low fibre uses the same finite coordinate insertion. -/ def packContinuous : (A β†’ C(M, ℝ)) β†’L[ℝ] C(M, A β†’ ℝ) := by classical exact βˆ‘ a : A, ((ContinuousLinearMap.single ℝ (fun _ : A => ℝ) a).compLeftContinuous ℝ M).comp (ContinuousLinearMap.proj a) theorem packContinuous_apply (Q : A β†’ C(M, ℝ)) (x : M) (a : A) : packContinuous Q x a = Q a x := by classical simp [packContinuous, ContinuousLinearMap.single_apply] end CompletedTuples end PoincareMT.DeTurckJetCoordinatesNative end