import PoincareLib.Geometry.RicciFlow.Positivity.Sectional.Rayleigh import PoincareLib.Geometry.RicciFlow.Positivity.Sectional.NullMinimum import PoincareLib.Geometry.RicciFlow.Curvature.Calculus.Identities.CurvatureSymmetries /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M04/SectionalMinimumDiffusion.lean`, revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. See the curvature import record under `references/ricci-flow/mapher/curvature/`. -/ /-! # Diffusion at a minimum sectional Rayleigh quotient The actual metric Gram tensor is parallel. Its subtraction preserves the curvature Laplacian and produces the tensor used in the null-plane test. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle open Set 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 2000000 in -- The Gram-tensor product rule and metric-compatibility traces need extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem covariantTensorDerivative_metricGramEvaluation (D : LeviCivitaData g) : D.covariantTensorDerivative (metricGramEvaluation g) = 0 := by classical let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ funext y v let E := EuclideanSpace ℝ (Fin n) let e := trivializationAt E (TangentSpace (𝓑 n) : M β†’ Type _) y have hy : y ∈ e.baseSet := FiberBundle.mem_baseSet_trivializationAt' y let X : Fin 4 β†’ (z : M) β†’ TangentSpace (𝓑 n) z := fun i ↦ FiberBundle.extend E (v i.succ) have hX (i : Fin 4) : ContMDiffAt (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E)) ∞ (T% (X i)) y := (contMDiffOn_extend_baseSet (v i.succ)).contMDiffAt (e.open_baseSet.mem_nhds hy) let k (i j : Fin 4) : M β†’ ℝ := fun z ↦ g.inner z (X i z) (X j z) have hk (i j : Fin 4) : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) (k i j) y := ((hX i).inner_bundle (hX j)).mdifferentiableAt (by simp) have hkval (i j : Fin 4) : k i j y = g.inner y (v i.succ) (v j.succ) := by simp only [k, X, FiberBundle.extend_apply_self] have hmetric (i j : Fin 4) : mvfderiv (𝓑 n) (k i j) y (v 0) = g.inner y (D.connection (X i) y (v 0)) (v j.succ) + g.inner y (v i.succ) (D.connection (X j) y (v 0)) := by simpa only [X, FiberBundle.extend_apply_self] using! metric_derivative_pairing D (FiberBundle.extend E (v 0)) ((hX i).mdifferentiableAt (by simp)) ((hX j).mdifferentiableAt (by simp)) change mvfderiv (𝓑 n) (fun z ↦ k 0 2 z * k 1 3 z - k 0 3 z * k 1 2 z) y (v 0) - βˆ‘ i : Fin 4, metricGramEvaluation g y (Function.update (fun j ↦ v j.succ) i (D.connection (X i) y (v 0))) = 0 have hsub := mvfderiv_fun_sub ((hk 0 2).mul (hk 1 3)) ((hk 0 3).mul (hk 1 2)) simp only [Pi.mul_def] at hsub rw [hsub, mvfderiv_fun_mul (hk 0 2) (hk 1 3), mvfderiv_fun_mul (hk 0 3) (hk 1 2)] simp only [sub_apply, add_apply, smul_apply, smul_eq_mul, hmetric, hkval] simp [metricGramEvaluation, Fin.sum_univ_succ, Function.update] ring set_option maxHeartbeats 2400000 in -- The shifted sectional tensor and null-plane diffusion bound need extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem curvature_tensorLaplacian_nonneg_at_sectional_rayleigh_min (D : LeviCivitaData g) (m : ℝ) (hmin : βˆ€ (y : M) (a b : TangentSpace (𝓑 n) y), m * metricGram g y a b ≀ D.curvatureTensor y a b a b) (x : M) (u v : TangentSpace (𝓑 n) x) (hnull : D.curvatureTensor x u v u v = m * metricGram g x u v) : 0 ≀ D.tensorLaplacian D.riemannEvaluation x ![u, v, u, v] := by classical let G := metricGramEvaluation g have hG : IsSmoothCovariantTensor G := isSmoothCovariantTensor_metricGramEvaluation g have hR : IsSmoothCovariantTensor D.riemannEvaluation := isSmoothCovariantTensor_riemannEvaluation D let S : CovariantTensorEvaluation n M 4 := fun y w ↦ D.riemannEvaluation y w - m * G y w have hS : IsSmoothCovariantTensor S := by constructor Β· intro y obtain ⟨A, hA⟩ := hR.1 y obtain ⟨B, hB⟩ := hG.1 y refine ⟨A - m β€’ B, ?_⟩ intro w simp only [S, hA, hB, sub_apply, smul_apply, smul_eq_mul] Β· intro U hU X hX exact (hR.2 U hU X hX).sub (contMDiffOn_const.mul (hG.2 U hU X hX)) have hline (y : M) (w : Fin 5 β†’ TangentSpace (𝓑 n) y) : D.covariantTensorDerivative S y w = D.covariantTensorDerivative D.riemannEvaluation y w - m * D.covariantTensorDerivative G y w := by let E := EuclideanSpace ℝ (Fin n) let e := trivializationAt E (TangentSpace (𝓑 n) : M β†’ Type _) y have hy : y ∈ e.baseSet := FiberBundle.mem_baseSet_trivializationAt' y let X : Fin 4 β†’ (z : M) β†’ TangentSpace (𝓑 n) z := fun i ↦ FiberBundle.extend E (w i.succ) have hX (i : Fin 4) : ContMDiffOn (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E)) ∞ (T% (X i)) e.baseSet := contMDiffOn_extend_baseSet (w i.succ) let f : M β†’ ℝ := fun z ↦ D.riemannEvaluation z (fun i ↦ X i z) let k : M β†’ ℝ := fun z ↦ G z (fun i ↦ X i z) have hf : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) f y := ((hR.2 e.baseSet e.open_baseSet X hX).contMDiffAt (e.open_baseSet.mem_nhds hy)).mdifferentiableAt (by simp) have hk : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) k y := ((hG.2 e.baseSet e.open_baseSet X hX).contMDiffAt (e.open_baseSet.mem_nhds hy)).mdifferentiableAt (by simp) have hmk : mvfderiv (𝓑 n) (fun z ↦ m * k z) y = m β€’ mvfderiv (𝓑 n) k y := by rw [mvfderiv_fun_mul mdifferentiableAt_const hk] simp only [mvfderiv_const, smul_zero, add_zero] have hsub : mvfderiv (𝓑 n) (fun z ↦ f z - m * k z) y = mvfderiv (𝓑 n) f y - m β€’ mvfderiv (𝓑 n) k y := by have h := mvfderiv_fun_sub hf ((mdifferentiableAt_const (c := m)).mul hk) simpa only [Pi.mul_def, hmk] using! h let C (i : Fin 4) := Function.update (fun j ↦ w j.succ) i (D.connection (X i) y (w 0)) change mvfderiv (𝓑 n) (fun z ↦ f z - m * k z) y (w 0) - (βˆ‘ i, (D.riemannEvaluation y (C i) - m * G y (C i))) = (mvfderiv (𝓑 n) f y (w 0) - βˆ‘ i, D.riemannEvaluation y (C i)) - m * (mvfderiv (𝓑 n) k y (w 0) - βˆ‘ i, G y (C i)) rw [hsub] simp only [sub_apply, smul_apply, smul_eq_mul, Finset.sum_sub_distrib, ← Finset.mul_sum] ring have hfirst : D.covariantTensorDerivative S = D.covariantTensorDerivative D.riemannEvaluation := by funext y w have hz : D.covariantTensorDerivative G y w = 0 := congrFun (congrFun (covariantTensorDerivative_metricGramEvaluation D) y) w simpa only [hz, mul_zero, sub_zero] using hline y w have hsecond : D.iteratedCovariantTensorDerivative S 2 = D.iteratedCovariantTensorDerivative D.riemannEvaluation 2 := by simp only [LeviCivitaData.iteratedCovariantTensorDerivative, hfirst] have hLap : D.tensorLaplacian S = D.tensorLaplacian D.riemannEvaluation := by funext y w simp only [LeviCivitaData.tensorLaplacian, hsecond] have hpair (a b c d : TangentSpace (𝓑 n) x) : S x ![a, b, c, d] = S x ![c, d, a, b] := by change D.curvatureTensor x a b c d - m * (g.inner x a c * g.inner x b d - g.inner x a d * g.inner x b c) = D.curvatureTensor x c d a b - m * (g.inner x c a * g.inner x d b - g.inner x c b * g.inner x d a) rw [curvatureTensor_pair_exchange D x a b c d, g.symm x c a, g.symm x d b, g.symm x c b, g.symm x d a] ring have hdiag (y : M) (a b : TangentSpace (𝓑 n) y) : S y ![a, b, a, b] = D.curvatureTensor y a b a b - m * metricGram g y a b := by change D.curvatureTensor y a b a b - m * (g.inner y a a * g.inner y b b - g.inner y a b * g.inner y b a) = _ rw [g.symm y b a] simp only [metricGram, pow_two] rw [← hLap] apply tensorLaplacian_nonneg_at_sectional_null D hS isOpen_univ (mem_univ x) hpair (fun y _ a b ↦ by rw [hdiag]; exact sub_nonneg.mpr (hmin y a b)) u v rw [hdiag] exact sub_eq_zero.mpr hnull end PoincareMT.RicciFlowAnalysis