Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

chore(NavierStokes/Boundary): delete 1 file nothing imports #45
Merged
+0 −488 NavierStokes/BoundaryCoordinates.lean deleted
| @@ -1,488 +0,0 @@ | ||
| 1 | -import Mathlib.Analysis.Calculus.TangentCone.Prod | |
| 2 | -import NavierStokes.SimilarityCoordinates | |
| 3 | -import Mathlib.Data.Real.Sign | |
| 4 | -import Mathlib.Analysis.Calculus.ContDiff.Comp | |
| 5 | -import Mathlib.Topology.UniformSpace.LocallyUniformConvergence | |
| 6 | - | |
| 7 | -/-! | |
| 8 | -# Similarity coordinates at nonsingular boundary points | |
| 9 | - | |
| 10 | -The parameter `a` is `2h`, so `axialExponent a = 1/2 - h`. | |
| 11 | -We extend the actual positive-time coordinate to `τ = 0`, away from `z = 0`. | |
| 12 | -The smooth continuation is obtained from the inverse function theorem for | |
| 13 | -`(q,z) ↦ (q - z² q^a,z)`; it is not assumed as input. | |
| 14 | --/ | |
| 15 | - | |
| 16 | -noncomputable section | |
| 17 | - | |
| 18 | -open Set Filter | |
| 19 | -open scoped Topology ContDiff | |
| 20 | - | |
| 21 | -namespace NavierStokes.BoundaryCoordinates | |
| 22 | - | |
| 23 | -open SimilarityCoordinates | |
| 24 | - | |
| 25 | -def axialExponent (a : ℝ) : ℝ := (1 - a) / 2 | |
| 26 | - | |
| 27 | -def boundaryQ (a z : ℝ) : ℝ := |z| ^ (axialExponent a)⁻¹ | |
| 28 | - | |
| 29 | -/-- Values at negative `τ` are merely a totalization. Smoothness is asserted | |
| 30 | -relative to `domain`; a separate theorem constructs an ambient continuation. -/ | |
| 31 | -def extendedQ (a : ℝ) (p : ℝ × ℝ) : ℝ := | |
| 32 | - if 0 < p.1 then coordinateQ a p else boundaryQ a p.2 | |
| 33 | - | |
| 34 | -def extendedEta (a : ℝ) (p : ℝ × ℝ) : ℝ := | |
| 35 | - p.2 / extendedQ a p ^ axialExponent a | |
| 36 | - | |
| 37 | -def halfPlane : Set (ℝ × ℝ) := Ici 0 ×ˢ univ | |
| 38 | - | |
| 39 | -def domain : Set (ℝ × ℝ) := halfPlane ∩ {(0, 0)}ᶜ | |
| 40 | - | |
| 41 | -def positiveDomain : Set (ℝ × ℝ) := Ioi 0 ×ˢ univ | |
| 42 | - | |
| 43 | -theorem axialExponent_pos {a : ℝ} (ha1 : a < 1) : 0 < axialExponent a := | |
| 44 | - div_pos (sub_pos.mpr ha1) (by norm_num) | |
| 45 | - | |
| 46 | -theorem boundaryQ_pos {a z : ℝ} (hz : z ≠ 0) : 0 < boundaryQ a z := | |
| 47 | - Real.rpow_pos_of_pos (abs_pos.mpr hz) _ | |
| 48 | - | |
| 49 | -theorem boundaryQ_pow {a z : ℝ} (ha1 : a < 1) : | |
| 50 | - boundaryQ a z ^ axialExponent a = |z| := by | |
| 51 | - exact Real.rpow_inv_rpow (abs_nonneg z) (axialExponent_pos ha1).ne' | |
| 52 | - | |
| 53 | -theorem boundaryQ_pow_two {a z : ℝ} (ha1 : a < 1) : | |
| 54 | - boundaryQ a z ^ (1 - a) = z ^ 2 := by | |
| 55 | - have he : 1 - a = axialExponent a * (2 : ℕ) := by dsimp [axialExponent]; ring | |
| 56 | - have hq : 0 ≤ boundaryQ a z := Real.rpow_nonneg (abs_nonneg z) _ | |
| 57 | - rw [he, Real.rpow_mul_natCast hq, | |
| 58 | - boundaryQ_pow ha1, sq_abs] | |
| 59 | - | |
| 60 | -theorem boundaryQ_forward {a z : ℝ} (ha1 : a < 1) (hz : z ≠ 0) : | |
| 61 | - forwardScalar a z (boundaryQ a z) = 0 := by | |
| 62 | - rw [forwardScalar_factor (boundaryQ_pos hz), boundaryQ_pow_two ha1, sub_self, mul_zero] | |
| 63 | - | |
| 64 | -/-- The inverse-function determinant at the boundary is exactly `1 - a`. -/ | |
| 65 | -theorem boundaryQ_slope {a z : ℝ} (ha1 : a < 1) (hz : z ≠ 0) : | |
| 66 | - scalarSlope a z (boundaryQ a z) = 1 - a := by | |
| 67 | - have hq := boundaryQ_pos (a := a) hz | |
| 68 | - have he := boundaryQ_forward ha1 hz | |
| 69 | - have hprod : z ^ 2 * boundaryQ a z ^ a = boundaryQ a z := by | |
| 70 | - dsimp [forwardScalar] at he | |
| 71 | - linarith | |
| 72 | - unfold scalarSlope | |
| 73 | - rw [Real.rpow_sub_one hq.ne'] | |
| 74 | - calc | |
| 75 | - 1 - z ^ 2 * a * (boundaryQ a z ^ a / boundaryQ a z) = | |
| 76 | - 1 - a * ((z ^ 2 * boundaryQ a z ^ a) / boundaryQ a z) := by ring | |
| 77 | - _ = 1 - a := by rw [hprod, div_self hq.ne', mul_one] | |
| 78 | - | |
| 79 | -theorem positive_zero_solution_unique {a z q : ℝ} (ha1 : a < 1) | |
| 80 | - (hz : z ≠ 0) (hq : 0 < q) (he : forwardScalar a z q = 0) : | |
| 81 | - q = boundaryQ a z := by | |
| 82 | - have hpow : q ^ (1 - a) = z ^ 2 := by | |
| 83 | - rw [forwardScalar_factor hq] at he | |
| 84 | - exact sub_eq_zero.mp ((mul_eq_zero.mp he).resolve_left | |
| 85 | - (Real.rpow_pos_of_pos hq a).ne') | |
| 86 | - apply (Real.rpow_left_inj hq.le (boundaryQ_pos (a := a) hz).le | |
| 87 | - (sub_pos.mpr ha1).ne').mp | |
| 88 | - rw [hpow, boundaryQ_pow_two ha1] | |
| 89 | - | |
| 90 | -@[simp] theorem extendedQ_boundary (a z : ℝ) : | |
| 91 | - extendedQ a (0, z) = boundaryQ a z := by simp [extendedQ] | |
| 92 | - | |
| 93 | -theorem extendedQ_positive {a : ℝ} {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 94 | - extendedQ a p = coordinateQ a p := ite_eq_left hp | |
| 95 | - | |
| 96 | -theorem extendedEta_positive {a : ℝ} {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 97 | - extendedEta a p = coordinateEta a p := by | |
| 98 | - rw [extendedEta, extendedQ_positive hp] | |
| 99 | - rfl | |
| 100 | - | |
| 101 | -theorem extendedEta_boundary {a z : ℝ} (ha1 : a < 1) : | |
| 102 | - extendedEta a (0, z) = z / |z| := by | |
| 103 | - rw [extendedEta, extendedQ_boundary, boundaryQ_pow ha1] | |
| 104 | - | |
| 105 | -theorem extendedEta_boundary_sign {a z : ℝ} (ha1 : a < 1) : | |
| 106 | - extendedEta a (0, z) = Real.sign z := by | |
| 107 | - rw [extendedEta_boundary ha1] | |
| 108 | - rcases lt_trichotomy z 0 with hz | rfl | hz | |
| 109 | - · rw [abs_of_neg hz, Real.sign_of_neg hz, div_neg, div_self hz.ne] | |
| 110 | - · simp | |
| 111 | - · rw [abs_of_pos hz, Real.sign_of_pos hz, div_self hz.ne'] | |
| 112 | - | |
| 113 | -theorem boundary_mem_domain {z : ℝ} (hz : z ≠ 0) : (0, z) ∈ domain := by | |
| 114 | - exact ⟨⟨mem_Ici.mpr le_rfl, mem_univ z⟩, fun he => hz (congrArg Prod.snd he)⟩ | |
| 115 | - | |
| 116 | -theorem uniqueDiffOn_domain : UniqueDiffOn ℝ domain := by | |
| 117 | - exact ((uniqueDiffOn_Ici 0).prod uniqueDiffOn_univ).inter isClosed_singleton.isOpen_compl | |
| 118 | - | |
| 119 | -/-- The inverse branch exists and is smooth on one open neighborhood crossing | |
| 120 | -the boundary. Its equality with the constructed coordinate on `τ ≥ 0` follows | |
| 121 | -from positive-root uniqueness, including the separately proved zero-time case. -/ | |
| 122 | -theorem exists_smooth_boundary_q {a z : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 123 | - (hz : z ≠ 0) : | |
| 124 | - ∃ U : Set (ℝ × ℝ), IsOpen U ∧ (0, z) ∈ U ∧ | |
| 125 | - ∃ Q : (ℝ × ℝ) → ℝ, | |
| 126 | - ContDiffOn ℝ ∞ Q U ∧ | |
| 127 | - (∀ p ∈ U, 0 < Q p) ∧ | |
| 128 | - (∀ p ∈ U, forwardScalar a p.2 (Q p) = p.1) ∧ | |
| 129 | - EqOn Q (extendedQ a) (U ∩ halfPlane) := by | |
| 130 | - let p₀ : ℝ × ℝ := (boundaryQ a z, z) | |
| 131 | - have hq : 0 < p₀.1 := boundaryQ_pos hz | |
| 132 | - have hm : 0 < scalarSlope a p₀.2 p₀.1 := by | |
| 133 | - simpa only [p₀, boundaryQ_slope ha1 hz] using sub_pos.mpr ha1 | |
| 134 | - have hsm := forwardMap_smooth (a := a) hq.ne' | |
| 135 | - have hd := forwardMap_hasFDerivAt (a := a) hq.ne' hm.ne' | |
| 136 | - have hn : (∞ : WithTop ℕ∞) ≠ 0 := by simp | |
| 137 | - let e := hsm.toOpenPartialHomeomorph (forwardMap a) hd hn | |
| 138 | - have hep : p₀ ∈ e.source := hsm.mem_toOpenPartialHomeomorph_source hd hn | |
| 139 | - have heval : e p₀ = (0, z) := by | |
| 140 | - change (forwardScalar a z (boundaryQ a z), z) = (0, z) | |
| 141 | - rw [boundaryQ_forward ha1 hz] | |
| 142 | - have het : (0, z) ∈ e.target := heval ▸ e.map_source hep | |
| 143 | - have hei : e.symm (0, z) = p₀ := by rw [← heval]; exact e.left_inv hep | |
| 144 | - have hc : ContinuousAt e.symm (0, z) := e.continuousAt_symm het | |
| 145 | - have hqev : ∀ᶠ p in 𝓝 (0, z), 0 < (e.symm p).1 := by | |
| 146 | - apply hc.fst.eventually | |
| 147 | - change Ioi 0 ∈ 𝓝 ((e.symm (0, z)).1) | |
| 148 | - rw [hei] | |
| 149 | - exact Ioi_mem_nhds hq | |
| 150 | - have hsc : ContinuousAt (fun p : ℝ × ℝ => scalarSlope a p.2 p.1) p₀ := by | |
| 151 | - exact (contDiffAt_const.sub | |
| 152 | - (((contDiffAt_snd.pow 2).mul contDiffAt_const).mul | |
| 153 | - (contDiffAt_fst.rpow_const_of_ne hq.ne')) : | |
| 154 | - ContDiffAt ℝ ∞ _ p₀).continuousAt | |
| 155 | - have hmev : ∀ᶠ p in 𝓝 (0, z), 0 < scalarSlope a (e.symm p).2 (e.symm p).1 := by | |
| 156 | - have hsc' : ContinuousAt (fun p : ℝ × ℝ => scalarSlope a p.2 p.1) | |
| 157 | - (e.symm (0, z)) := by rwa [hei] | |
| 158 | - have hc' := hsc'.comp hc | |
| 159 | - apply hc'.eventually | |
| 160 | - change Ioi 0 ∈ 𝓝 (scalarSlope a (e.symm (0, z)).2 (e.symm (0, z)).1) | |
| 161 | - rw [hei] | |
| 162 | - exact Ioi_mem_nhds hm | |
| 163 | - have htev : ∀ᶠ p in 𝓝 (0, z), p ∈ e.target := e.open_target.mem_nhds het | |
| 164 | - obtain ⟨U, hUsub, hUopen, hUbase⟩ := mem_nhds_iff.mp (htev.and (hqev.and hmev)) | |
| 165 | - refine ⟨U, hUopen, hUbase, fun p => (e.symm p).1, ?_, ?_, ?_, ?_⟩ | |
| 166 | - · intro p hp | |
| 167 | - have hps := hUsub hp | |
| 168 | - have hs : ContDiffAt ℝ ∞ e.symm p := by | |
| 169 | - apply e.contDiffAt_symm hps.1 | |
| 170 | - (forwardMap_hasFDerivAt hps.2.1.ne' hps.2.2.ne') | |
| 171 | - exact forwardMap_smooth hps.2.1.ne' | |
| 172 | - exact hs.fst.contDiffWithinAt | |
| 173 | - · intro p hp | |
| 174 | - exact (hUsub hp).2.1 | |
| 175 | - · intro p hp | |
| 176 | - have hi := e.right_inv (hUsub hp).1 | |
| 177 | - have hi₂ := congrArg Prod.snd hi | |
| 178 | - change (e.symm p).2 = p.2 at hi₂ | |
| 179 | - have hi₁ := congrArg Prod.fst hi | |
| 180 | - change forwardScalar a (e.symm p).2 (e.symm p).1 = p.1 at hi₁ | |
| 181 | - rwa [hi₂] at hi₁ | |
| 182 | - · intro p hp | |
| 183 | - have hps := hUsub hp.1 | |
| 184 | - have hi := e.right_inv hps.1 | |
| 185 | - have hi₂ := congrArg Prod.snd hi | |
| 186 | - change (e.symm p).2 = p.2 at hi₂ | |
| 187 | - have hi₁ := congrArg Prod.fst hi | |
| 188 | - change forwardScalar a (e.symm p).2 (e.symm p).1 = p.1 at hi₁ | |
| 189 | - rw [hi₂] at hi₁ | |
| 190 | - by_cases ht : 0 < p.1 | |
| 191 | - · rw [extendedQ_positive ht] | |
| 192 | - exact eq_coordinateQ ha ha1 ht hps.2.1 hi₁ | |
| 193 | - · have ht₀ : p.1 = 0 := le_antisymm (le_of_not_gt ht) hp.2.1 | |
| 194 | - have hz' : p.2 ≠ 0 := by | |
| 195 | - intro hz₀ | |
| 196 | - have he : forwardScalar a 0 (e.symm p).1 = 0 := by | |
| 197 | - simpa only [hz₀, ht₀] using hi₁ | |
| 198 | - have he' : (e.symm p).1 = 0 := by simpa [forwardScalar] using he | |
| 199 | - exact hps.2.1.ne' he' | |
| 200 | - rw [extendedQ, ite_eq_right ht] | |
| 201 | - exact positive_zero_solution_unique ha1 hz' hps.2.1 (by simpa only [ht₀] using hi₁) | |
| 202 | - | |
| 203 | -/-- A common smooth ambient continuation of both coordinates. The open set | |
| 204 | -contains points with both signs of `τ`, while agreement is required only on | |
| 205 | -the physical half-plane. -/ | |
| 206 | -theorem exists_smooth_boundary_coordinates {a z : ℝ} | |
| 207 | - (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) : | |
| 208 | - ∃ U : Set (ℝ × ℝ), IsOpen U ∧ (0, z) ∈ U ∧ | |
| 209 | - ∃ Q E : (ℝ × ℝ) → ℝ, | |
| 210 | - ContDiffOn ℝ ∞ Q U ∧ ContDiffOn ℝ ∞ E U ∧ | |
| 211 | - (∀ p ∈ U, 0 < Q p) ∧ | |
| 212 | - EqOn Q (extendedQ a) (U ∩ halfPlane) ∧ | |
| 213 | - EqOn E (extendedEta a) (U ∩ halfPlane) := by | |
| 214 | - obtain ⟨U, hUo, hUb, Q, hQs, hQp, _, hQe⟩ := exists_smooth_boundary_q ha ha1 hz | |
| 215 | - let E : (ℝ × ℝ) → ℝ := fun p => p.2 / Q p ^ axialExponent a | |
| 216 | - refine ⟨U, hUo, hUb, Q, E, hQs, ?_, hQp, hQe, ?_⟩ | |
| 217 | - · exact contDiffOn_snd.div (hQs.rpow_const_of_ne (fun p hp => (hQp p hp).ne')) | |
| 218 | - (fun p hp => (Real.rpow_pos_of_pos (hQp p hp) _).ne') | |
| 219 | - · intro p hp | |
| 220 | - dsimp [E, extendedEta] | |
| 221 | - rw [hQe hp] | |
| 222 | - | |
| 223 | -theorem extendedQ_germ_positive {a : ℝ} {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 224 | - extendedQ a =ᶠ[𝓝 p] coordinateQ a := by | |
| 225 | - filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hp)] with q hq | |
| 226 | - exact extendedQ_positive hq | |
| 227 | - | |
| 228 | -theorem extendedEta_germ_positive {a : ℝ} {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 229 | - extendedEta a =ᶠ[𝓝 p] coordinateEta a := by | |
| 230 | - filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hp)] with q hq | |
| 231 | - exact extendedEta_positive hq | |
| 232 | - | |
| 233 | -theorem extendedQ_smooth {a : ℝ} (ha : 0 < a) (ha1 : a < 1) : | |
| 234 | - ContDiffOn ℝ ∞ (extendedQ a) domain := by | |
| 235 | - intro p hp | |
| 236 | - rcases lt_or_eq_of_le (show (0 : ℝ) ≤ p.1 from hp.1.1) with ht | ht | |
| 237 | - · exact ((coordinateQ_smooth ha ha1 ht).congr_of_eventuallyEq | |
| 238 | - (extendedQ_germ_positive ht)).contDiffWithinAt | |
| 239 | - · have hp₀ : p = (0, p.2) := by ext <;> simp [← ht] | |
| 240 | - have hz : p.2 ≠ 0 := by | |
| 241 | - intro hz | |
| 242 | - exact hp.2 (by simpa [hz] using hp₀) | |
| 243 | - obtain ⟨U, hUo, hUb, Q, hQs, _, _, hQe⟩ := exists_smooth_boundary_q ha ha1 hz | |
| 244 | - have hUp : p ∈ U := hp₀.symm ▸ hUb | |
| 245 | - have hg : extendedQ a =ᶠ[𝓝[domain] p] Q := by | |
| 246 | - filter_upwards [mem_nhdsWithin_of_mem_nhds (hUo.mem_nhds hUp), | |
| 247 | - self_mem_nhdsWithin] with y hyU hyd | |
| 248 | - exact (hQe ⟨hyU, hyd.1⟩).symm | |
| 249 | - exact ((hQs p hUp).contDiffAt (hUo.mem_nhds hUp)).contDiffWithinAt.congr_of_eventuallyEq | |
| 250 | - hg (hQe ⟨hUp, hp.1⟩).symm | |
| 251 | - | |
| 252 | -theorem extendedQ_pos {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 253 | - {p : ℝ × ℝ} (hp : p ∈ domain) : 0 < extendedQ a p := by | |
| 254 | - rcases lt_or_eq_of_le (show (0 : ℝ) ≤ p.1 from hp.1.1) with ht | ht | |
| 255 | - · rw [extendedQ_positive ht] | |
| 256 | - exact (coordinateQ_spec ha ha1 ht).1 | |
| 257 | - · have hz : p.2 ≠ 0 := by | |
| 258 | - intro hz | |
| 259 | - apply hp.2 | |
| 260 | - ext <;> simp [hz, ← ht] | |
| 261 | - simp only [extendedQ, ← ht, lt_self_iff_false, ↓reduceIte] | |
| 262 | - exact boundaryQ_pos hz | |
| 263 | - | |
| 264 | -theorem extendedEta_smooth {a : ℝ} (ha : 0 < a) (ha1 : a < 1) : | |
| 265 | - ContDiffOn ℝ ∞ (extendedEta a) domain := by | |
| 266 | - exact contDiffOn_snd.div | |
| 267 | - ((extendedQ_smooth ha ha1).rpow_const_of_ne | |
| 268 | - (fun _ hp => (extendedQ_pos ha ha1 hp).ne')) | |
| 269 | - (fun _ hp => (Real.rpow_pos_of_pos (extendedQ_pos ha ha1 hp) _).ne') | |
| 270 | - | |
| 271 | -theorem extendedEta_boundary_sq {a z : ℝ} (ha1 : a < 1) (hz : z ≠ 0) : | |
| 272 | - extendedEta a (0, z) ^ 2 = 1 := by | |
| 273 | - rw [extendedEta_boundary ha1, div_pow, sq_abs, div_self (pow_ne_zero 2 hz)] | |
| 274 | - | |
| 275 | -/-- The true Jacobian denominator is `L = 1 - a η²`, up to and including | |
| 276 | -the nonsingular boundary. -/ | |
| 277 | -theorem extended_slope_eq_L {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 278 | - {p : ℝ × ℝ} (hp : p ∈ domain) : | |
| 279 | - scalarSlope a p.2 (extendedQ a p) = 1 - a * extendedEta a p ^ 2 := by | |
| 280 | - rcases lt_or_eq_of_le (show (0 : ℝ) ≤ p.1 from hp.1.1) with ht | ht | |
| 281 | - · rw [extendedQ_positive ht, extendedEta_positive ht] | |
| 282 | - exact scalarSlope_eq_L ha ha1 ht | |
| 283 | - · have hp₀ : p = (0, p.2) := by ext <;> simp [← ht] | |
| 284 | - have hz : p.2 ≠ 0 := fun hz => hp.2 (by simpa [hz] using hp₀) | |
| 285 | - conv_lhs => rw [hp₀] | |
| 286 | - conv_rhs => rw [hp₀] | |
| 287 | - rw [extendedQ_boundary, boundaryQ_slope ha1 hz, extendedEta_boundary_sq ha1 hz, | |
| 288 | - mul_one] | |
| 289 | - | |
| 290 | -theorem extended_L_lowerBound {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 291 | - {p : ℝ × ℝ} (hp : p ∈ domain) : | |
| 292 | - 1 - a ≤ 1 - a * extendedEta a p ^ 2 := by | |
| 293 | - rcases lt_or_eq_of_le (show (0 : ℝ) ≤ p.1 from hp.1.1) with ht | ht | |
| 294 | - · rw [extendedEta_positive ht] | |
| 295 | - have hs := coordinateEta_sq_lt_one ha ha1 ht | |
| 296 | - nlinarith [mul_nonneg ha.le (sub_nonneg.mpr hs.le)] | |
| 297 | - · have hp₀ : p = (0, p.2) := by ext <;> simp [← ht] | |
| 298 | - have hz : p.2 ≠ 0 := fun hz => hp.2 (by simpa [hz] using hp₀) | |
| 299 | - rw [hp₀, extendedEta_boundary_sq ha1 hz, mul_one] | |
| 300 | - | |
| 301 | -theorem extended_L_pos {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 302 | - {p : ℝ × ℝ} (hp : p ∈ domain) : 0 < 1 - a * extendedEta a p ^ 2 := | |
| 303 | - lt_of_lt_of_le (sub_pos.mpr ha1) (extended_L_lowerBound ha ha1 hp) | |
| 304 | - | |
| 305 | -theorem positive_mem_domain {p : ℝ × ℝ} (hp : 0 < p.1) : p ∈ domain := by | |
| 306 | - refine ⟨⟨hp.le, mem_univ _⟩, ?_⟩ | |
| 307 | - intro he | |
| 308 | - exact hp.ne' (congrArg Prod.fst he) | |
| 309 | - | |
| 310 | -theorem positiveDomain_subset : positiveDomain ⊆ domain := | |
| 311 | - fun _ hp => positive_mem_domain hp.1 | |
| 312 | - | |
| 313 | -/-- The approach filter in the joint jet limits is nonempty. -/ | |
| 314 | -theorem positive_boundary_filter_neBot (z : ℝ) : | |
| 315 | - NeBot (𝓝[positiveDomain] (0, z)) := by | |
| 316 | - rw [positiveDomain, nhdsWithin_prod_eq, nhdsWithin_univ] | |
| 317 | - infer_instance | |
| 318 | - | |
| 319 | -private theorem iteratedFDeriv_eq_of_germ {f g : (ℝ × ℝ) → ℝ} | |
| 320 | - {p : ℝ × ℝ} (hg : f =ᶠ[𝓝 p] g) (n : ℕ) : | |
| 321 | - iteratedFDeriv ℝ n f p = iteratedFDeriv ℝ n g p := by | |
| 322 | - have hg' : f =ᶠ[𝓝[univ] p] g := by simpa only [nhdsWithin_univ] using hg | |
| 323 | - simpa only [iteratedFDerivWithin_univ] using | |
| 324 | - hg'.iteratedFDerivWithin_eq hg.eq_of_nhds n | |
| 325 | - | |
| 326 | -private theorem nat_order_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := by | |
| 327 | - exact_mod_cast (le_top : (n : ℕ∞) ≤ ⊤) | |
| 328 | - | |
| 329 | -theorem extendedQ_jet_eq_positive {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 330 | - (n : ℕ) {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 331 | - iteratedFDerivWithin ℝ n (extendedQ a) domain p = | |
| 332 | - iteratedFDeriv ℝ n (coordinateQ a) p := by | |
| 333 | - have hs := (coordinateQ_smooth ha ha1 hp).congr_of_eventuallyEq | |
| 334 | - (extendedQ_germ_positive hp) | |
| 335 | - rw [iteratedFDerivWithin_eq_iteratedFDeriv uniqueDiffOn_domain | |
| 336 | - (hs.of_le (nat_order_le_infty n)) (positive_mem_domain hp)] | |
| 337 | - exact iteratedFDeriv_eq_of_germ (extendedQ_germ_positive hp) n | |
| 338 | - | |
| 339 | -theorem extendedEta_jet_eq_positive {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 340 | - (n : ℕ) {p : ℝ × ℝ} (hp : 0 < p.1) : | |
| 341 | - iteratedFDerivWithin ℝ n (extendedEta a) domain p = | |
| 342 | - iteratedFDeriv ℝ n (coordinateEta a) p := by | |
| 343 | - have hs := (coordinateEta_smooth ha ha1 hp).congr_of_eventuallyEq | |
| 344 | - (extendedEta_germ_positive hp) | |
| 345 | - rw [iteratedFDerivWithin_eq_iteratedFDeriv uniqueDiffOn_domain | |
| 346 | - (hs.of_le (nat_order_le_infty n)) (positive_mem_domain hp)] | |
| 347 | - exact iteratedFDeriv_eq_of_germ (extendedEta_germ_positive hp) n | |
| 348 | - | |
| 349 | -theorem extendedQ_jets_continuous {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 350 | - (n : ℕ) : ContinuousOn (iteratedFDerivWithin ℝ n (extendedQ a) domain) domain := by | |
| 351 | - intro p hp | |
| 352 | - exact ((extendedQ_smooth ha ha1 p hp).iteratedFDerivWithin_right | |
| 353 | - (m := 0) uniqueDiffOn_domain (by simp) hp).continuousWithinAt | |
| 354 | - | |
| 355 | -theorem extendedEta_jets_continuous {a : ℝ} (ha : 0 < a) (ha1 : a < 1) | |
| 356 | - (n : ℕ) : ContinuousOn (iteratedFDerivWithin ℝ n (extendedEta a) domain) domain := by | |
| 357 | - intro p hp | |
| 358 | - exact ((extendedEta_smooth ha ha1 p hp).iteratedFDerivWithin_right | |
| 359 | - (m := 0) uniqueDiffOn_domain (by simp) hp).continuousWithinAt | |
| 360 | - | |
| 361 | -/-- Every actual full derivative tensor of the constructed positive-time `q` | |
| 362 | -has a joint one-sided limit. This allows `z` and `τ` to approach together. -/ | |
| 363 | -theorem coordinateQ_jets_tendsto {a z : ℝ} | |
| 364 | - (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) (n : ℕ) : | |
| 365 | - Tendsto (iteratedFDeriv ℝ n (coordinateQ a)) (𝓝[positiveDomain] (0, z)) | |
| 366 | - (𝓝 (iteratedFDerivWithin ℝ n (extendedQ a) domain (0, z))) := by | |
| 367 | - have hc := (extendedQ_jets_continuous ha ha1 n (0, z) (boundary_mem_domain hz)).mono | |
| 368 | - positiveDomain_subset | |
| 369 | - apply hc.congr' | |
| 370 | - filter_upwards [self_mem_nhdsWithin] with p hp | |
| 371 | - exact extendedQ_jet_eq_positive ha ha1 n hp.1 | |
| 372 | - | |
| 373 | -/-- The corresponding joint one-sided limits of all actual `η` tensors. -/ | |
| 374 | -theorem coordinateEta_jets_tendsto {a z : ℝ} | |
| 375 | - (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) (n : ℕ) : | |
| 376 | - Tendsto (iteratedFDeriv ℝ n (coordinateEta a)) (𝓝[positiveDomain] (0, z)) | |
| 377 | - (𝓝 (iteratedFDerivWithin ℝ n (extendedEta a) domain (0, z))) := by | |
| 378 | - have hc := (extendedEta_jets_continuous ha ha1 n (0, z) (boundary_mem_domain hz)).mono | |
| 379 | - positiveDomain_subset | |
| 380 | - apply hc.congr' | |
| 381 | - filter_upwards [self_mem_nhdsWithin] with p hp | |
| 382 | - exact extendedEta_jet_eq_positive ha ha1 n hp.1 | |
| 383 | - | |
| 384 | -/-- Boundary tensor values vary continuously with the nonsingular axial point. -/ | |
| 385 | -theorem boundaryQ_jets_continuous {a : ℝ} (ha : 0 < a) (ha1 : a < 1) (n : ℕ) : | |
| 386 | - ContinuousOn (fun z : ℝ => iteratedFDerivWithin ℝ n (extendedQ a) domain (0, z)) | |
| 387 | - {0}ᶜ := by | |
| 388 | - exact (extendedQ_jets_continuous ha ha1 n).comp | |
| 389 | - (continuous_const.prodMk continuous_id).continuousOn | |
| 390 | - (fun z hz => boundary_mem_domain hz) | |
| 391 | - | |
| 392 | -theorem boundaryEta_jets_continuous {a : ℝ} (ha : 0 < a) (ha1 : a < 1) (n : ℕ) : | |
| 393 | - ContinuousOn (fun z : ℝ => iteratedFDerivWithin ℝ n (extendedEta a) domain (0, z)) | |
| 394 | - {0}ᶜ := by | |
| 395 | - exact (extendedEta_jets_continuous ha ha1 n).comp | |
| 396 | - (continuous_const.prodMk continuous_id).continuousOn | |
| 397 | - (fun z hz => boundary_mem_domain hz) | |
| 398 | - | |
| 399 | -theorem coordinateQ_tendsto_boundary {a z : ℝ} | |
| 400 | - (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) : | |
| 401 | - Tendsto (coordinateQ a) (𝓝[positiveDomain] (0, z)) (𝓝 (boundaryQ a z)) := by | |
| 402 | - have hc := ((extendedQ_smooth ha ha1).continuousOn (0, z) (boundary_mem_domain hz)).mono | |
| 403 | - positiveDomain_subset | |
| 404 | - change Tendsto (extendedQ a) _ (𝓝 (extendedQ a (0, z))) at hc | |
| 405 | - rw [extendedQ_boundary] at hc | |
| 406 | - apply hc.congr' | |
| 407 | - filter_upwards [self_mem_nhdsWithin] with p hp | |
| 408 | - exact extendedQ_positive hp.1 | |
| 409 | - | |
| 410 | -theorem coordinateEta_tendsto_boundary {a z : ℝ} | |
| 411 | - (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) : | |
| 412 | - Tendsto (coordinateEta a) (𝓝[positiveDomain] (0, z)) (𝓝 (Real.sign z)) := by | |
| 413 | - have hc := ((extendedEta_smooth ha ha1).continuousOn (0, z) (boundary_mem_domain hz)).mono | |
| 414 | - positiveDomain_subset | |
| 415 | - change Tendsto (extendedEta a) _ (𝓝 (extendedEta a (0, z))) at hc | |
| 416 | - rw [extendedEta_boundary_sign ha1] at hc | |
| 417 | - apply hc.congr' | |
| 418 | - filter_upwards [self_mem_nhdsWithin] with p hp | |
| 419 | - exact extendedEta_positive hp.1 | |
| 420 | - | |
| 421 | -/-- The actual derivative tensors converge locally uniformly in `z ≠ 0`. | |
| 422 | -This follows from the joint limit and continuity of the boundary tensor, | |
| 423 | -rather than from pointwise convergence alone. -/ | |
| 424 | -theorem coordinateQ_jets_locallyUniform {a : ℝ} | |
| 425 | - (ha : 0 < a) (ha1 : a < 1) (n : ℕ) : | |
| 426 | - TendstoLocallyUniformlyOn | |
| 427 | - (fun τ z => iteratedFDeriv ℝ n (coordinateQ a) (τ, z)) | |
| 428 | - (fun z => iteratedFDerivWithin ℝ n (extendedQ a) domain (0, z)) | |
| 429 | - (𝓝[>] 0) {0}ᶜ := by | |
| 430 | - apply isClosed_singleton.isOpen_compl.tendstoLocallyUniformlyOn_iff_forall_tendsto.mpr | |
| 431 | - intro z hz | |
| 432 | - have hl := coordinateQ_jets_tendsto ha ha1 hz n | |
| 433 | - rw [positiveDomain, nhdsWithin_prod_eq, nhdsWithin_univ] at hl | |
| 434 | - have hc := ((boundaryQ_jets_continuous ha ha1 n z hz).continuousAt | |
| 435 | - (isClosed_singleton.isOpen_compl.mem_nhds hz)).tendsto.comp | |
| 436 | - (tendsto_snd : Tendsto (Prod.snd : ℝ × ℝ → ℝ) ((𝓝[>] 0) ×ˢ 𝓝 z) (𝓝 z)) | |
| 437 | - exact (hc.prodMk_nhds hl).mono_right (nhds_le_uniformity _) | |
| 438 | - | |
| 439 | -theorem coordinateEta_jets_locallyUniform {a : ℝ} | |
| 440 | - (ha : 0 < a) (ha1 : a < 1) (n : ℕ) : | |
| 441 | - TendstoLocallyUniformlyOn | |
| 442 | - (fun τ z => iteratedFDeriv ℝ n (coordinateEta a) (τ, z)) | |
| 443 | - (fun z => iteratedFDerivWithin ℝ n (extendedEta a) domain (0, z)) | |
| 444 | - (𝓝[>] 0) {0}ᶜ := by | |
| 445 | - apply isClosed_singleton.isOpen_compl.tendstoLocallyUniformlyOn_iff_forall_tendsto.mpr | |
| 446 | - intro z hz | |
| 447 | - have hl := coordinateEta_jets_tendsto ha ha1 hz n | |
| 448 | - rw [positiveDomain, nhdsWithin_prod_eq, nhdsWithin_univ] at hl | |
| 449 | - have hc := ((boundaryEta_jets_continuous ha ha1 n z hz).continuousAt | |
| 450 | - (isClosed_singleton.isOpen_compl.mem_nhds hz)).tendsto.comp | |
| 451 | - (tendsto_snd : Tendsto (Prod.snd : ℝ × ℝ → ℝ) ((𝓝[>] 0) ×ˢ 𝓝 z) (𝓝 z)) | |
| 452 | - exact (hc.prodMk_nhds hl).mono_right (nhds_le_uniformity _) | |
| 453 | - | |
| 454 | -/-- On this unique-differentiability domain the relative boundary jets are | |
| 455 | -exactly the ordinary jets of any smooth local extension agreeing there. -/ | |
| 456 | -theorem boundary_jet_eq_ambient {f F : (ℝ × ℝ) → ℝ} {z : ℝ} | |
| 457 | - (hz : z ≠ 0) {U : Set (ℝ × ℝ)} (hUo : IsOpen U) (hUb : (0, z) ∈ U) | |
| 458 | - (hFs : ContDiffOn ℝ ∞ F U) (hFe : EqOn F f (U ∩ halfPlane)) (n : ℕ) : | |
| 459 | - iteratedFDerivWithin ℝ n f domain (0, z) = iteratedFDeriv ℝ n F (0, z) := by | |
| 460 | - have hg : f =ᶠ[𝓝[domain] (0, z)] F := by | |
| 461 | - filter_upwards [mem_nhdsWithin_of_mem_nhds (hUo.mem_nhds hUb), | |
| 462 | - self_mem_nhdsWithin] with p hpU hpd | |
| 463 | - exact (hFe ⟨hpU, hpd.1⟩).symm | |
| 464 | - rw [hg.iteratedFDerivWithin_eq (hFe ⟨hUb, (boundary_mem_domain hz).1⟩).symm n] | |
| 465 | - exact iteratedFDerivWithin_eq_iteratedFDeriv uniqueDiffOn_domain | |
| 466 | - (((hFs (0, z) hUb).contDiffAt (hUo.mem_nhds hUb)).of_le (nat_order_le_infty n)) | |
| 467 | - (boundary_mem_domain hz) | |
| 468 | - | |
| 469 | -/-- The notation used in the manuscript: `a = 2h` and `D = 1/2 - h`. -/ | |
| 470 | -theorem manuscript_boundary_values {h : ℝ} (_hh : 0 < h) (hh1 : h < 1 / 2) (z : ℝ) : | |
| 471 | - extendedQ (2 * h) (0, z) = |z| ^ (1 / (1 / 2 - h)) ∧ | |
| 472 | - extendedEta (2 * h) (0, z) = Real.sign z := by | |
| 473 | - constructor | |
| 474 | - · rw [extendedQ_boundary, boundaryQ] | |
| 475 | - congr 1 | |
| 476 | - rw [one_div] | |
| 477 | - congr 1 | |
| 478 | - dsimp [axialExponent] | |
| 479 | - ring | |
| 480 | - · exact extendedEta_boundary_sign (by linarith) | |
| 481 | - | |
| 482 | -theorem manuscript_coordinates_smooth {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : | |
| 483 | - ContDiffOn ℝ ∞ (extendedQ (2 * h)) domain ∧ | |
| 484 | - ContDiffOn ℝ ∞ (extendedEta (2 * h)) domain := | |
| 485 | - ⟨extendedQ_smooth (by linarith) (by linarith), | |
| 486 | - extendedEta_smooth (by linarith) (by linarith)⟩ | |
| 487 | - | |
| 488 | -end NavierStokes.BoundaryCoordinates | |
+15 −0 routes/s1-ns-boundary-files/README.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-boundary-files | |
| 6 | + | |
| 7 | +One file unit of S-1 (issue #10), family `NavierStokes/Boundary*`: deletes `NavierStokes/BoundaryCoordinates.lean` | |
| 8 | +(488 lines: the smooth continuation of the similarity coordinates `q`, `η` at nonsingular boundary points `z ≠ 0`). | |
| 9 | +Nothing in the tree imports it: `git grep -n "BoundaryCoordinates"` over every file finds only the file itself, and | |
| 10 | +no module left on the tree names it. No statement changes and no other file is touched. | |
| 11 | + | |
| 12 | +## Next | |
| 13 | + | |
| 14 | +The maintainer's review after `challenge` and `build`; the other wave-0 file units (`s1-ns-*-files`) follow in pull | |
| 15 | +requests of their own. | |