import PoincareLib.Geometry.RicciFlow.Positivity.TensorNullMinimum /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M04/SectionalNullMinimum.lean`, revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. See the curvature import record under `references/ricci-flow/mapher/curvature/`. -/ /-! # Local diffusion at a sectional null plane The single-slot null kernels remove the second derivatives of local test fields. The remaining derivative-slot correction is the scalar Hessian term. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle BigOperators open Set Topology Filter universe u namespace PoincareMT.RicciFlowAnalysis variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {g : RiemannianMetric n M} set_option maxHeartbeats 4000000 in -- The local-field expansions and null-direction Hessians need extra elaboration. set_option backward.isDefEq.respectTransparency false in private theorem local_null_fields_diffusion (D : LeviCivitaData g) {k : โ„•} {S : CovariantTensorEvaluation n M k} (hS : IsSmoothCovariantTensor S) {U : Set M} (hU : IsOpen U) {x : M} (hx : x โˆˆ U) (W : Fin k โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y) (hW : โˆ€ i, ContMDiffOn (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (T% (W i)) U) (hDW : โˆ€ i, D.connection (W i) x = 0) (hker : โˆ€ i z, S x (Function.update (fun j โ†ฆ W j x) i z) = 0) (hmin : IsLocalMin (fun y โ†ฆ S y (fun i โ†ฆ W i y)) x) : 0 โ‰ค D.tensorLaplacian S x (fun i โ†ฆ W i x) := by classical let e := trivializationAt (EuclideanSpace โ„ (Fin n)) (TangentSpace (๐“ก n) : M โ†’ Type _) x let O := U โˆฉ e.baseSet have hO : IsOpen O := hU.inter e.open_baseSet have hxO : x โˆˆ O := โŸจhx, FiberBundle.mem_baseSet_trivializationAt' xโŸฉ let Smooth (Z : (y : M) โ†’ TangentSpace (๐“ก n) y) := ContMDiffOn (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (T% Z) O have hWO (i : Fin k) : Smooth (W i) := (hW i).mono inter_subset_left have hE (a : TangentSpace (๐“ก n) x) : Smooth (FiberBundle.extend (EuclideanSpace โ„ (Fin n)) a) := (contMDiffOn_extend_baseSet a).mono inter_subset_right have hCons {r : โ„•} {Z : (y : M) โ†’ TangentSpace (๐“ก n) y} {V : Fin r โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y} (hZ : Smooth Z) (hV : โˆ€ i, Smooth (V i)) : โˆ€ i, Smooth ((Fin.cons Z V : Fin (r + 1) โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y) i) := by intro i cases i using Fin.cases with | zero => exact hZ | succ i => exact hV i have hUpdate {r : โ„•} {V : Fin r โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y} {Z : (y : M) โ†’ TangentSpace (๐“ก n) y} (hV : โˆ€ i, Smooth (V i)) (hZ : Smooth Z) (i : Fin r) : โˆ€ j, Smooth (Function.update V i Z j) := by intro j by_cases h : j = i ยท subst j simpa only [Function.update_self] using hZ ยท simpa only [Function.update_of_ne h] using hV j have hPoint {r : โ„•} (Z : (y : M) โ†’ TangentSpace (๐“ก n) y) (V : Fin r โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y) (y : M) : (fun i โ†ฆ (Fin.cons Z V : Fin (r + 1) โ†’ (z : M) โ†’ TangentSpace (๐“ก n) z) i y) = Fin.cons (Z y) (fun i โ†ฆ V i y) := by funext i cases i using Fin.cases <;> rfl have hPointUpdate {r : โ„•} (V : Fin r โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y) (i : Fin r) (Z : (y : M) โ†’ TangentSpace (๐“ก n) y) (y : M) : (fun j โ†ฆ Function.update V i Z j y) = Function.update (fun j โ†ฆ V j y) i (Z y) := by funext j by_cases h : j = i ยท subst j simp only [Function.update_self] ยท simp only [Function.update_of_ne h] have hDiff {r : โ„•} {T : CovariantTensorEvaluation n M r} (hT : IsSmoothCovariantTensor T) {Z : (y : M) โ†’ TangentSpace (๐“ก n) y} {V : Fin r โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y} (hZ : Smooth Z) (hV : โˆ€ i, Smooth (V i)) {y : M} (hy : y โˆˆ O) : mvfderiv (๐“ก n) (fun z โ†ฆ T z (fun i โ†ฆ V i z)) y (Z y) = D.covariantTensorDerivative T y (Fin.cons (Z y) (fun i โ†ฆ V i y)) + โˆ‘ i, T y (Function.update (fun j โ†ฆ V j y) i (D.connection (V i) y (Z y))) := by have he := covariantTensorDerivativeOnFields_eq D hT hO (hCons hZ hV) hy rw [hPoint] at he simp only [covariantTensorDerivativeOnFields, Fin.cons_zero, Fin.cons_succ] at he exact sub_eq_iff_eq_add.mp he have hzero {r : โ„•} {T : CovariantTensorEvaluation n M r} (hT : IsSmoothCovariantTensor T) (v : Fin r โ†’ TangentSpace (๐“ก n) x) (i : Fin r) (hi : v i = 0) : T x v = 0 := by obtain โŸจA, hAโŸฉ := hT.1 x rw [hA] exact A.map_coord_zero i hi let K := D.covariantTensorDerivative S have hK : IsSmoothCovariantTensor K := isSmoothCovariantTensor_covariantTensorDerivative D hS have hKzero (a : TangentSpace (๐“ก n) x) (i : Fin k) : K x (Fin.cons a (Function.update (fun j โ†ฆ W j x) i 0)) = 0 := by apply hzero hK _ i.succ simp only [Fin.cons_succ, Function.update_self] let f := fun y โ†ฆ S y (fun i โ†ฆ W i y) have hf : ContMDiffOn (๐“ก n) ๐“˜(โ„, โ„) โˆž f O := hS.2 O hO W hWO have hdfx (a : TangentSpace (๐“ก n) x) : mvfderiv (๐“ก n) f x a = K x (Fin.cons a (fun i โ†ฆ W i x)) := by have he := hDiff hS (hE a) hWO hxO simp only [FiberBundle.extend_apply_self] at he have hs : (โˆ‘ i, S x (Function.update (fun j โ†ฆ W j x) i (D.connection (W i) x a))) = 0 := Finset.sum_eq_zero fun i _ โ†ฆ hker i _ rw [hs] at he simpa only [add_zero, K, f] using! he have hsecond (a : TangentSpace (๐“ก n) x) : 0 โ‰ค D.iteratedCovariantTensorDerivative S 2 x (Fin.cons a (Fin.cons a (fun i โ†ฆ W i x))) := by let Y := FiberBundle.extend (EuclideanSpace โ„ (Fin n)) a have hY : Smooth Y := hE a let C (i : Fin k) := fun y โ†ฆ D.connection (W i) y (Y y) have hC (i : Fin k) : Smooth (C i) := by intro y hy apply ContMDiffAt.contMDiffWithinAt apply contMDiffAt_section_of_metric_pairings g (C i) intro b let q := trivializationAt (EuclideanSpace โ„ (Fin n)) (TangentSpace (๐“ก n) : M โ†’ Type _) y have hyq : y โˆˆ O โˆฉ q.baseSet := โŸจhy, FiberBundle.mem_baseSet_trivializationAt' yโŸฉ exact (contMDiffOn_connection_pairing D (hO.inter q.open_baseSet) (hY.mono inter_subset_left) ((hWO i).mono inter_subset_left) ((contMDiffOn_extend_baseSet b).mono inter_subset_right)).contMDiffAt ((hO.inter q.open_baseSet).mem_nhds hyq) have hCx (i : Fin k) : C i x = 0 := by simp only [C, hDW, zero_apply] let p := fun y โ†ฆ K y (Fin.cons (Y y) (fun i โ†ฆ W i y)) let q (i : Fin k) := fun y โ†ฆ S y (Function.update (fun j โ†ฆ W j y) i (C i y)) have hp : ContMDiffOn (๐“ก n) ๐“˜(โ„, โ„) โˆž p O := by simpa only [hPoint] using hK.2 O hO (Fin.cons Y W) (hCons hY hWO) have hq (i : Fin k) : ContMDiffOn (๐“ก n) ๐“˜(โ„, โ„) โˆž (q i) O := by simpa only [hPointUpdate] using hS.2 O hO (Function.update W i (C i)) (hUpdate hWO (hC i) i) have hfirst : (fun y โ†ฆ mvfderiv (๐“ก n) f y (Y y)) =แถ [๐“ x] (p + โˆ‘ i, q i) := by filter_upwards [hO.mem_nhds hxO] with y hy have he := hDiff hS hY hWO hy simpa only [Pi.add_apply, Finset.sum_apply, f, K, C, p, q] using! he have hdp : mvfderiv (๐“ก n) p x (Y x) = D.covariantTensorDerivative K x (Fin.cons (Y x) (Fin.cons (Y x) (fun i โ†ฆ W i x))) + K x (Fin.cons (D.connection Y x (Y x)) (fun i โ†ฆ W i x)) := by have he := hDiff hK hY (hCons hY hWO) hxO simp only [hPoint, Fin.sum_univ_succ, Fin.cons_zero, Fin.cons_succ, Fin.update_cons_zero, โ† Fin.cons_update] at he have hs : (โˆ‘ i, K x (Fin.cons (Y x) (Function.update (fun j โ†ฆ W j x) i (D.connection (W i) x (Y x))))) = 0 := by apply Finset.sum_eq_zero intro i _ simpa only [hDW, zero_apply] using hKzero (Y x) i simpa only [hs, add_zero, p] using! he have hdq (i : Fin k) : mvfderiv (๐“ก n) (q i) x (Y x) = 0 := by have he := hDiff hS hY (hUpdate hWO (hC i) i) hxO simp only [hPointUpdate, hCx] at he have hs (j : Fin k) (z : TangentSpace (๐“ก n) x) : S x (Function.update (Function.update (fun r โ†ฆ W r x) i 0) j z) = 0 := by by_cases h : j = i ยท subst j simpa only [Function.update_idem] using hker i z ยท apply hzero hS _ i simp only [Function.update_of_ne (Ne.symm h), Function.update_self] have hsum : (โˆ‘ j, S x (Function.update (Function.update (fun r โ†ฆ W r x) i 0) j (D.connection (Function.update W i (C i) j) x (Y x)))) = 0 := Finset.sum_eq_zero fun j _ โ†ฆ hs j _ simpa only [K, hKzero, hsum, add_zero, q] using! he have hpD := (hp.contMDiffAt (hO.mem_nhds hxO)).mdifferentiableAt (by simp) have hqD (i : Fin k) := ((hq i).contMDiffAt (hO.mem_nhds hxO)).mdifferentiableAt (by simp) have hqsumD : MDifferentiableAt (๐“ก n) ๐“˜(โ„, โ„) (โˆ‘ i, q i) x := MDifferentiableAt.sum (fun i _ โ†ฆ hqD i) have hsumDeriv (w : TangentSpace (๐“ก n) x) : mvfderiv (๐“ก n) (โˆ‘ i, q i) x w = โˆ‘ i, mvfderiv (๐“ก n) (q i) x w := by have he := (HasMFDerivAt.sum (t := (Finset.univ : Finset (Fin k))) (fun i _ โ†ฆ (hqD i).hasMFDerivAt)).mfderiv change ((mfderiv (๐“ก n) ๐“˜(โ„, โ„) (โˆ‘ i, q i) x : TangentSpace (๐“ก n) x โ†’L[โ„] โ„) w) = โˆ‘ i, ((mfderiv (๐“ก n) ๐“˜(โ„, โ„) (q i) x : TangentSpace (๐“ก n) x โ†’L[โ„] โ„) w) simpa only [sum_apply] using! congrArg (fun L : TangentSpace (๐“ก n) x โ†’L[โ„] โ„ โ†ฆ L w) he have hdd : mvfderiv (๐“ก n) (fun y โ†ฆ mvfderiv (๐“ก n) f y (Y y)) x (Y x) = D.covariantTensorDerivative K x (Fin.cons (Y x) (Fin.cons (Y x) (fun i โ†ฆ W i x))) + K x (Fin.cons (D.connection Y x (Y x)) (fun i โ†ฆ W i x)) := by have he : mvfderiv (๐“ก n) (fun y โ†ฆ mvfderiv (๐“ก n) f y (Y y)) x = mvfderiv (๐“ก n) (p + โˆ‘ i, q i) x := hfirst.mfderiv_eq rw [he, mvfderiv_add hpD hqsumD] simp only [add_apply, hdp, hsumDeriv, hdq, Finset.sum_const_zero, add_zero] have hh : D.hessian f x a a = D.iteratedCovariantTensorDerivative S 2 x (Fin.cons a (Fin.cons a (fun i โ†ฆ W i x))) := by change mvfderiv (๐“ก n) (fun y โ†ฆ mvfderiv (๐“ก n) f y (Y y)) x (Y x) - mvfderiv (๐“ก n) f x (D.connection Y x (Y x)) = _ rw [hdd, hdfx, add_sub_cancel_right] simp only [Y, FiberBundle.extend_apply_self, LeviCivitaData.iteratedCovariantTensorDerivative, K] rw [โ† hh] exact D.hessian_nonneg_of_isLocalMinAt (hf.contMDiffAt (hO.mem_nhds hxO)) hmin a exact Finset.sum_nonneg fun i _ โ†ฆ hsecond (g.orthonormalBasis x i) set_option maxHeartbeats 2000000 in -- Polarizing the null-plane identities and tensor insertions needs extra elaboration. set_option backward.isDefEq.respectTransparency false in private theorem sectional_null_insertions {S : CovariantTensorEvaluation n M 4} (hS : IsSmoothCovariantTensor S) {x : M} (hpair : โˆ€ a b c d : TangentSpace (๐“ก n) x, S x ![a, b, c, d] = S x ![c, d, a, b]) (hpos : โˆ€ a b : TangentSpace (๐“ก n) x, 0 โ‰ค S x ![a, b, a, b]) (u v : TangentSpace (๐“ก n) x) (hnull : S x ![u, v, u, v] = 0) : โˆ€ i z, S x (Function.update ![u, v, u, v] i z) = 0 := by classical obtain โŸจA, hAโŸฉ := hS.1 x have hu0 (a b c d z : TangentSpace (๐“ก n) x) : Function.update ![a, b, c, d] 0 z = ![z, b, c, d] := by funext i fin_cases i <;> simp [Function.update] have hu1 (a b c d z : TangentSpace (๐“ก n) x) : Function.update ![a, b, c, d] 1 z = ![a, z, c, d] := by funext i fin_cases i <;> simp [Function.update] have hu2 (a b c d z : TangentSpace (๐“ก n) x) : Function.update ![a, b, c, d] 2 z = ![a, b, z, d] := by funext i fin_cases i <;> simp [Function.update] have hu3 (a b c d z : TangentSpace (๐“ก n) x) : Function.update ![a, b, c, d] 3 z = ![a, b, c, z] := by funext i fin_cases i <;> simp [Function.update] let B : LinearMap.BilinForm โ„ (TangentSpace (๐“ก n) x) := { toFun := fun a โ†ฆ A.toLinearMap ![a, v, 0, v] 2 map_add' := by intro a b ext c simpa only [LinearMap.add_apply, MultilinearMap.toLinearMap_apply, hu2, hu0] using A.map_update_add ![0, v, c, v] 0 a b map_smul' := by intro s a ext b simpa only [LinearMap.smul_apply, RingHom.id_apply, MultilinearMap.toLinearMap_apply, hu2, hu0] using A.map_update_smul ![0, v, b, v] 0 s a } have hB (a b : TangentSpace (๐“ก n) x) : B a b = S x ![a, v, b, v] := by change A (Function.update ![a, v, 0, v] 2 b) = _ rw [hu2] exact (hA _).symm have hBsymm : B.IsSymm := โŸจfun a b โ†ฆ by simpa only [hB] using hpair a v b vโŸฉ have hBu : B u = 0 := LinearMap.mem_ker.mp ((B.apply_apply_same_eq_zero_iff (fun a โ†ฆ by simpa only [hB] using hpos a v) (LinearMap.BilinForm.isSymm_iff.mp hBsymm)).mp (by simpa only [hB] using hnull)) have hBL (z : TangentSpace (๐“ก n) x) : S x ![u, v, z, v] = 0 := by rw [โ† hB, hBu] rfl have hBR (z : TangentSpace (๐“ก n) x) : S x ![z, v, u, v] = 0 := (hpair z v u v).trans (hBL z) let C : LinearMap.BilinForm โ„ (TangentSpace (๐“ก n) x) := { toFun := fun a โ†ฆ A.toLinearMap ![u, a, u, 0] 3 map_add' := by intro a b ext c simpa only [LinearMap.add_apply, MultilinearMap.toLinearMap_apply, hu3, hu1] using A.map_update_add ![u, 0, u, c] 1 a b map_smul' := by intro s a ext b simpa only [LinearMap.smul_apply, RingHom.id_apply, MultilinearMap.toLinearMap_apply, hu3, hu1] using A.map_update_smul ![u, 0, u, b] 1 s a } have hC (a b : TangentSpace (๐“ก n) x) : C a b = S x ![u, a, u, b] := by change A (Function.update ![u, a, u, 0] 3 b) = _ rw [hu3] exact (hA _).symm have hCsymm : C.IsSymm := โŸจfun a b โ†ฆ by simpa only [hC] using hpair u a u bโŸฉ have hCv : C v = 0 := LinearMap.mem_ker.mp ((C.apply_apply_same_eq_zero_iff (fun a โ†ฆ by simpa only [hC] using hpos u a) (LinearMap.BilinForm.isSymm_iff.mp hCsymm)).mp (by simpa only [hC] using hnull)) have hCL (z : TangentSpace (๐“ก n) x) : S x ![u, v, u, z] = 0 := by rw [โ† hC, hCv] rfl have hCR (z : TangentSpace (๐“ก n) x) : S x ![u, z, u, v] = 0 := (hpair u z u v).trans (hCL z) intro i z fin_cases i ยท change S x (Function.update ![u, v, u, v] 0 z) = 0 simpa only [hu0] using hBR z ยท change S x (Function.update ![u, v, u, v] 1 z) = 0 simpa only [hu1] using hCR z ยท change S x (Function.update ![u, v, u, v] 2 z) = 0 simpa only [hu2] using hBL z ยท change S x (Function.update ![u, v, u, v] 3 z) = 0 simpa only [hu3] using hCL z set_option maxHeartbeats 2000000 in -- The sectional null-field construction and diffusion trace need extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem tensorLaplacian_nonneg_at_sectional_null (D : LeviCivitaData g) {S : CovariantTensorEvaluation n M 4} (hS : IsSmoothCovariantTensor S) {U : Set M} (hU : IsOpen U) {x : M} (hx : x โˆˆ U) (hpair : โˆ€ a b c d : TangentSpace (๐“ก n) x, S x ![a, b, c, d] = S x ![c, d, a, b]) (hpos : โˆ€ y โˆˆ U, โˆ€ a b : TangentSpace (๐“ก n) y, 0 โ‰ค S y ![a, b, a, b]) (u v : TangentSpace (๐“ก n) x) (hnull : S x ![u, v, u, v] = 0) : 0 โ‰ค D.tensorLaplacian S x ![u, v, u, v] := by classical have hker := sectional_null_insertions hS hpair (hpos x hx) u v hnull obtain โŸจV, X, hV, hxV, hX, hXu, hDXโŸฉ := exists_local_field_connection_zero D x u obtain โŸจL, Y, hL, hxL, hY, hYv, hDYโŸฉ := exists_local_field_connection_zero D x v let O := (U โˆฉ V) โˆฉ L have hO : IsOpen O := (hU.inter hV).inter hL have hxO : x โˆˆ O := โŸจโŸจhx, hxVโŸฉ, hxLโŸฉ let W : Fin 4 โ†’ (y : M) โ†’ TangentSpace (๐“ก n) y := ![X, Y, X, Y] have hPoint (y : M) : (fun i โ†ฆ W i y) = ![X y, Y y, X y, Y y] := by funext i fin_cases i <;> rfl have hW : โˆ€ i, ContMDiffOn (๐“ก n) ((๐“ก n).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin n))) โˆž (T% (W i)) O := by intro i fin_cases i ยท exact hX.mono (fun _ hy โ†ฆ hy.1.2) ยท exact hY.mono inter_subset_right ยท exact hX.mono (fun _ hy โ†ฆ hy.1.2) ยท exact hY.mono inter_subset_right have hDW (i : Fin 4) : D.connection (W i) x = 0 := by fin_cases i ยท exact hDX ยท exact hDY ยท exact hDX ยท exact hDY have hkerW (i : Fin 4) (z : TangentSpace (๐“ก n) x) : S x (Function.update (fun j โ†ฆ W j x) i z) = 0 := by simpa only [hPoint, hXu, hYv] using hker i z have hmin : IsLocalMin (fun y โ†ฆ S y (fun i โ†ฆ W i y)) x := by filter_upwards [hO.mem_nhds hxO] with y hy change S x (fun i โ†ฆ W i x) โ‰ค S y (fun i โ†ฆ W i y) rw [hPoint, hPoint, hXu, hYv, hnull] exact hpos y hy.1.1 (X y) (Y y) simpa only [hPoint, hXu, hYv] using local_null_fields_diffusion D hS hO hxO W hW hDW hkerW hmin end PoincareMT.RicciFlowAnalysis