Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | /- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/DeTurckParameterForcingNative.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Forcing.DeTurckSmoothForcing |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Construction.DeTurckBackgroundVariation |
| 7 | |
| 8 | /-! |
| 9 | # The native DeTurck forcing with a varying background and initial metric |
| 10 | |
| 11 | The initial perturbation is inserted in both response levels. The background |
| 12 | change is a lower trace term; the fixed generator of the seed is subtracted. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option maxHeartbeats 1800000 |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open MeasureTheory Set Filter |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | namespace PoincareMT.DeTurckParameterForcingNative |
| 25 | |
| 26 | open SpectralHeatNative QuasilinearDeTurckNative TimeL2BilinearNative |
| 27 | DeTurckMetricProducerNative ContinuousPathCompositionNative DeTurckSmoothForcingNative |
| 28 | |
| 29 | universe u v |
| 30 | |
| 31 | section ParameterForcing |
| 32 | |
| 33 | variable {iota : Type v} {B : Type u} [Countable iota] |
| 34 | [NormedAddCommGroup B] [NormedSpace ℝ B] |
| 35 | {T : ℝ} (lambda : iota → NNReal) |
| 36 | |
| 37 | /-- The fixed differential generator from the high coordinates to the base coordinates. -/ |
| 38 | def highGenerator : State iota →L[ℝ] State iota := |
| 39 | ContinuousLinearMap.id ℝ (State iota) - scaleDecode lambda 2 |
| 40 | |
| 41 | theorem highGenerator_apply (x : State iota) (i : iota) : |
| 42 | highGenerator lambda x i = (lambda i : ℝ) / (1 + (lambda i : ℝ)) * x i := by |
| 43 | change x i - (scaleWeight lambda 2 i)⁻¹ * x i = _ |
| 44 | rw [scaleWeight_two] |
| 45 | have hden : 1 + (lambda i : ℝ) ≠ 0 := by positivity |
| 46 | field_simp |
| 47 | ring |
| 48 | |
| 49 | def traceShift (hT : 0 ≤ T) (q : State iota × ForcingSpace iota T) : |
| 50 | ResponsePath iota T := |
| 51 | ContinuousMap.const (Icc (0 : ℝ) T) (shiftedBaseMultiplier lambda q.1) + |
| 52 | shiftedTraceOperator hT lambda q.2 |
| 53 | |
| 54 | def highShift (hT : 0 ≤ T) (q : State iota × ForcingSpace iota T) : |
| 55 | ForcingSpace iota T := |
| 56 | tracePathL2 hT (ContinuousMap.const (Icc (0 : ℝ) T) q.1) + |
| 57 | shiftedHighOperator hT lambda q.2 |
| 58 | |
| 59 | theorem traceShift_contDiff (hT : 0 ≤ T) : |
| 60 | ContDiff ℝ ∞ (traceShift lambda hT) := by |
| 61 | exact ((ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T) : |
| 62 | State iota →L[ℝ] ResponsePath iota T).contDiff.comp |
| 63 | ((shiftedBaseMultiplier lambda).contDiff.comp contDiff_fst)).add |
| 64 | ((shiftedTraceOperator hT lambda).contDiff.comp contDiff_snd) |
| 65 | |
| 66 | theorem highShift_contDiff (hT : 0 ≤ T) : |
| 67 | ContDiff ℝ ∞ (highShift lambda hT) := by |
| 68 | exact ((tracePathL2 hT).contDiff.comp |
| 69 | ((ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T) : |
| 70 | State iota →L[ℝ] ResponsePath iota T).contDiff.comp contDiff_fst)).add |
| 71 | ((shiftedHighOperator hT lambda).contDiff.comp contDiff_snd) |
| 72 | |
| 73 | @[simp] theorem traceShift_zero (hT : 0 ≤ T) (F : ForcingSpace iota T) : |
| 74 | traceShift lambda hT (0, F) = shiftedTraceOperator hT lambda F := by |
| 75 | simp [traceShift] |
| 76 | |
| 77 | @[simp] theorem highShift_zero (hT : 0 ≤ T) (F : ForcingSpace iota T) : |
| 78 | highShift lambda hT (0, F) = shiftedHighOperator hT lambda F := by |
| 79 | simp [highShift] |
| 80 | |
| 81 | def backgroundTrace (hT : 0 ≤ T) |
| 82 | (q : (B × State iota) × ForcingSpace iota T) : |
| 83 | C(Icc (0 : ℝ) T, B × State iota) := |
| 84 | (ContinuousLinearMap.inl ℝ B (State iota)).compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 85 | (ContinuousMap.const (Icc (0 : ℝ) T) q.1.1) + |
| 86 | (ContinuousLinearMap.inr ℝ B (State iota)).compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 87 | (traceShift lambda hT (q.1.2, q.2)) |
| 88 | |
| 89 | @[simp] theorem backgroundTrace_apply (hT : 0 ≤ T) |
| 90 | (q : (B × State iota) × ForcingSpace iota T) (t : Icc (0 : ℝ) T) : |
| 91 | backgroundTrace lambda hT q t = (q.1.1, traceShift lambda hT (q.1.2, q.2) t) := by |
| 92 | simp [backgroundTrace] |
| 93 | |
| 94 | theorem backgroundTrace_contDiff (hT : 0 ≤ T) : |
| 95 | ContDiff ℝ ∞ (backgroundTrace (B := B) lambda hT) := by |
| 96 | exact (((ContinuousLinearMap.inl ℝ B (State iota)).compLeftContinuous ℝ |
| 97 | (Icc (0 : ℝ) T)).contDiff.comp |
| 98 | ((ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T) : |
| 99 | B →L[ℝ] C(Icc (0 : ℝ) T, B)).contDiff.comp |
| 100 | (contDiff_fst.comp contDiff_fst))).add |
| 101 | (((ContinuousLinearMap.inr ℝ B (State iota)).compLeftContinuous ℝ |
| 102 | (Icc (0 : ℝ) T)).contDiff.comp |
| 103 | ((traceShift_contDiff lambda hT).comp |
| 104 | ((contDiff_snd.comp contDiff_fst).prodMk contDiff_snd))) |
| 105 | |
| 106 | variable (A : C(State iota, State iota →L[ℝ] State iota)) |
| 107 | (b : C(State iota, State iota)) (Delta : C(B × State iota, State iota)) |
| 108 | |
| 109 | def parameterForcing (hT : 0 ≤ T) |
| 110 | (q : (B × State iota) × ForcingSpace iota T) : ForcingSpace iota T := |
| 111 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 112 | (A.comp (traceShift lambda hT (q.1.2, q.2))) (highShift lambda hT (q.1.2, q.2)) + |
| 113 | tracePathL2 hT (b.comp (traceShift lambda hT (q.1.2, q.2))) + |
| 114 | tracePathL2 hT (Delta.comp (backgroundTrace lambda hT q)) - |
| 115 | tracePathL2 hT (ContinuousMap.const (Icc (0 : ℝ) T) (highGenerator lambda q.1.2)) |
| 116 | |
| 117 | theorem parameterForcing_contDiff (hT : 0 ≤ T) |
| 118 | (hA : ContDiff ℝ ∞ (A : State iota → State iota →L[ℝ] State iota)) |
| 119 | (hb : ContDiff ℝ ∞ (b : State iota → State iota)) |
| 120 | (hDelta : ContDiff ℝ ∞ (Delta : B × State iota → State iota)) : |
| 121 | ContDiff ℝ ∞ (parameterForcing lambda A b Delta hT) := by |
| 122 | have harg : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 123 | (q.1.2, q.2)) := (contDiff_snd.comp contDiff_fst).prodMk contDiff_snd |
| 124 | have htrace : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 125 | traceShift lambda hT (q.1.2, q.2)) := by |
| 126 | simpa only [Function.comp_def] using (traceShift_contDiff lambda hT).comp harg |
| 127 | have hhigh : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 128 | highShift lambda hT (q.1.2, q.2)) := by |
| 129 | simpa only [Function.comp_def] using (highShift_contDiff lambda hT).comp harg |
| 130 | have hAc : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 131 | A.comp (traceShift lambda hT (q.1.2, q.2))) := by |
| 132 | simpa only [Function.comp_def] using |
| 133 | (contDiff_postcomp (Icc (0 : ℝ) T) A hA).comp htrace |
| 134 | have hbc : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 135 | b.comp (traceShift lambda hT (q.1.2, q.2))) := by |
| 136 | simpa only [Function.comp_def] using |
| 137 | (contDiff_postcomp (Icc (0 : ℝ) T) b hb).comp htrace |
| 138 | let e : ULift.{max u v} (State iota) ≃L[ℝ] State iota := ContinuousLinearEquiv.ulift |
| 139 | let Dlift : C(B × State iota, ULift.{max u v} (State iota)) := |
| 140 | ⟨fun z => e.symm (Delta z), e.symm.continuous.comp Delta.continuous⟩ |
| 141 | let down : C(Icc (0 : ℝ) T, ULift.{max u v} (State iota)) →L[ℝ] ResponsePath iota T := |
| 142 | e.toContinuousLinearMap.compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 143 | have hdLift : ContDiff ℝ ∞ (Dlift : B × State iota → ULift.{max u v} (State iota)) := |
| 144 | e.symm.contDiff.comp hDelta |
| 145 | have hDcomp : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 146 | Dlift.comp (backgroundTrace lambda hT q)) := by |
| 147 | simpa only [Function.comp_def] using |
| 148 | (contDiff_postcomp (Icc (0 : ℝ) T) Dlift hdLift).comp |
| 149 | (backgroundTrace_contDiff (B := B) lambda hT) |
| 150 | have hdc : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 151 | Delta.comp (backgroundTrace lambda hT q)) := by |
| 152 | have heq : (fun q : (B × State iota) × ForcingSpace iota T => |
| 153 | down (Dlift.comp (backgroundTrace lambda hT q))) = |
| 154 | (fun q => Delta.comp (backgroundTrace lambda hT q)) := by |
| 155 | funext q |
| 156 | apply ContinuousMap.ext |
| 157 | intro t |
| 158 | change e (e.symm (Delta (backgroundTrace lambda hT q t))) = |
| 159 | Delta (backgroundTrace lambda hT q t) |
| 160 | exact e.apply_symm_apply _ |
| 161 | simpa only [Function.comp_def, heq] using down.contDiff.comp hDcomp |
| 162 | have hseed : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 163 | ContinuousMap.const (Icc (0 : ℝ) T) (highGenerator lambda q.1.2)) := by |
| 164 | change ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 165 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T) : |
| 166 | State iota →L[ℝ] ResponsePath iota T) (highGenerator lambda q.1.2)) |
| 167 | simpa only [Function.comp_def] using |
| 168 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T) : |
| 169 | State iota →L[ℝ] ResponsePath iota T).contDiff.comp |
| 170 | ((highGenerator lambda).contDiff.comp (contDiff_snd.comp contDiff_fst)) |
| 171 | have htop : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 172 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 173 | (A.comp (traceShift lambda hT (q.1.2, q.2))) |
| 174 | (highShift lambda hT (q.1.2, q.2))) := by |
| 175 | simpa only [Function.comp_def] using |
| 176 | (((productOperator hT |
| 177 | (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota))).contDiff.comp hAc).clm_apply |
| 178 | hhigh) |
| 179 | have hlower : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 180 | tracePathL2 (E := State iota) hT (b.comp (traceShift lambda hT (q.1.2, q.2)))) := by |
| 181 | simpa only [Function.comp_def] using |
| 182 | (tracePathL2 (E := State iota) hT).contDiff.comp hbc |
| 183 | have hcorrection : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 184 | tracePathL2 (E := State iota) hT (Delta.comp (backgroundTrace lambda hT q))) := by |
| 185 | simpa only [Function.comp_def] using |
| 186 | (tracePathL2 (E := State iota) hT).contDiff.comp hdc |
| 187 | have hfixed : ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 188 | tracePathL2 (E := State iota) hT |
| 189 | (ContinuousMap.const (Icc (0 : ℝ) T) (highGenerator lambda q.1.2))) := by |
| 190 | simpa only [Function.comp_def] using |
| 191 | (tracePathL2 (E := State iota) hT).contDiff.comp hseed |
| 192 | change ContDiff ℝ ∞ (fun q : (B × State iota) × ForcingSpace iota T => |
| 193 | productOperator hT (ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota)) |
| 194 | (A.comp (traceShift lambda hT (q.1.2, q.2))) (highShift lambda hT (q.1.2, q.2)) + |
| 195 | tracePathL2 (E := State iota) hT (b.comp (traceShift lambda hT (q.1.2, q.2))) + |
| 196 | tracePathL2 (E := State iota) hT (Delta.comp (backgroundTrace lambda hT q)) - |
| 197 | tracePathL2 (E := State iota) hT |
| 198 | (ContinuousMap.const (Icc (0 : ℝ) T) (highGenerator lambda q.1.2))) |
| 199 | exact ((htop.add hlower).add hcorrection).sub hfixed |
| 200 | |
| 201 | /-- The base map agrees on every forcing input, not only at its fixed point. -/ |
| 202 | theorem parameterForcing_zero (hT : 0 ≤ T) (hDelta : ∀ z, Delta (0, z) = 0) |
| 203 | (F : ForcingSpace iota T) : |
| 204 | parameterForcing lambda A b Delta hT ((0, 0), F) = uncutForcing lambda A b hT F := by |
| 205 | have hcomp : Delta.comp (backgroundTrace lambda hT ((0, 0), F)) = 0 := by |
| 206 | apply ContinuousMap.ext |
| 207 | intro t |
| 208 | change Delta (backgroundTrace lambda hT ((0, 0), F) t) = 0 |
| 209 | rw [backgroundTrace_apply, traceShift_zero] |
| 210 | exact hDelta _ |
| 211 | simp only [parameterForcing, traceShift_zero, highShift_zero, hcomp, |
| 212 | map_zero, ContinuousMap.const_zero, add_zero, sub_zero, uncutForcing] |
| 213 | |
| 214 | /-- Smooth parameter dependence starts from the actual strict forcing fixed point. -/ |
| 215 | theorem exists_parameter_fixedPoint [CompleteSpace B] |
| 216 | (hA : ContDiff ℝ ∞ (A : State iota → State iota →L[ℝ] State iota)) |
| 217 | (hb : ContDiff ℝ ∞ (b : State iota → State iota)) |
| 218 | (hDelta : ContDiff ℝ ∞ (Delta : B × State iota → State iota)) |
| 219 | (hDelta0 : ∀ z, Delta (0, z) = 0) |
| 220 | {rho : ℝ} (hrho : 0 < rho) (C C0 : NNReal) |
| 221 | (hmix : LocalMixedBound lambda rho C C0 |
| 222 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x))) : |
| 223 | let N := cutoffSpatialResidual lambda hrho |
| 224 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 225 | C C0 hmix |
| 226 | ∃ T : ℝ, ∃ hT : 0 < T, T ≤ 1 ∧ ∃ F : ForcingSpace iota T, |
| 227 | N.forcingResidual hT.le F = F ∧ ‖F‖ ≤ N.forcingRadius / 3 ∧ |
| 228 | ‖F‖ < N.forcingRadius ∧ |
| 229 | ∃ u : B × State iota → ForcingSpace iota T, |
| 230 | u 0 = F ∧ ContDiffAt ℝ ∞ u 0 ∧ |
| 231 | (∀ᶠ q in 𝓝 0, parameterForcing lambda A b Delta hT.le (q, u q) = u q) ∧ |
| 232 | (∀ᶠ q in 𝓝 (0, F), |
| 233 | parameterForcing lambda A b Delta hT.le q = q.2 ↔ u q.1 = q.2) ∧ |
| 234 | (∀ᶠ q in 𝓝 0, ‖u q‖ < N.forcingRadius) := by |
| 235 | let N := cutoffSpatialResidual lambda hrho |
| 236 | (fun x => A (shiftedBaseMultiplier lambda x) x + b (shiftedBaseMultiplier lambda x)) |
| 237 | C C0 hmix |
| 238 | obtain ⟨T, hT, hT1, F, hfix, hthird, hstrict, hLip⟩ := N.exists_strict_forcing_fixedPoint |
| 239 | have hzero (G : ForcingSpace iota T) (hG : ‖G‖ ≤ N.forcingRadius) : |
| 240 | parameterForcing lambda A b Delta hT.le (0, G) = N.forcingResidual hT.le G := |
| 241 | (parameterForcing_zero lambda A b Delta hT.le hDelta0 G).trans |
| 242 | (uncutForcing_eq_cutoff_forcing lambda A b hT.le hT1 hrho C C0 hmix G hG) |
| 243 | obtain ⟨u, hu, hsmooth, hufix, hunique⟩ := |
| 244 | exists_contDiffAt_fixedPoint_of_contraction (parameterForcing lambda A b Delta hT.le) |
| 245 | (by simp : (∞ : ℕ∞ω) ≠ 0) |
| 246 | (parameterForcing_contDiff lambda A b Delta hT.le hA hb hDelta).contDiffAt |
| 247 | ((hzero F hstrict.le).trans hfix) hstrict |
| 248 | (by norm_num : (0 : ℝ) ≤ 1 / 4) (by norm_num : (1 / 4 : ℝ) < 1) |
| 249 | (by |
| 250 | intro G H hG hH |
| 251 | rw [hzero G hG, hzero H hH] |
| 252 | exact hLip G H hG hH) |
| 253 | refine ⟨T, hT, hT1, F, hfix, hthird, hstrict, u, hu, hsmooth, hufix, hunique, ?_⟩ |
| 254 | have hmem : Metric.ball (0 : ForcingSpace iota T) N.forcingRadius ∈ 𝓝 (u 0) := |
| 255 | Metric.isOpen_ball.mem_nhds (by simpa only [hu, Metric.mem_ball, dist_zero_right] using hstrict) |
| 256 | simpa only [Metric.mem_ball, dist_zero_right] using hsmooth.continuousAt.eventually hmem |
| 257 | |
| 258 | end ParameterForcing |
| 259 | |
| 260 | section NativeBackground |
| 261 | |
| 262 | open TensorProbeNative TensorHilbertNative HilbertResolventNative NativeChartScalarLocalization |
| 263 | DeTurckNative DeTurckJetCoordinatesNative DeTurckJetAffineNative DeTurckResidualNative |
| 264 | DeTurckBackgroundVariationNative DeTurckTensorForcingNative DeTurckCompletedOutputNative |
| 265 | ChartMeasureNative |
| 266 | |
| 267 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 268 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 269 | [CompactSpace M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 270 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 271 | (L : FiniteChartLocalizationData d.charts) |
| 272 | (A : CompatibleChartCover (n := n) (M := M)) |
| 273 | |
| 274 | local notation "StateD" => State d.SymmetricIndex |
| 275 | local notation "BackgroundD" r:max => |
| 276 | NativeProbeContinuous (M := M) (iota := Fin d.fieldCount) (2 * r + 2) |
| 277 | |
| 278 | theorem highGenerator_smoothTensorCoordinates (k : ℕ) |
| 279 | (h : SmoothTensor (n := n) (M := M)) |
| 280 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) : |
| 281 | highGenerator d.symmetricParameters (d.smoothTensorCoordinates (k + 2) h hsymm) = |
| 282 | d.smoothTensorCoordinates k (smoothTensorLaplacian d.fields d.charts g0 h) |
| 283 | (smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm) := by |
| 284 | have hgraph := d.symmetricGeneratorGraph_smoothTensorLaplacian h hsymm |
| 285 | dsimp only [TensorHilbertNative.Data.SymmetricGeneratorGraph] at hgraph |
| 286 | have hlap : InGeneratorGraph (V := ↥d.symmetricForm) (H := ↥d.symmetricValue) |
| 287 | d.symmetricInclusion (d.intoSymmetricValue h hsymm) |
| 288 | (d.intoSymmetricValue (smoothTensorLaplacian d.fields d.charts g0 h) |
| 289 | (smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm)) ↔ |
| 290 | ∀ j : d.SymmetricIndex, |
| 291 | d.symmetricBasis.repr |
| 292 | (d.intoSymmetricValue (smoothTensorLaplacian d.fields d.charts g0 h) |
| 293 | (smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm)) j = |
| 294 | (d.symmetricParameters j : ℝ) * |
| 295 | d.symmetricBasis.repr (d.intoSymmetricValue h hsymm) j := by |
| 296 | dsimp only [TensorHilbertNative.Data.symmetricBasis, TensorHilbertNative.Data.symmetricParameters] |
| 297 | apply inGeneratorGraph_iff_coeff (V := ↥d.symmetricForm) (H := ↥d.symmetricValue) |
| 298 | d.symmetricInclusion |
| 299 | all_goals first |
| 300 | | exact d.symmetricInclusion_compact |
| 301 | | exact d.symmetricInclusion_denseRange |
| 302 | | exact d.norm_symmetricInclusion_le_one |
| 303 | apply lp.ext |
| 304 | funext i |
| 305 | have hcoeff := hlap.mp hgraph i |
| 306 | change d.symmetricBasis.repr |
| 307 | (d.intoSymmetricValue (smoothTensorLaplacian d.fields d.charts g0 h) |
| 308 | (smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm)) i = |
| 309 | (d.symmetricParameters i : ℝ) * d.symmetricBasis.repr (d.intoSymmetricValue h hsymm) i |
| 310 | at hcoeff |
| 311 | rw [highGenerator_apply] |
| 312 | change (d.symmetricParameters i : ℝ) / (1 + (d.symmetricParameters i : ℝ)) * |
| 313 | (scaleWeight d.symmetricParameters (k + 2) i * |
| 314 | d.symmetricBasis.repr (d.intoSymmetricValue h hsymm) i) = |
| 315 | scaleWeight d.symmetricParameters k i * d.symmetricBasis.repr |
| 316 | (d.intoSymmetricValue (smoothTensorLaplacian d.fields d.charts g0 h) |
| 317 | (smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm)) i |
| 318 | rw [hcoeff, scaleWeight_add, scaleWeight_two] |
| 319 | have hden : 1 + (d.symmetricParameters i : ℝ) ≠ 0 := by positivity |
| 320 | field_simp |
| 321 | |
| 322 | theorem backgroundDifferenceTensor_symm {background g : RiemannianMetric n M} |
| 323 | (D : LeviCivitaData g) (B : LeviCivitaData background) (B0 : LeviCivitaData g0) |
| 324 | (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 325 | (smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0) x v w = |
| 326 | (smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0) x w v := by |
| 327 | change smoothRicciDeTurckTensor D B x v w - smoothRicciDeTurckTensor D B0 x v w = |
| 328 | smoothRicciDeTurckTensor D B x w v - smoothRicciDeTurckTensor D B0 x w v |
| 329 | rw [smoothRicciDeTurckTensor_symm D B x v w, smoothRicciDeTurckTensor_symm D B0 x v w] |
| 330 | |
| 331 | def backgroundCorrection (r p : ℕ) (hpr : 2 * p ≤ r) |
| 332 | (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) |
| 333 | (Psi : BackgroundD r × |
| 334 | (NativeProbeContinuous (M := M) (iota := Fin d.fieldCount) (r + 1) × |
| 335 | NativeProbeL2 (iota := Fin d.fieldCount) d.charts.measure (2 * r + 1)) → |
| 336 | ChartSourceTuples (iota := Fin d.fieldCount) A d.charts.measure (2 * r)) |
| 337 | (q : BackgroundD r × StateD) : StateD := |
| 338 | evenOutput d r (sourceOutputL2 d.fields A g0 d.charts.measure (2 * r) |
| 339 | (Psi (q.1, lowInput d L r p hpr hp q.2, traceInput d L r q.2))) |
| 340 | |
| 341 | theorem backgroundCorrection_contDiff (r p : ℕ) (hpr : 2 * p ≤ r) |
| 342 | (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) |
| 343 | (Psi : BackgroundD r × |
| 344 | (NativeProbeContinuous (M := M) (iota := Fin d.fieldCount) (r + 1) × |
| 345 | NativeProbeL2 (iota := Fin d.fieldCount) d.charts.measure (2 * r + 1)) → |
| 346 | ChartSourceTuples (iota := Fin d.fieldCount) A d.charts.measure (2 * r)) |
| 347 | (hPsi : ContDiff ℝ ∞ Psi) : |
| 348 | ContDiff ℝ ∞ (backgroundCorrection d L A r p hpr hp Psi) := by |
| 349 | exact (evenOutput d r).contDiff.comp |
| 350 | ((sourceOutputL2 d.fields A g0 d.charts.measure (2 * r)).contDiff.comp |
| 351 | (hPsi.comp (contDiff_fst.prodMk |
| 352 | (((lowInput d L r p hpr hp).contDiff.comp contDiff_snd).prodMk |
| 353 | ((traceInput d L r).contDiff.comp contDiff_snd))))) |
| 354 | |
| 355 | include L A in |
| 356 | /-- The background correction is constructed from actual native finite jet expressions. -/ |
| 357 | theorem exists_native_backgroundCorrection (r p : ℕ) (hpr : 2 * p ≤ r) |
| 358 | (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) : |
| 359 | ∃ delta : ℝ, 0 < delta ∧ ∃ rho : ℝ, 0 < rho ∧ |
| 360 | ∃ Delta : BackgroundD r × StateD → StateD, |
| 361 | ContDiff ℝ ∞ Delta ∧ (∀ z, Delta (0, z) = 0) ∧ |
| 362 | ∀ QB : BackgroundD r, ‖QB‖ < delta → |
| 363 | ∀ (background g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 364 | (B : LeviCivitaData background) (B0 : LeviCivitaData g0) |
| 365 | (h : SmoothTensor (n := n) (M := M)) |
| 366 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v), |
| 367 | (∀ ab w (hw : w.length ≤ 2 * r + 2) x, |
| 368 | QB ab (wordIndex w hw) x = directionalWord d.fields w |
| 369 | (probeDifference d.fields background g0 ab) x) → |
| 370 | (∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 371 | g.inner x v w = g0.inner x v w + h x v w) → |
| 372 | ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ rho → |
| 373 | Delta (QB, d.smoothTensorCoordinates (2 * r + 1) h hsymm) = |
| 374 | d.smoothTensorCoordinates (2 * r) |
| 375 | (smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0) |
| 376 | (backgroundDifferenceTensor_symm D B B0) := by |
| 377 | obtain ⟨delta, hdelta, Psi, hPsi, hPsi0, hPsiEq⟩ := |
| 378 | exists_smooth_background_chart_action d.fields g0 d.charts.measure A d.parseval |
| 379 | (2 * r) (r + 1) (by omega) |
| 380 | let rho : ℝ := (delta / (‖lowInput d L r p hpr hp‖ + 1)) / 2 |
| 381 | have hden : 0 < ‖lowInput d L r p hpr hp‖ + 1 := by positivity |
| 382 | have hrho : 0 < rho := half_pos (div_pos hdelta hden) |
| 383 | have hsmall (z : StateD) (hz : ‖z‖ ≤ rho) : ‖lowInput d L r p hpr hp z‖ < delta := by |
| 384 | have hzlt : ‖z‖ < delta / (‖lowInput d L r p hpr hp‖ + 1) := |
| 385 | hz.trans_lt (half_lt_self (div_pos hdelta hden)) |
| 386 | have hproduct := (lt_div_iff₀ hden).mp hzlt |
| 387 | have hop := (lowInput d L r p hpr hp).le_opNorm z |
| 388 | nlinarith [norm_nonneg z] |
| 389 | refine ⟨delta, hdelta, rho, hrho, backgroundCorrection d L A r p hpr hp Psi, |
| 390 | backgroundCorrection_contDiff d L A r p hpr hp Psi hPsi, ?_, ?_⟩ |
| 391 | · intro z |
| 392 | simp only [backgroundCorrection, hPsi0, map_zero] |
| 393 | · intro QB hQBsmall background g D B B0 h hsymm hQB hmetric hnorm |
| 394 | let QC := lowInput d L r p hpr hp (d.smoothTensorCoordinates (2 * r + 1) h hsymm) |
| 395 | let HC := traceInput d L r (d.smoothTensorCoordinates (2 * r + 1) h hsymm) |
| 396 | have hQC : ∀ ab w (hw : w.length ≤ r + 1) x, |
| 397 | QC ab (wordIndex w hw) x = directionalWord d.fields w |
| 398 | (probeDifference d.fields g g0 ab) x := by |
| 399 | intro ab w hw x |
| 400 | rw [probeDifference_eq_scalarProbe d g h hmetric ab] |
| 401 | exact lowInput_smoothTensorCoordinates d L r p hpr hp h hsymm ab w hw x |
| 402 | have hHC : ∀ ab w (hw : w.length ≤ 2 * r + 1), |
| 403 | HC ab (wordIndex w hw) =ᵐ[d.charts.measure] directionalWord d.fields w |
| 404 | (probeDifference d.fields g g0 ab) := by |
| 405 | intro ab w hw |
| 406 | rw [probeDifference_eq_scalarProbe d g h hmetric ab] |
| 407 | exact traceInput_smoothTensorCoordinates d L r h hsymm ab w hw |
| 408 | have hQ := hPsiEq QB hQBsmall QC (hsmall _ hnorm) HC background g hQB hQC hHC |
| 409 | apply evenOutput_eq d r _ |
| 410 | (smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0) |
| 411 | (backgroundDifferenceTensor_symm D B B0) |
| 412 | intro ab word hw |
| 413 | exact backgroundOutput_ae_eq d.fields g0 d.charts.measure A |
| 414 | (Psi (QB, QC, HC)) background g D B B0 hQ ab word hw |
| 415 | |
| 416 | /-- The raw geometric data retained when choosing one common forcing interval. -/ |
| 417 | structure NativeParameterData (r : ℕ) where |
| 418 | coefficient : StateD → StateD →L[ℝ] StateD |
| 419 | lower : StateD → StateD |
| 420 | correction : BackgroundD r × StateD → StateD |
| 421 | coefficient_smooth : ContDiff ℝ ∞ coefficient |
| 422 | lower_smooth : ContDiff ℝ ∞ lower |
| 423 | correction_smooth : ContDiff ℝ ∞ correction |
| 424 | coefficient_zero : coefficient 0 = 0 |
| 425 | correction_zero : ∀ z, correction (0, z) = 0 |
| 426 | radius : ℝ |
| 427 | radius_pos : 0 < radius |
| 428 | backgroundRadius : ℝ |
| 429 | backgroundRadius_pos : 0 < backgroundRadius |
| 430 | principalConstant : NNReal |
| 431 | lowerConstant : NNReal |
| 432 | mixed : LocalMixedBound d.symmetricParameters radius principalConstant lowerConstant |
| 433 | (fun x => coefficient (shiftedBaseMultiplier d.symmetricParameters x) x + |
| 434 | lower (shiftedBaseMultiplier d.symmetricParameters x)) |
| 435 | raw_agreement : |
| 436 | ∀ (g : RiemannianMetric n M) (D : LeviCivitaData g) (B0 : LeviCivitaData g0) |
| 437 | (h : SmoothTensor (n := n) (M := M)) |
| 438 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v), |
| 439 | (∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 440 | g.inner x v w = g0.inner x v w + h x v w) → |
| 441 | ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ radius → |
| 442 | coefficient (shiftedBaseMultiplier d.symmetricParameters |
| 443 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm)) |
| 444 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm) + |
| 445 | lower (shiftedBaseMultiplier d.symmetricParameters |
| 446 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm)) = |
| 447 | d.residualCoordinates (2 * r) D B0 h hsymm |
| 448 | correction_agreement : |
| 449 | ∀ QB : BackgroundD r, ‖QB‖ < backgroundRadius → |
| 450 | ∀ (background g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 451 | (B : LeviCivitaData background) (B0 : LeviCivitaData g0) |
| 452 | (h : SmoothTensor (n := n) (M := M)) |
| 453 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v), |
| 454 | (∀ ab w (hw : w.length ≤ 2 * r + 2) x, |
| 455 | QB ab (wordIndex w hw) x = directionalWord d.fields w |
| 456 | (probeDifference d.fields background g0 ab) x) → |
| 457 | (∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 458 | g.inner x v w = g0.inner x v w + h x v w) → |
| 459 | ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ radius → |
| 460 | correction (QB, d.smoothTensorCoordinates (2 * r + 1) h hsymm) = |
| 461 | d.smoothTensorCoordinates (2 * r) |
| 462 | (smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0) |
| 463 | (backgroundDifferenceTensor_symm D B B0) |
| 464 | |
| 465 | include L A in |
| 466 | /-- Both geometric exactness thresholds enter the radius before constructing the cutoff. -/ |
| 467 | theorem exists_nativeParameterData (r p : ℕ) (hpr : 2 * p ≤ r) |
| 468 | (hp : (n : ℝ) < 2 * (2 * (p : ℝ))) {upperRadius : ℝ} (hupper : 0 < upperRadius) : |
| 469 | ∃ K : NativeParameterData d r, K.radius ≤ upperRadius := by |
| 470 | obtain ⟨Aop, b, hA, hb, hA0, rho0, hrho0, C, C0, hmix, hEq⟩ := |
| 471 | exists_rawResidual d L A r p hpr hp |
| 472 | obtain ⟨delta, hdelta, rhoD, hrhoD, Delta, hDelta, hDelta0, hDeltaEq⟩ := |
| 473 | exists_native_backgroundCorrection d L A r p hpr hp |
| 474 | let rho : ℝ := min rho0 (min rhoD upperRadius) |
| 475 | have hrho : 0 < rho := lt_min hrho0 (lt_min hrhoD hupper) |
| 476 | have hbase : rho ≤ rho0 := min_le_left _ _ |
| 477 | have hcorr : rho ≤ rhoD := (min_le_right _ _).trans (min_le_left _ _) |
| 478 | have hupp : rho ≤ upperRadius := (min_le_right _ _).trans (min_le_right _ _) |
| 479 | refine ⟨{ |
| 480 | coefficient := Aop |
| 481 | lower := b |
| 482 | correction := Delta |
| 483 | coefficient_smooth := hA |
| 484 | lower_smooth := hb |
| 485 | correction_smooth := hDelta |
| 486 | coefficient_zero := hA0 |
| 487 | correction_zero := hDelta0 |
| 488 | radius := rho |
| 489 | radius_pos := hrho |
| 490 | backgroundRadius := delta |
| 491 | backgroundRadius_pos := hdelta |
| 492 | principalConstant := C |
| 493 | lowerConstant := C0 |
| 494 | mixed := fun x y hx hy => hmix x y (hx.trans hbase) (hy.trans hbase) |
| 495 | raw_agreement := fun g D B0 h hsymm hmetric hsmall => |
| 496 | hEq g D B0 h hsymm hmetric (hsmall.trans hbase) |
| 497 | correction_agreement := fun QB hQB background g D B B0 h hsymm hQ hmetric hsmall => |
| 498 | hDeltaEq QB hQB background g D B B0 h hsymm hQ hmetric (hsmall.trans hcorr) |
| 499 | }, hupp⟩ |
| 500 | |
| 501 | namespace NativeParameterData |
| 502 | |
| 503 | variable {d} {r : ℕ} (K : NativeParameterData d r) |
| 504 | |
| 505 | def coefficientMap : C(StateD, StateD →L[ℝ] StateD) := |
| 506 | ⟨K.coefficient, K.coefficient_smooth.continuous⟩ |
| 507 | |
| 508 | def lowerMap : C(StateD, StateD) := ⟨K.lower, K.lower_smooth.continuous⟩ |
| 509 | |
| 510 | def correctionMap : C(BackgroundD r × StateD, StateD) := |
| 511 | ⟨K.correction, K.correction_smooth.continuous⟩ |
| 512 | |
| 513 | def spatialResidual : SpatialResidual d.symmetricParameters := |
| 514 | cutoffSpatialResidual d.symmetricParameters K.radius_pos |
| 515 | (fun x => K.coefficient (shiftedBaseMultiplier d.symmetricParameters x) x + |
| 516 | K.lower (shiftedBaseMultiplier d.symmetricParameters x)) |
| 517 | K.principalConstant K.lowerConstant K.mixed |
| 518 | |
| 519 | def forcing {T : ℝ} (hT : 0 ≤ T) : |
| 520 | (BackgroundD r × StateD) × ForcingSpace d.SymmetricIndex T → ForcingSpace d.SymmetricIndex T := |
| 521 | parameterForcing d.symmetricParameters K.coefficientMap K.lowerMap K.correctionMap hT |
| 522 | |
| 523 | theorem forcingRadius_lt : 2 * K.spatialResidual.forcingRadius < K.radius := |
| 524 | cutoffSpatialResidual_forcingRadius d.symmetricParameters K.radius_pos |
| 525 | (fun x => K.coefficient (shiftedBaseMultiplier d.symmetricParameters x) x + |
| 526 | K.lower (shiftedBaseMultiplier d.symmetricParameters x)) |
| 527 | K.principalConstant K.lowerConstant K.mixed |
| 528 | |
| 529 | theorem spatialResidual_agreement |
| 530 | (g : RiemannianMetric n M) (D : LeviCivitaData g) (B0 : LeviCivitaData g0) |
| 531 | (h : SmoothTensor (n := n) (M := M)) |
| 532 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) |
| 533 | (hmetric : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 534 | g.inner x v w = g0.inner x v w + h x v w) |
| 535 | (hsmall : ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ K.radius) : |
| 536 | K.spatialResidual.toFun (d.smoothTensorCoordinates (2 * r + 2) h hsymm) = |
| 537 | d.residualCoordinates (2 * r) D B0 h hsymm := by |
| 538 | have hJ : shiftedBaseMultiplier d.symmetricParameters |
| 539 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm) = |
| 540 | d.smoothTensorCoordinates (2 * r + 1) h hsymm := by |
| 541 | simpa only [Nat.add_assoc] using |
| 542 | shiftedBase_smoothTensorCoordinates d (2 * r + 1) h hsymm |
| 543 | rw [spatialResidual, cutoffSpatialResidual_apply_of_small d.symmetricParameters K.radius_pos |
| 544 | (fun x => K.coefficient (shiftedBaseMultiplier d.symmetricParameters x) x + |
| 545 | K.lower (shiftedBaseMultiplier d.symmetricParameters x)) |
| 546 | K.principalConstant K.lowerConstant K.mixed (by rw [hJ]; exact hsmall)] |
| 547 | exact K.raw_agreement g D B0 h hsymm hmetric hsmall |
| 548 | |
| 549 | /-- The actual native maps have a smooth local branch on the one constructed interval. -/ |
| 550 | theorem exists_smooth_fixedPoint : |
| 551 | ∃ T : ℝ, ∃ hT : 0 < T, T ≤ 1 ∧ ∃ F : ForcingSpace d.SymmetricIndex T, |
| 552 | K.spatialResidual.forcingResidual hT.le F = F ∧ |
| 553 | ‖F‖ ≤ K.spatialResidual.forcingRadius / 3 ∧ ‖F‖ < K.spatialResidual.forcingRadius ∧ |
| 554 | ∃ u : BackgroundD r × StateD → ForcingSpace d.SymmetricIndex T, |
| 555 | u 0 = F ∧ ContDiffAt ℝ ∞ u 0 ∧ |
| 556 | (∀ᶠ q in 𝓝 0, K.forcing hT.le (q, u q) = u q) ∧ |
| 557 | (∀ᶠ q in 𝓝 (0, F), K.forcing hT.le q = q.2 ↔ u q.1 = q.2) ∧ |
| 558 | (∀ᶠ q in 𝓝 0, ‖u q‖ < K.spatialResidual.forcingRadius) := |
| 559 | exists_parameter_fixedPoint d.symmetricParameters K.coefficientMap K.lowerMap K.correctionMap |
| 560 | K.coefficient_smooth K.lower_smooth K.correction_smooth K.correction_zero |
| 561 | K.radius_pos K.principalConstant K.lowerConstant K.mixed |
| 562 | |
| 563 | end NativeParameterData |
| 564 | |
| 565 | end NativeBackground |
| 566 | |
| 567 | section Representatives |
| 568 | |
| 569 | variable {iota B : Type*} [Countable iota] [NormedAddCommGroup B] [NormedSpace ℝ B] |
| 570 | {T : ℝ} (lambda : iota → NNReal) |
| 571 | |
| 572 | theorem highShift_coe (hT : 0 ≤ T) (kappa : State iota) (F : ForcingSpace iota T) : |
| 573 | highShift lambda hT (kappa, F) =ᵐ[timeMeasure T] |
| 574 | fun t => kappa + shiftedHighOperator hT lambda F t := by |
| 575 | let K : ResponsePath iota T := ContinuousMap.const (Icc (0 : ℝ) T) kappa |
| 576 | filter_upwards [tracePathL2_ae_eq hT K, |
| 577 | Lp.coeFn_add (tracePathL2 hT K) (shiftedHighOperator hT lambda F), |
| 578 | ae_restrict_mem measurableSet_Ioc] with t hK hadd ht |
| 579 | change (tracePathL2 hT K + shiftedHighOperator hT lambda F) t = _ |
| 580 | rw [hadd, Pi.add_apply, hK ⟨ht.1.le, ht.2⟩] |
| 581 | rfl |
| 582 | |
| 583 | theorem parameterForcing_coe |
| 584 | (A : C(State iota, State iota →L[ℝ] State iota)) |
| 585 | (b : C(State iota, State iota)) (Delta : C(B × State iota, State iota)) |
| 586 | (hT : 0 ≤ T) (QB : B) (kappa : State iota) (F : ForcingSpace iota T) : |
| 587 | parameterForcing lambda A b Delta hT ((QB, kappa), F) =ᵐ[timeMeasure T] fun t => |
| 588 | A (shiftedBaseMultiplier lambda (kappa + shiftedHighOperator hT lambda F t)) |
| 589 | (kappa + shiftedHighOperator hT lambda F t) + |
| 590 | b (shiftedBaseMultiplier lambda (kappa + shiftedHighOperator hT lambda F t)) + |
| 591 | Delta (QB, shiftedBaseMultiplier lambda (kappa + shiftedHighOperator hT lambda F t)) - |
| 592 | highGenerator lambda kappa := by |
| 593 | let ev := ContinuousLinearMap.id ℝ (State iota →L[ℝ] State iota) |
| 594 | let Z := traceShift lambda hT (kappa, F) |
| 595 | let H := highShift lambda hT (kappa, F) |
| 596 | let AP := A.comp Z |
| 597 | let BP := b.comp Z |
| 598 | let DP := Delta.comp (backgroundTrace lambda hT ((QB, kappa), F)) |
| 599 | let KP : ResponsePath iota T := |
| 600 | ContinuousMap.const (Icc (0 : ℝ) T) (highGenerator lambda kappa) |
| 601 | let top := product hT ev AP H |
| 602 | let lower := tracePathL2 hT BP |
| 603 | let correction := tracePathL2 hT DP |
| 604 | let seed := tracePathL2 hT KP |
| 605 | filter_upwards [product_ae_eq_on_interval hT ev AP H, |
| 606 | tracePathL2_ae_eq hT BP, tracePathL2_ae_eq hT DP, tracePathL2_ae_eq hT KP, |
| 607 | Lp.coeFn_add top lower, Lp.coeFn_add (top + lower) correction, |
| 608 | Lp.coeFn_sub (top + lower + correction) seed, |
| 609 | highShift_coe lambda hT kappa F, intermediate_high_eq_trace hT lambda F, |
| 610 | ae_restrict_mem measurableSet_Ioc] |
| 611 | with t htop hlower hcorrection hseed hadd hadd' hsub hhigh htrace ht |
| 612 | have hmem : t ∈ Icc (0 : ℝ) T := ⟨ht.1.le, ht.2⟩ |
| 613 | have hZ : Z ⟨t, hmem⟩ = |
| 614 | shiftedBaseMultiplier lambda (kappa + shiftedHighOperator hT lambda F t) := by |
| 615 | change shiftedBaseMultiplier lambda kappa + shiftedTracePath hT lambda F ⟨t, hmem⟩ = _ |
| 616 | rw [map_add, htrace hmem] |
| 617 | change (top + lower + correction - seed) t = _ |
| 618 | rw [hsub, Pi.sub_apply, hadd', Pi.add_apply, hadd, Pi.add_apply, |
| 619 | htop hmem, hlower hmem, hcorrection hmem, hseed hmem] |
| 620 | simp only [AP, BP, DP, KP, ContinuousMap.comp_apply, ContinuousMap.const_apply, |
| 621 | backgroundTrace_apply] |
| 622 | change A (Z ⟨t, hmem⟩) (H t) + b (Z ⟨t, hmem⟩) + |
| 623 | Delta (QB, Z ⟨t, hmem⟩) - highGenerator lambda kappa = _ |
| 624 | rw [hZ, hhigh] |
| 625 | |
| 626 | end Representatives |
| 627 | |
| 628 | section NativeCombinedSource |
| 629 | |
| 630 | open TensorProbeNative TensorHilbertNative NativeChartScalarLocalization DeTurckNative |
| 631 | DeTurckJetCoordinatesNative DeTurckJetAffineNative DeTurckResidualNative |
| 632 | |
| 633 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 634 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 635 | [CompactSpace M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 636 | {g0 : RiemannianMetric n M} (d : Data g0) |
| 637 | |
| 638 | theorem smoothTensorCoordinates_add_sub (k : ℕ) |
| 639 | (h1 h2 h3 : SmoothTensor (n := n) (M := M)) |
| 640 | (hsymm1 : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h1 x v w = h1 x w v) |
| 641 | (hsymm2 : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h2 x v w = h2 x w v) |
| 642 | (hsymm3 : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h3 x v w = h3 x w v) |
| 643 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 644 | (h1 + h2 - h3) x v w = (h1 + h2 - h3) x w v) : |
| 645 | d.smoothTensorCoordinates k (h1 + h2 - h3) hsymm = |
| 646 | d.smoothTensorCoordinates k h1 hsymm1 + d.smoothTensorCoordinates k h2 hsymm2 - |
| 647 | d.smoothTensorCoordinates k h3 hsymm3 := by |
| 648 | have hinto : d.intoSymmetricValue (h1 + h2 - h3) hsymm = |
| 649 | d.intoSymmetricValue h1 hsymm1 + d.intoSymmetricValue h2 hsymm2 - |
| 650 | d.intoSymmetricValue h3 hsymm3 := by |
| 651 | apply Subtype.ext |
| 652 | change intoTensorL2 d.fields d.charts.measure (h1 + h2 - h3) = |
| 653 | intoTensorL2 d.fields d.charts.measure h1 + intoTensorL2 d.fields d.charts.measure h2 - |
| 654 | intoTensorL2 d.fields d.charts.measure h3 |
| 655 | rw [map_sub (intoTensorL2 d.fields d.charts.measure) (h1 + h2) h3, |
| 656 | map_add (intoTensorL2 d.fields d.charts.measure) h1 h2] |
| 657 | apply lp.ext |
| 658 | funext i |
| 659 | change scaleWeight d.symmetricParameters k i * |
| 660 | d.symmetricBasis.repr (d.intoSymmetricValue (h1 + h2 - h3) hsymm) i = |
| 661 | scaleWeight d.symmetricParameters k i * d.symmetricBasis.repr (d.intoSymmetricValue h1 hsymm1) i + |
| 662 | scaleWeight d.symmetricParameters k i * d.symmetricBasis.repr (d.intoSymmetricValue h2 hsymm2) i - |
| 663 | scaleWeight d.symmetricParameters k i * d.symmetricBasis.repr (d.intoSymmetricValue h3 hsymm3) i |
| 664 | rw [hinto, map_sub, map_add] |
| 665 | simp only [lp.coeFn_sub, lp.coeFn_add, Pi.sub_apply, Pi.add_apply] |
| 666 | ring |
| 667 | |
| 668 | /-- The generator remains fixed at g0 when the geometric background changes. -/ |
| 669 | theorem NativeParameterData.rawCorrection_agreement {r : ℕ} (K : NativeParameterData d r) |
| 670 | (QB : NativeProbeContinuous (M := M) (iota := Fin d.fieldCount) (2 * r + 2)) |
| 671 | (hQBsmall : ‖QB‖ < K.backgroundRadius) |
| 672 | (background g : RiemannianMetric n M) (D : LeviCivitaData g) |
| 673 | (B : LeviCivitaData background) (B0 : LeviCivitaData g0) |
| 674 | (h seed : SmoothTensor (n := n) (M := M)) |
| 675 | (hsymm : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), h x v w = h x w v) |
| 676 | (hseed : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), seed x v w = seed x w v) |
| 677 | (hQB : ∀ ab w (hw : w.length ≤ 2 * r + 2) x, |
| 678 | QB ab (wordIndex w hw) x = directionalWord d.fields w |
| 679 | (probeDifference d.fields background g0 ab) x) |
| 680 | (hmetric : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 681 | g.inner x v w = g0.inner x v w + h x v w) |
| 682 | (hsmall : ‖d.smoothTensorCoordinates (2 * r + 1) h hsymm‖ ≤ K.radius) : |
| 683 | K.coefficient (shiftedBaseMultiplier d.symmetricParameters |
| 684 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm)) |
| 685 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm) + |
| 686 | K.lower (shiftedBaseMultiplier d.symmetricParameters |
| 687 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm)) + |
| 688 | K.correction (QB, shiftedBaseMultiplier d.symmetricParameters |
| 689 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm)) - |
| 690 | highGenerator d.symmetricParameters (d.smoothTensorCoordinates (2 * r + 2) seed hseed) = |
| 691 | d.smoothTensorCoordinates (2 * r) |
| 692 | (smoothTensorLaplacian d.fields d.charts g0 h + smoothRicciDeTurckTensor D B - |
| 693 | smoothTensorLaplacian d.fields d.charts g0 seed) |
| 694 | (fun x v w => by |
| 695 | change smoothTensorLaplacian d.fields d.charts g0 h x v w + |
| 696 | smoothRicciDeTurckTensor D B x v w - smoothTensorLaplacian d.fields d.charts g0 seed x v w = |
| 697 | smoothTensorLaplacian d.fields d.charts g0 h x w v + |
| 698 | smoothRicciDeTurckTensor D B x w v - smoothTensorLaplacian d.fields d.charts g0 seed x w v |
| 699 | rw [smoothTensorLaplacian_symm d.fields d.charts g0 h hsymm x v w, |
| 700 | smoothRicciDeTurckTensor_symm D B x v w, |
| 701 | smoothTensorLaplacian_symm d.fields d.charts g0 seed hseed x v w]) := by |
| 702 | have hJ : shiftedBaseMultiplier d.symmetricParameters |
| 703 | (d.smoothTensorCoordinates (2 * r + 2) h hsymm) = |
| 704 | d.smoothTensorCoordinates (2 * r + 1) h hsymm := by |
| 705 | simpa only [Nat.add_assoc] using shiftedBase_smoothTensorCoordinates d (2 * r + 1) h hsymm |
| 706 | rw [K.raw_agreement g D B0 h hsymm hmetric hsmall, hJ, |
| 707 | K.correction_agreement QB hQBsmall background g D B B0 h hsymm hQB hmetric hsmall, |
| 708 | highGenerator_smoothTensorCoordinates d (2 * r) seed hseed] |
| 709 | let R0 := smoothResidualTensor d.fields d.charts D B0 h |
| 710 | let SD := smoothRicciDeTurckTensor D B - smoothRicciDeTurckTensor D B0 |
| 711 | let LS := smoothTensorLaplacian d.fields d.charts g0 seed |
| 712 | have hR0 := smoothResidualTensor_symm d.fields d.charts D B0 h hsymm |
| 713 | have hSD := backgroundDifferenceTensor_symm D B B0 |
| 714 | have hLS := smoothTensorLaplacian_symm d.fields d.charts g0 seed hseed |
| 715 | have hsum : ∀ (x : M) (v w : TangentSpace (𝓡 n) x), |
| 716 | (R0 + SD - LS) x v w = (R0 + SD - LS) x w v := by |
| 717 | intro x v w |
| 718 | change R0 x v w + SD x v w - LS x v w = R0 x w v + SD x w v - LS x w v |
| 719 | rw [hR0 x v w, hSD x v w, hLS x v w] |
| 720 | have hcoords := smoothTensorCoordinates_add_sub d (2 * r) R0 SD LS hR0 hSD hLS hsum |
| 721 | have htensor : R0 + SD - LS = smoothTensorLaplacian d.fields d.charts g0 h + |
| 722 | smoothRicciDeTurckTensor D B - smoothTensorLaplacian d.fields d.charts g0 seed := by |
| 723 | apply ContMDiffSection.ext |
| 724 | intro x |
| 725 | apply ContinuousLinearMap.ext |
| 726 | intro v |
| 727 | apply ContinuousLinearMap.ext |
| 728 | intro w |
| 729 | change smoothTensorLaplacian d.fields d.charts g0 h x v w + |
| 730 | smoothRicciDeTurckTensor D B0 x v w + |
| 731 | (smoothRicciDeTurckTensor D B x v w - smoothRicciDeTurckTensor D B0 x v w) - |
| 732 | smoothTensorLaplacian d.fields d.charts g0 seed x v w = |
| 733 | smoothTensorLaplacian d.fields d.charts g0 h x v w + |
| 734 | smoothRicciDeTurckTensor D B x v w - smoothTensorLaplacian d.fields d.charts g0 seed x v w |
| 735 | ring |
| 736 | simp only [htensor] at hcoords |
| 737 | simpa only [TensorHilbertNative.Data.residualCoordinates, R0, SD, LS] using hcoords.symm |
| 738 | |
| 739 | end NativeCombinedSource |
| 740 | |
| 741 | end PoincareMT.DeTurckParameterForcingNative |
| 742 | |
| 743 | end |