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/Nominal): delete 51 declarations nothing uses
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main s1-euler-all-2 s1-euler-base-2 s1-euler-bounded-2 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-cylinder-2 s1-euler-euler-1 s1-euler-euler-2 s1-euler-field-2 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-mean-2 s1-euler-packet-2 s1-euler-parent-2 s1-euler-quadratic-2 s1-euler-resolvent-2 s1-euler-separating-2 s1-euler-smooth-2 s1-euler-sobolev-2 s1-euler-time-2 s1-euler-transverse-1 s1-euler-transverse-2 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-assembled-2 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-borel-2 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-correction-2 s1-ns-curl-2 s1-ns-cycle-2 s1-ns-defect-2 s1-ns-direct-2 s1-ns-entrance-2 s1-ns-error-2 s1-ns-even-2 s1-ns-exponent-2 s1-ns-final-2 s1-ns-first-2 s1-ns-flat-2 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-harmonic-1 s1-ns-heat-2 s1-ns-initialized-2 s1-ns-integrated-1 s1-ns-joint-2 s1-ns-label-1 s1-ns-linear-2 s1-ns-local-2 s1-ns-localized-1 s1-ns-localized-2 s1-ns-maximal-2 s1-ns-mean-2 s1-ns-mixed-2 s1-ns-native-2 s1-ns-natural-1 s1-ns-natural-2 s1-ns-nilpotent-2 s1-ns-nominal-1 s1-ns-offplane-1 s1-ns-offplane-2 s1-ns-oscillatory-2 s1-ns-parametric-2 s1-ns-particular-1 s1-ns-particular-2 s1-ns-past-2 s1-ns-periodic-2 s1-ns-periodized-2 s1-ns-phase-2 s1-ns-physical-2 s1-ns-positive-2 s1-ns-pressure-2 s1-ns-primary-1 s1-ns-primary-2 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-residual-2 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-smooth-2 s1-ns-solenoidal-2 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-terminal-1 s1-ns-time-2 s1-ns-torus-2 s1-ns-transition-2 s1-ns-transport-2 s1-ns-true-1 s1-ns-uniform-2 s1-ns-variable-2 s1-ns-volterra-2 s1-ns-wave-2 s1-ns-weighted-2 s1-ns-within-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −82 NavierStokes/NominalConeAssembly.lean View file
| @@ -231,13 +231,6 @@ theorem prefix_f {p : Point} (hp : p.1 ≤ W.controls.heatJoin) : | ||
| 231 | 231 | · rw [Controls.extendedf, ite_eq_right hXi, |
| 232 | 232 | W.controls.extendedE_before W.heat.coefficients hp, Controls.f, ite_eq_right hXi] |
| 233 | 233 | |
| 234 | -theorem prefix_histories (r : HistoryRow) {X eta : ℝ} (hX : 0 ≤ X) | |
| 235 | - (hR : X ≤ W.controls.heatJoin) : | |
| 236 | - profileHistory W.profiles r (X, eta) = | |
| 237 | - profileHistory (W.controls.profiles W.separated) r (X, eta) := | |
| 238 | - history_of_prefix W.profiles (W.controls.profiles W.separated) (J := univ) rfl | |
| 239 | - (fun _ _ hq => prefix_f W hq) (fun _ _ _ => rfl) r hX hR (mem_univ _) | |
| 240 | - | |
| 241 | 234 | theorem prefix_coordinates {p : Point} (hp : p ∈ W.domain.carrier) |
| 242 | 235 | (hX : 0 < p.1) (hR : p.1 ≤ W.controls.heatJoin) |
| 243 | 236 | (hf : W.controls.f p ≠ 0) : |
| @@ -532,37 +525,6 @@ theorem shear_dilation_cancel {r z f : ℝ} (hr : r ≠ 0) (hz : z ≠ 0) (hf : | ||
| 532 | 525 | mul_div_mul_left _ _ (mul_ne_zero hr hz)] |
| 533 | 526 | field_simp [hf] ; ring |
| 534 | 527 | |
| 535 | -/-- The logarithmic radial chart changes actual derivatives, not independent | |
| 536 | -formal jets. This statement is also valid for the matching profile before | |
| 537 | -the heat splice. -/ | |
| 538 | -theorem physical_log_shears {D : RadialDomain} (P : Profiles D) {R : ℝ} | |
| 539 | - (hR : 0 < R) (p : Point) (hp : chart R p ∈ D.carrier) | |
| 540 | - (hf : P.f (chart R p) ≠ 0) : | |
| 541 | - ActivationContinuation.shearA P (chart R p) = | |
| 542 | - 1 - 2 * deriv (fun y => P.E (R * Real.exp y, p.2)) p.1 / P.E (chart R p) ∧ | |
| 543 | - ActivationContinuation.shearB P (chart R p) = | |
| 544 | - -2 * deriv (fun y => P.U (R * Real.exp y, p.2)) p.1 / P.E (chart R p) := by | |
| 545 | - have hc := (Real.hasDerivAt_exp p.1).const_mul R | |
| 546 | - have hfd := (radialPartial_hasDerivAt D P.f_smooth hp).comp p.1 hc | |
| 547 | - have hud := (radialPartial_hasDerivAt D P.U_smooth hp).comp p.1 hc | |
| 548 | - have hr := (((hasDerivAt_id p.1).div_const 2).exp).const_mul (Real.sqrt (2 * R)) | |
| 549 | - dsimp only [chart, Function.comp_def, id_eq] at hfd hud hr | |
| 550 | - have he : (fun y => P.E (R * Real.exp y, p.2)) = | |
| 551 | - (fun y => (Real.sqrt (2 * R) * Real.exp (y / 2)) * P.f (R * Real.exp y, p.2)) := by | |
| 552 | - funext y | |
| 553 | - exact congrArg (fun t => t * P.f (R * Real.exp y, p.2)) (sqrt_chart hR y) | |
| 554 | - constructor | |
| 555 | - · rw [he, (hr.fun_mul hfd).deriv] | |
| 556 | - change -2 * (R * Real.exp p.1) * radialPartial P.f (chart R p) / P.f (chart R p) = _ | |
| 557 | - rw [show P.E (chart R p) = (Real.sqrt (2 * R) * Real.exp (p.1 / 2)) * P.f (chart R p) from | |
| 558 | - congrArg (fun t => t * P.f (chart R p)) (sqrt_chart hR p.1)] | |
| 559 | - exact shear_dilation_cancel (Real.sqrt_pos.2 (by positivity)).ne' | |
| 560 | - (Real.exp_ne_zero _) hf _ _ | |
| 561 | - · rw [hud.deriv] | |
| 562 | - unfold ActivationContinuation.shearB | |
| 563 | - dsimp only [chart] | |
| 564 | - ring | |
| 565 | - | |
| 566 | 528 | theorem physical_shear_cancel {r f X : ℝ} (hr : r ≠ 0) (hf : f ≠ 0) |
| 567 | 529 | (hsq : r ^ 2 = 2 * X) (df : ℝ) : |
| 568 | 530 | 1 - 2 * X * (1 / (2 * r) * (2 * 1) * f + r * df) / (r * f) = -2 * X * df / f := by |
| @@ -989,24 +951,6 @@ noncomputable def assemble {D : ℝ} (hF : OutgoingProfile.Specification F D) | ||
| 989 | 951 | (hs : ∀ eta ∈ HeatedOutgoing.parameterDomain, SmallDebt F c.debt eta) : NominalProfile.Witness F := |
| 990 | 952 | ⟨A, c, D, hF, G.bound, Classical.choice (G.branches c.radius hr), hsep, hs⟩ |
| 991 | 953 | |
| 992 | -theorem assemble_axis {D : ℝ} (hF : OutgoingProfile.Specification F D) | |
| 993 | - (A : AxisStage F) (c : Controls A) (hr : G.radiusFloor ≤ c.radius) | |
| 994 | - (hsep : c.separation ≤ Real.exp (-8)) | |
| 995 | - (hs : ∀ eta ∈ HeatedOutgoing.parameterDomain, SmallDebt F c.debt eta) : | |
| 996 | - (G.assemble hF A c hr hsep hs).axis = A := rfl | |
| 997 | - | |
| 998 | -theorem assemble_controls {D : ℝ} (hF : OutgoingProfile.Specification F D) | |
| 999 | - (A : AxisStage F) (c : Controls A) (hr : G.radiusFloor ≤ c.radius) | |
| 1000 | - (hsep : c.separation ≤ Real.exp (-8)) | |
| 1001 | - (hs : ∀ eta ∈ HeatedOutgoing.parameterDomain, SmallDebt F c.debt eta) : | |
| 1002 | - (G.assemble hF A c hr hsep hs).controls = c := rfl | |
| 1003 | - | |
| 1004 | -theorem assemble_bound {D : ℝ} (hF : OutgoingProfile.Specification F D) | |
| 1005 | - (A : AxisStage F) (c : Controls A) (hr : G.radiusFloor ≤ c.radius) | |
| 1006 | - (hsep : c.separation ≤ Real.exp (-8)) | |
| 1007 | - (hs : ∀ eta ∈ HeatedOutgoing.parameterDomain, SmallDebt F c.debt eta) : | |
| 1008 | - (G.assemble hF A c hr hsep hs).heatBound = G.bound := rfl | |
| 1009 | - | |
| 1010 | 954 | theorem assemble_true_from_hold {D : ℝ} (hF : OutgoingProfile.Specification F D) |
| 1011 | 955 | (A : AxisStage F) (c : Controls A) (hr : G.radiusFloor ≤ c.radius) |
| 1012 | 956 | (hsep : c.separation ≤ Real.exp (-8)) |
| @@ -1192,20 +1136,6 @@ theorem shearSize_eq_initial (a b : ℝ) (ha : a ≠ 0) : | ||
| 1192 | 1136 | unfold ActivationContinuation.shearSize |
| 1193 | 1137 | field_simp |
| 1194 | 1138 | |
| 1195 | -theorem projection_eq_initial (h X0 T κ : ℝ) (I : HistoryRow → ℝ → ℝ) | |
| 1196 | - (L U : ProfileHistories.Field) (p : Point) : | |
| 1197 | - ActivationContinuation.projection (ActivationCone.activatedStockOne h X0 I L U T κ p) | |
| 1198 | - (ActivationCone.activatedStockTwo h X0 I L U T κ p) | |
| 1199 | - (actualP1 T κ L p) (actualP2 T κ X0 L U p) = | |
| 1200 | - ActivationCone.activatedProjection h X0 I L U T κ p := rfl | |
| 1201 | - | |
| 1202 | -theorem transverse_eq_initial (h X0 T κ : ℝ) (I : HistoryRow → ℝ → ℝ) | |
| 1203 | - (L U : ProfileHistories.Field) (p : Point) : | |
| 1204 | - ActivationContinuation.transverse (ActivationCone.activatedStockOne h X0 I L U T κ p) | |
| 1205 | - (ActivationCone.activatedStockTwo h X0 I L U T κ p) | |
| 1206 | - (actualP1 T κ L p) (actualP2 T κ X0 L U p) = | |
| 1207 | - ActivationCone.activatedCross h X0 I L U T κ p := rfl | |
| 1208 | - | |
| 1209 | 1139 | |
| 1210 | 1140 | /-- The actual ACT histories of the same continuation witness give the |
| 1211 | 1141 | logarithmic stock coordinates in its initial activation certificate. -/ |
| @@ -1368,18 +1298,6 @@ structure Certificate {F : Profile} (W : NominalProfile.Witness F) : Prop where | ||
| 1368 | 1298 | outgoing : ∀ y eta : ℝ, F.data.core.holdStart ≤ y → y < OutgoingTail.tailEnd F.data → |
| 1369 | 1299 | eta ∈ HeatedOutgoing.parameterDomain → IsTrue W.profiles F.data.h (chart W.controls.radius (y, eta)) |
| 1370 | 1300 | |
| 1371 | -theorem Certificate.coordinates_smoothAt {F : Profile} {W : NominalProfile.Witness F} | |
| 1372 | - (hW : Certificate W) {p : Point} (hl : activeLeft W < p.1) (hr : p.1 < activeRight W) | |
| 1373 | - (heta : p.2 ∈ HeatedOutgoing.parameterDomain) : | |
| 1374 | - ContDiffAt ℝ ∞ (ActivationContinuation.shearA W.profiles) p ∧ | |
| 1375 | - ContDiffAt ℝ ∞ (tilt W.profiles) p ∧ | |
| 1376 | - ContDiffAt ℝ ∞ (ReferenceBounds.p1 W.profiles F.data.h) p ∧ | |
| 1377 | - ContDiffAt ℝ ∞ (ReferenceBounds.p2 W.profiles F.data.h) p := by | |
| 1378 | - have hx := (activeLeft_pos W).trans hl | |
| 1379 | - exact cone_coordinates_smoothAt W.profiles F.data.h (W.domain_contains hx.le heta) hx | |
| 1380 | - (Witness.f_positive W hx heta).ne' (hW.relaxed p hl hr heta).first_positive.ne' | |
| 1381 | - (NaturalAxisData.L_pos W.axis.small heta).ne' | |
| 1382 | - | |
| 1383 | 1301 | /-- Intermediate data retain the actual continuation and its repair |
| 1384 | 1302 | coefficients. The existence theorem below constructs every cone field in |
| 1385 | 1303 | this record from the already proved estimates. -/ |
+0 −356 NavierStokes/NominalProfile.lean View file
| @@ -44,19 +44,6 @@ structure AxisPreparation (F : Profile) (j : ℝ) where | ||
| 44 | 44 | NaturalEntrance.entranceNormalization inputs Λ delta ≤ C → |
| 45 | 45 | Nonempty (NaturalEntrance.EntranceProfile inputs Λ C) |
| 46 | 46 | |
| 47 | -theorem prepare_axis (F : Profile) (hP : 2 ≤ F.data.core.P) {j : ℝ} | |
| 48 | - (hj : NaturalAxisData.SmallParameters F.data.h j) : Nonempty (AxisPreparation F j) := by | |
| 49 | - have he := NaturalEntrance.ideal_prefix_entranceProfile (NaturalAxisRange.ofSmall hj) | |
| 50 | - (SchedulePressure.admissible F.data) hP | |
| 51 | - (fun y hy => SchedulePressure.clockWeight_ideal F.data hy) | |
| 52 | - (fun y hy => SchedulePressure.shapeExponent_ideal F.data hy) | |
| 53 | - have hd : F.axisDatum = PressureDatum.pressure | |
| 54 | - (SchedulePressure.clockWeight F.data) (SchedulePressure.shapeExponent F.data) := | |
| 55 | - F.axisDatum_eq.trans (SchedulePressure.axisPressure_eq F.data) | |
| 56 | - rw [← hd] at he | |
| 57 | - obtain ⟨delta, sigma, hdelta, hsigma, inputs, bound, hbound, entrances⟩ := he | |
| 58 | - exact ⟨⟨delta, sigma, hdelta, hsigma, inputs, bound, hbound, entrances⟩⟩ | |
| 59 | - | |
| 60 | 47 | /-- The scale is selected before the normalization; both retain the same |
| 61 | 48 | outgoing profile and the same analytic axis data. -/ |
| 62 | 49 | structure AxisStage (F : Profile) where |
| @@ -86,17 +73,11 @@ noncomputable def natural : NaturalEntrance.EntranceProfile A.preparation.inputs | ||
| 86 | 73 | noncomputable def referenceInput : ReferencePath.Input := |
| 87 | 74 | ReferencePath.Input.ofNatural A.scale_pos A.natural.profile.family |
| 88 | 75 | |
| 89 | -theorem reference_scale : A.referenceInput.scale = A.scale := rfl | |
| 90 | -theorem reference_f : A.referenceInput.f = A.natural.profile.family.f := rfl | |
| 91 | -theorem reference_U : A.referenceInput.U = A.natural.profile.family.U := rfl | |
| 92 | 76 | |
| 93 | 77 | noncomputable def reference (δ : ℝ) (hδ : 0 < δ) (hδsmall : 2 * δ < ReferencePath.rampLimit) : |
| 94 | 78 | ProfileHistories.Profiles A.referenceInput.radialDomain := |
| 95 | 79 | A.referenceInput.histories hδ hδsmall F.axisDatum F.axisDatum_contDiff |
| 96 | 80 | |
| 97 | -theorem reference_pressure0 (δ : ℝ) (hδ : 0 < δ) (hδsmall : 2 * δ < ReferencePath.rampLimit) : | |
| 98 | - (A.reference δ hδ hδsmall).pressure0 = F.axisDatum := rfl | |
| 99 | - | |
| 100 | 81 | /-- The stocks used in ACT come from this exact REF profile. -/ |
| 101 | 82 | noncomputable def activation (δ : ℝ) (hδ : 0 < δ) |
| 102 | 83 | (hδsmall : 2 * δ < ReferencePath.rampLimit) : |
| @@ -104,14 +85,6 @@ noncomputable def activation (δ : ℝ) (hδ : 0 < δ) | ||
| 104 | 85 | TransitionRamp.ofNatural A.natural.profile.family A.scale_pos A.small hδ hδsmall |
| 105 | 86 | F.axisDatum_contDiff |
| 106 | 87 | |
| 107 | -theorem activation_profiles (δ : ℝ) (hδ : 0 < δ) | |
| 108 | - (hδsmall : 2 * δ < ReferencePath.rampLimit) : | |
| 109 | - (A.activation δ hδ hδsmall).profiles = A.reference δ hδ hδsmall := rfl | |
| 110 | - | |
| 111 | -theorem activation_radius (δ : ℝ) (hδ : 0 < δ) | |
| 112 | - (hδsmall : 2 * δ < ReferencePath.rampLimit) : | |
| 113 | - (A.activation δ hδ hδsmall).radius0 = 4 / A.scale := rfl | |
| 114 | - | |
| 115 | 88 | theorem activation_initial (δ : ℝ) (hδ : 0 < δ) |
| 116 | 89 | (hδsmall : 2 * δ < ReferencePath.rampLimit) (T κ w₁ w₂ : ℝ) {p : Point} |
| 117 | 90 | (hp : p.1 ≤ 4 / A.scale) : |
| @@ -125,23 +98,12 @@ theorem activation_initial (δ : ℝ) (hδ : 0 < δ) | ||
| 125 | 98 | |
| 126 | 99 | end AxisStage |
| 127 | 100 | |
| 128 | -theorem exists_axis_stage (F : Profile) (hP : 2 ≤ F.data.core.P) {j : ℝ} | |
| 129 | - (hj : NaturalAxisData.SmallParameters F.data.h j) (scaleFloor normFloor : ℝ) : | |
| 130 | - ∃ A : AxisStage F, A.j = j ∧ scaleFloor ≤ A.scale ∧ normFloor ≤ A.normalization := by | |
| 131 | - obtain ⟨prep⟩ := prepare_axis F hP hj | |
| 132 | - let Λ := max prep.scaleBound scaleFloor | |
| 133 | - let C := max (NaturalEntrance.entranceNormalization prep.inputs Λ prep.delta) normFloor | |
| 134 | - exact ⟨⟨j, hj, prep, Λ, C, le_max_left _ _, le_max_left _ _, | |
| 135 | - Classical.choice (prep.entrances Λ (le_max_left _ _) C (le_max_left _ _))⟩, | |
| 136 | - rfl, le_max_right _ _, le_max_right _ _⟩ | |
| 137 | - | |
| 138 | 101 | /-! ## Matching geometry: the radius is derived from the same normalization -/ |
| 139 | 102 | |
| 140 | 103 | noncomputable def Xi : ℝ := 110 |
| 141 | 104 | noncomputable def matchingRadius (F : Profile) (C : ℝ) : ℝ := |
| 142 | 105 | ShapeTransition.resetRadius Xi C F.data.core.P |
| 143 | 106 | noncomputable def matchFraction : ℝ := Real.exp (-5) |
| 144 | -noncomputable def matchRadius (F : Profile) (C : ℝ) : ℝ := matchingRadius F C * matchFraction | |
| 145 | 107 | |
| 146 | 108 | theorem Xi_pos : 0 < Xi := by norm_num [Xi] |
| 147 | 109 | theorem matchingRadius_pos (F : Profile) {C : ℝ} (hC : 0 < C) : 0 < matchingRadius F C := |
| @@ -227,14 +189,6 @@ theorem resetCoefficients_equation (F : Profile) (debt : ℝ → Debt) (eta : | ||
| 227 | 189 | rw [resetCoefficients, resetSolver.equation _ (smallDebt_mem hs)] |
| 228 | 190 | exact FiveProfileMoments.physical_normalized_debt _ _ (idealAmplitude_pos F eta).ne' _ |
| 229 | 191 | |
| 230 | -theorem resetCoefficients_smooth (F : Profile) {debt : ℝ → Debt} {V : Set ℝ} | |
| 231 | - (hd : ContDiffOn ℝ ∞ debt V) (hs : ∀ eta ∈ V, SmallDebt F debt eta) : | |
| 232 | - ContDiffOn ℝ ∞ (resetCoefficients F debt) V := by | |
| 233 | - apply resetSolver.smooth.comp | |
| 234 | - (FiveProfileMoments.normalizedDebt_contDiffOn (idealAmplitude_smooth F).contDiffOn | |
| 235 | - idealU_smooth.contDiffOn hd (fun eta _ => (idealAmplitude_pos F eta).ne')) | |
| 236 | - exact fun eta heta => smallDebt_mem (hs eta heta) | |
| 237 | - | |
| 238 | 192 | /-! ## Literal row densities and compact edits -/ |
| 239 | 193 | |
| 240 | 194 | noncomputable def density (U E : ℝ → ℝ) (x : ℝ) : Debt := |
| @@ -587,9 +541,6 @@ noncomputable def initialAxial : ℝ → ℝ := | ||
| 587 | 541 | c.reference.endpointU c.activationTime c.kappa c.axialWidth |
| 588 | 542 | |
| 589 | 543 | theorem reference_radius : c.reference.radius0 = 4 / A.scale := rfl |
| 590 | -theorem reference_profiles : c.reference.profiles = | |
| 591 | - A.reference c.referenceWidth c.referenceWidth_pos c.referenceWidth_small := rfl | |
| 592 | -theorem reference_pressure : c.reference.profiles.pressure0 = F.axisDatum := rfl | |
| 593 | 544 | theorem reference_before_big : 0 < c.reference.bigTime := |
| 594 | 545 | c.referenceWidth_pos.trans_le c.before_big |
| 595 | 546 | theorem radius_before_Xi : c.reference.radius0 < 110 := |
| @@ -646,11 +597,6 @@ theorem seedU_held {X eta : ℝ} (hX : Xi ≤ X) (hη : eta ∈ ReferencePath.pa | ||
| 646 | 597 | have hf : c.reference.bigTime + c.axialWidth + c.angularWidth ≤ c.reference.finalTime := c.finish |
| 647 | 598 | linarith [c.angularWidth_pos]) c.radius_before_Xi hX hη |
| 648 | 599 | |
| 649 | -theorem initialShape_value {eta : ℝ} (hη : eta ∈ ReferencePath.parameterInterval) : | |
| 650 | - c.initialShape eta = Real.log (A.normalization * (Real.sqrt (2 * Xi) * c.seedF (Xi, eta))) := | |
| 651 | - c.reference.endpointLog_eq_actual ReferencePath.parameterInterval_open c.angularWidth_pos | |
| 652 | - c.finish c.radius_before_Xi A.normalization_pos hη | |
| 653 | - | |
| 654 | 600 | /-- The nominal fields are functions of the actual stock-controlled seed. -/ |
| 655 | 601 | noncomputable def debt : ℝ → Debt := |
| 656 | 602 | actualDebt F A.normalization c.shapeTime c.initialShape c.seedF c.seedU |
| @@ -741,61 +687,8 @@ theorem E_eq_sqrt_mul_f | ||
| 741 | 687 | · rw [f, ite_eq_right hp, mul_div_cancel₀ _ |
| 742 | 688 | (Real.sqrt_pos.2 (mul_pos (by norm_num : (0 : ℝ) < 2) hX)).ne'] |
| 743 | 689 | |
| 744 | -theorem natural_prefix | |
| 745 | - (hsep : ShapeTransition.separation c.shapeTime A.normalization F.data.core.P ≤ Real.exp (-8)) | |
| 746 | - (hscale : 1 ≤ A.scale) {p : Point} (hp : p.1 ≤ 4 / A.scale) : | |
| 747 | - c.f p = A.natural.profile.family.f p ∧ c.U p = A.natural.profile.family.U p := by | |
| 748 | - have hXi : (4 : ℝ) / A.scale ≤ Xi := by | |
| 749 | - apply (div_le_iff₀ A.scale_pos).mpr | |
| 750 | - have := mul_le_mul_of_nonneg_left hscale Xi_pos.le | |
| 751 | - norm_num [Xi] at * | |
| 752 | - linarith | |
| 753 | - exact ⟨(c.f_before_Xi (hp.trans hXi)).trans (c.seed_initial hp).1, | |
| 754 | - (c.physical_before_Xi hsep (hp.trans hXi)).1.trans (c.seed_initial hp).2⟩ | |
| 755 | - | |
| 756 | 690 | end Controls |
| 757 | 691 | |
| 758 | -/-- All elementary clock constraints can be achieved with arbitrarily small | |
| 759 | -widths after the axis profile and its normalization have been fixed. -/ | |
| 760 | -theorem controls_exist {F : Profile} (A : AxisStage F) (hscale : 1 ≤ A.scale) | |
| 761 | - (T : ℝ) (hT : 0 < T) {eps : ℝ} (heps : 0 < eps) : | |
| 762 | - ∃ c : Controls A, c.shapeTime = T ∧ c.referenceWidth < eps ∧ | |
| 763 | - c.activationTime < eps ∧ c.kappa < eps ∧ c.axialWidth < eps ∧ c.angularWidth < eps := by | |
| 764 | - let δ := min A.preparation.delta (min (ReferencePath.rampLimit / 4) (eps / 2)) | |
| 765 | - have hδ : 0 < δ := lt_min A.preparation.delta_pos | |
| 766 | - (lt_min (div_pos ReferencePath.rampLimit_pos (by norm_num)) (half_pos heps)) | |
| 767 | - have hδlim : δ ≤ ReferencePath.rampLimit / 4 := (min_le_right _ _).trans (min_le_left _ _) | |
| 768 | - have hδeps : δ < eps := ((min_le_right _ _).trans (min_le_right _ _)).trans_lt (half_lt_self heps) | |
| 769 | - have hδT : 2 * δ < ReferencePath.rampLimit := by linarith [ReferencePath.rampLimit_pos] | |
| 770 | - let R := A.activation δ hδ hδT | |
| 771 | - have hb : δ ≤ R.bigTime := by | |
| 772 | - have hf := A.referenceInput.freeze_before_Xbig hscale hδT | |
| 773 | - have he : Real.exp (2 * δ) < 100 / R.radius0 := by | |
| 774 | - apply (lt_div_iff₀ R.radius0_pos).mpr | |
| 775 | - simp only [R, AxisStage.activation, TransitionRamp.ofNatural, ReferencePath.Input.Xbig, | |
| 776 | - mul_comm] at hf ⊢ | |
| 777 | - exact hf | |
| 778 | - have ht : 2 * δ < R.bigTime := | |
| 779 | - (Real.lt_log_iff_exp_lt (div_pos (by norm_num) R.radius0_pos)).mpr he | |
| 780 | - linarith | |
| 781 | - let gap := R.finalTime - R.bigTime | |
| 782 | - have hgap : 0 < gap := sub_pos.mpr R.finalTime_gt_bigTime | |
| 783 | - let w := min (gap / 4) (eps / 2) | |
| 784 | - have hw : 0 < w := lt_min (div_pos hgap (by norm_num)) (half_pos heps) | |
| 785 | - have hweps : w < eps := (min_le_right _ _).trans_lt (half_lt_self heps) | |
| 786 | - have hfinish : R.bigTime + w + w ≤ R.finalTime := by | |
| 787 | - have h := min_le_left (gap / 4) (eps / 2) | |
| 788 | - dsimp only [gap] at h | |
| 789 | - change w ≤ (R.finalTime - R.bigTime) / 4 at h | |
| 790 | - linarith [R.finalTime_gt_bigTime] | |
| 791 | - let κ := min (1 / 2 : ℝ) (eps / 2) | |
| 792 | - have hκ : 0 < κ := lt_min (by norm_num) (half_pos heps) | |
| 793 | - have hκ1 : κ ≤ 1 := (min_le_left _ _).trans (by norm_num) | |
| 794 | - have hκeps : κ < eps := (min_le_right _ _).trans_lt (half_lt_self heps) | |
| 795 | - let c : Controls A := ⟨δ, hδ, hδT, δ / 2, half_pos hδ, (half_le_self hδ.le), | |
| 796 | - κ, hκ, hκ1, w, hw, w, hw, hb, hfinish, T, hT⟩ | |
| 797 | - exact ⟨c, rfl, hδeps, (half_lt_self hδ).trans hδeps, hκeps, hweps, hweps⟩ | |
| 798 | - | |
| 799 | 692 | /-! ## Regular parameter-dependent prefix integrals -/ |
| 800 | 693 | |
| 801 | 694 | noncomputable def scaledDomain (D : ProfileHistories.RadialDomain) (R : ℝ) : |
| @@ -1015,11 +908,6 @@ variable {F : Profile} {A : AxisStage F} (c : Controls A) | ||
| 1015 | 908 | theorem debt_smooth : ContDiffOn ℝ ∞ c.debt ReferencePath.parameterInterval := |
| 1016 | 909 | (outgoing_prefix_smooth F matchFraction_lt_one.le).contDiffOn.sub c.base_moments_smooth |
| 1017 | 910 | |
| 1018 | -theorem repair_coefficients_smooth | |
| 1019 | - (hs : ∀ eta ∈ ReferencePath.parameterInterval, SmallDebt F c.debt eta) : | |
| 1020 | - ContDiffOn ℝ ∞ (resetCoefficients F c.debt) ReferencePath.parameterInterval := | |
| 1021 | - resetCoefficients_smooth F c.debt_smooth hs | |
| 1022 | - | |
| 1023 | 911 | theorem moments_at_match |
| 1024 | 912 | (hsep : ShapeTransition.separation c.shapeTime A.normalization F.data.core.P ≤ Real.exp (-8)) |
| 1025 | 913 | {eta : ℝ} (hη : eta ∈ ReferencePath.parameterInterval) (hs : SmallDebt F c.debt eta) : |
| @@ -1630,16 +1518,6 @@ theorem physical_density_integrable (hsep : c.separation ≤ Real.exp (-8)) | ||
| 1630 | 1518 | (c.admissible_nonnegative hr hη hs) i) _ measurableSet_Ioc |
| 1631 | 1519 | exact fun x hx => congrArg (fun q : Debt => q i) (c.physical_density_eq hsep hx.1 eta).symm |
| 1632 | 1520 | |
| 1633 | -theorem profiles_pressure (hsep : c.separation ≤ Real.exp (-8)) | |
| 1634 | - {p : Point} (hX : 0 ≤ p.1) : (c.profiles hsep).pressure p = c.Pi p := by | |
| 1635 | - change F.axisDatum p.2 + ProfileHistories.primitive (fun q => c.f q ^ 2) p = | |
| 1636 | - F.axisDatum p.2 + moments c.U c.E p.1 p.2 4 | |
| 1637 | - congr 1 | |
| 1638 | - rw [ProfileHistories.primitive, intervalIntegral.integral_of_le hX] | |
| 1639 | - apply setIntegral_congr_fun measurableSet_Ioc | |
| 1640 | - intro x hx | |
| 1641 | - exact (congrArg (fun q : Debt => q 4) (c.physical_density_eq hsep hx.1 p.2)).symm | |
| 1642 | - | |
| 1643 | 1521 | end Controls |
| 1644 | 1522 | |
| 1645 | 1523 | theorem global_integral_replace {f g : ℝ → ℝ} {a : ℝ} (ha : 0 ≤ a) |
| @@ -1681,77 +1559,10 @@ theorem halfKernel_eq (E : Field) (eta x : ℝ) : | ||
| 1681 | 1559 | unfold halfKernel |
| 1682 | 1560 | rw [div_div, mul_comm x 2] |
| 1683 | 1561 | |
| 1684 | -theorem outgoing_halfKernel_integrable (F : Profile) (R eta : ℝ) (hR : 0 < R) : | |
| 1685 | - IntegrableOn (halfKernel (OutgoingDilation.E F R) eta) (Ioi 0) := by | |
| 1686 | - have he : halfKernel (OutgoingDilation.E F R) eta = | |
| 1687 | - fun x => OutgoingDilation.canonicalKernel F R eta x / 2 := | |
| 1688 | - funext (halfKernel_eq (OutgoingDilation.E F R) eta) | |
| 1689 | - rw [he] | |
| 1690 | - exact (OutgoingDilation.canonicalKernel_integrable F R eta hR).div_const 2 | |
| 1691 | - | |
| 1692 | -theorem outgoing_axis_halfKernel (F : Profile) (R eta : ℝ) (hR : 0 < R) : | |
| 1693 | - F.axisDatum eta = -(∫ x in Ioi 0, halfKernel (OutgoingDilation.E F R) eta x) := by | |
| 1694 | - have ha := congrFun (OutgoingDilation.axisDatum_unchanged F R hR) eta | |
| 1695 | - simp only [OutgoingDilation.axisDatum, OutgoingDilation.canonicalKernel] at ha | |
| 1696 | - simp_rw [halfKernel_eq] | |
| 1697 | - rw [integral_div] | |
| 1698 | - linarith | |
| 1699 | - | |
| 1700 | -theorem outgoing_pressure_halfKernel (F : Profile) (R eta : ℝ) (hR : 0 < R) | |
| 1701 | - {X : ℝ} (hX : 0 < X) : | |
| 1702 | - OutgoingDilation.Pi F R (X, eta) = -(∫ x in Ioi X, halfKernel (OutgoingDilation.E F R) eta x) := by | |
| 1703 | - rw [OutgoingDilation.Pi_canonical F R eta X hR hX] | |
| 1704 | - simp_rw [halfKernel_eq] | |
| 1705 | - rw [integral_div] | |
| 1706 | - ring | |
| 1707 | - | |
| 1708 | -theorem outgoing_pressure_prefix (F : Profile) (R eta : ℝ) (hR : 0 < R) | |
| 1709 | - {X : ℝ} (hX : 0 < X) : | |
| 1710 | - F.axisDatum eta + moments (OutgoingDilation.U F R) (OutgoingDilation.E F R) X eta 4 = | |
| 1711 | - OutgoingDilation.Pi F R (X, eta) := by | |
| 1712 | - rw [outgoing_axis_halfKernel F R eta hR, outgoing_pressure_halfKernel F R eta hR hX] | |
| 1713 | - exact canonical_past_identity (outgoing_halfKernel_integrable F R eta hR) hX.le | |
| 1714 | - | |
| 1715 | 1562 | namespace Controls |
| 1716 | 1563 | |
| 1717 | 1564 | variable {F : Profile} {A : AxisStage F} (c : Controls A) |
| 1718 | 1565 | |
| 1719 | -theorem pressure_after_match (hsep : c.separation ≤ Real.exp (-8)) | |
| 1720 | - {X eta : ℝ} (hX : c.radius * matchFraction ≤ X) | |
| 1721 | - (hη : eta ∈ ReferencePath.parameterInterval) (hs : SmallDebt F c.debt eta) : | |
| 1722 | - c.Pi (X, eta) = OutgoingDilation.Pi F c.radius (X, eta) := by | |
| 1723 | - change F.axisDatum eta + moments c.U c.E X eta 4 = _ | |
| 1724 | - rw [c.physical_moments hsep hX hη hs] | |
| 1725 | - exact outgoing_pressure_prefix F c.radius eta c.radius_pos | |
| 1726 | - ((mul_pos c.radius_pos matchFraction_pos).trans_le hX) | |
| 1727 | - | |
| 1728 | -theorem kernel_integral (hsep : c.separation ≤ Real.exp (-8)) | |
| 1729 | - {eta : ℝ} (hη : eta ∈ ReferencePath.parameterInterval) (hs : SmallDebt F c.debt eta) : | |
| 1730 | - IntegrableOn (halfKernel c.E eta) (Ioi 0) ∧ | |
| 1731 | - (∫ x in Ioi 0, halfKernel c.E eta x) = | |
| 1732 | - ∫ x in Ioi 0, halfKernel (OutgoingDilation.E F c.radius) eta x := by | |
| 1733 | - apply global_integral_replace (mul_pos c.radius_pos matchFraction_pos).le | |
| 1734 | - (c.physical_density_integrable hsep (mul_pos c.radius_pos matchFraction_pos).le hη hs 4) | |
| 1735 | - (outgoing_halfKernel_integrable F c.radius eta c.radius_pos) | |
| 1736 | - · exact congrArg (fun q : Debt => q 4) (c.physical_moments hsep le_rfl hη hs) | |
| 1737 | - · intro x hx | |
| 1738 | - change c.E (x, eta) ^ 2 / (2 * x) = OutgoingDilation.E F c.radius (x, eta) ^ 2 / (2 * x) | |
| 1739 | - rw [(c.physical_after_match (p := (x, eta)) hx).2] | |
| 1740 | - | |
| 1741 | -theorem pressure_canonical (hsep : c.separation ≤ Real.exp (-8)) | |
| 1742 | - {X eta : ℝ} (hX : 0 < X) (hη : eta ∈ ReferencePath.parameterInterval) | |
| 1743 | - (hs : SmallDebt F c.debt eta) : | |
| 1744 | - c.Pi (X, eta) = -(1 / 2 : ℝ) * ∫ x in Ioi X, c.E (x, eta) ^ 2 / x := by | |
| 1745 | - have hk := c.kernel_integral hsep hη hs | |
| 1746 | - have ha : F.axisDatum eta = -(∫ x in Ioi 0, halfKernel c.E eta x) := by | |
| 1747 | - rw [hk.2] | |
| 1748 | - exact outgoing_axis_halfKernel F c.radius eta c.radius_pos | |
| 1749 | - change F.axisDatum eta + (∫ x in Ioc 0 X, halfKernel c.E eta x) = _ | |
| 1750 | - rw [ha, canonical_past_identity hk.1 hX.le] | |
| 1751 | - simp_rw [halfKernel_eq] | |
| 1752 | - rw [integral_div] | |
| 1753 | - ring | |
| 1754 | - | |
| 1755 | 1566 | end Controls |
| 1756 | 1567 | |
| 1757 | 1568 | /-! ## Keeping the actual continuation witness -/ |
| @@ -1784,19 +1595,6 @@ noncomputable def Controls.ofContinuation {F : Profile} (A : AxisStage F) {N : | ||
| 1784 | 1595 | shapeTime := T |
| 1785 | 1596 | shapeTime_pos := hT |
| 1786 | 1597 | |
| 1787 | -theorem Controls.ofContinuation_seed {F : Profile} (A : AxisStage F) {N : ℕ} {eps : ℝ} | |
| 1788 | - (w : ActivationContinuation.ContinuationWitness A.natural A.scale_pos A.small | |
| 1789 | - F.axisDatum_contDiff N eps) (T : ℝ) (hT : 0 < T) : | |
| 1790 | - (Controls.ofContinuation A w T hT).seedF = w.parameters.profiles.f ∧ | |
| 1791 | - (Controls.ofContinuation A w T hT).seedU = w.parameters.profiles.U := ⟨rfl, rfl⟩ | |
| 1792 | - | |
| 1793 | -theorem Controls.ofContinuation_log_control {F : Profile} (A : AxisStage F) {N : ℕ} {eps : ℝ} | |
| 1794 | - (w : ActivationContinuation.ContinuationWitness A.natural A.scale_pos A.small | |
| 1795 | - F.axisDatum_contDiff N eps) (T : ℝ) (hT : 0 < T) : | |
| 1796 | - let c := Controls.ofContinuation A w T hT | |
| 1797 | - c.reference.SmallLogControl (Icc (-1 : ℝ) 1) N eps | |
| 1798 | - c.activationTime c.kappa c.axialWidth c.angularWidth := w.logarithmic_control | |
| 1799 | - | |
| 1800 | 1598 | /-! ## Joining the heat completion of the same outgoing profile -/ |
| 1801 | 1599 | |
| 1802 | 1600 | theorem physical_band_in_parameterInterval {eta : ℝ} (hη : eta ∈ Icc (-1 : ℝ) 1) : |
| @@ -1812,12 +1610,8 @@ noncomputable def heatJoin : ℝ := c.radius * matchFraction | ||
| 1812 | 1610 | noncomputable def heatBlend (X : ℝ) : ℝ := ShapeTransition.radialSwitch c.heatJoin 1 X |
| 1813 | 1611 | noncomputable def heatedE (coef : ℝ → HeatedOutgoing.Coeff) (p : Point) : ℝ := |
| 1814 | 1612 | c.E p + c.heatBlend p.1 * (HeatedOutgoing.E F c.radius coef p - c.E p) |
| 1815 | -noncomputable def heatedH (coef : ℝ → HeatedOutgoing.Coeff) (p : Point) : ℝ := | |
| 1816 | - Real.sqrt (2 * p.1) * c.heatedE coef p | |
| 1817 | 1613 | noncomputable def heatedPi (coef : ℝ → HeatedOutgoing.Coeff) (p : Point) : ℝ := |
| 1818 | 1614 | F.axisDatum p.2 + moments c.U (c.heatedE coef) p.1 p.2 4 |
| 1819 | -noncomputable def heatedf (coef : ℝ → HeatedOutgoing.Coeff) (p : Point) : ℝ := | |
| 1820 | - if p.1 ≤ Xi then c.f p else c.heatedE coef p / Real.sqrt (2 * p.1) | |
| 1821 | 1615 | |
| 1822 | 1616 | theorem heatJoin_pos : 0 < c.heatJoin := mul_pos c.radius_pos matchFraction_pos |
| 1823 | 1617 | theorem heatJoin_lt_radius : c.heatJoin < c.radius := |
| @@ -1864,28 +1658,6 @@ theorem heated_fields_after (coef : ℝ → HeatedOutgoing.Coeff) {p : Point} | ||
| 1864 | 1658 | c.U p = HeatedOutgoing.U F c.radius p ∧ c.heatedE coef p = HeatedOutgoing.E F c.radius coef p := |
| 1865 | 1659 | ⟨(c.physical_after_match hp).1, c.heatedE_after coef hp⟩ |
| 1866 | 1660 | |
| 1867 | -theorem heated_natural_prefix (coef : ℝ → HeatedOutgoing.Coeff) | |
| 1868 | - (hsep : c.separation ≤ Real.exp (-8)) (hscale : 1 ≤ A.scale) | |
| 1869 | - {p : Point} (hp : p.1 ≤ 4 / A.scale) : | |
| 1870 | - c.heatedf coef p = A.natural.profile.family.f p ∧ c.U p = A.natural.profile.family.U p := by | |
| 1871 | - have hb : (4 : ℝ) / A.scale ≤ Xi := by | |
| 1872 | - apply (div_le_iff₀ A.scale_pos).mpr | |
| 1873 | - have := mul_le_mul_of_nonneg_left hscale Xi_pos.le | |
| 1874 | - norm_num [Xi] at * | |
| 1875 | - linarith | |
| 1876 | - rw [heatedf, ite_eq_left (hp.trans hb)] | |
| 1877 | - exact c.natural_prefix hsep hscale hp | |
| 1878 | - | |
| 1879 | -theorem heatedE_smooth {B : ℝ} (w : HeatedOutgoing.CompensationWitness F c.radius B) | |
| 1880 | - (hsep : c.separation ≤ Real.exp (-8)) : | |
| 1881 | - ContDiffOn ℝ ∞ (c.heatedE w.coefficients) | |
| 1882 | - {p | p ∈ HeatedOutgoing.domain ∧ SmallDebt F c.debt p.2} := by | |
| 1883 | - have hc : ContDiffOn ℝ ∞ c.E {p | p ∈ HeatedOutgoing.domain ∧ SmallDebt F c.debt p.2} := by | |
| 1884 | - intro p hp | |
| 1885 | - exact (c.E_smoothAt hsep hp.1.1 (physical_band_in_parameterInterval hp.1.2) hp.2).contDiffWithinAt | |
| 1886 | - exact hc.add (((c.heatBlend_smooth.comp contDiff_fst).contDiffOn).mul | |
| 1887 | - ((HeatedOutgoing.E_contDiffOn F c.radius c.radius_pos w.smooth).mono (fun _ hp => hp.1) |>.sub hc)) | |
| 1888 | - | |
| 1889 | 1661 | end Controls |
| 1890 | 1662 | |
| 1891 | 1663 | theorem density_dilate_integrable (R : ℝ) (hR : 0 < R) (U E : Field) (r eta : ℝ) |
| @@ -2164,28 +1936,8 @@ theorem heated_pressure_after {B : ℝ} (w : HeatedOutgoing.CompensationWitness | ||
| 2164 | 1936 | rw [c.heated_moments w hsep hη hs hX] |
| 2165 | 1937 | exact heated_outgoing_pressure_prefix w hη (c.heatJoin_pos.le.trans hX) |
| 2166 | 1938 | |
| 2167 | -theorem heated_pressure_before (coef : ℝ → HeatedOutgoing.Coeff) {p : Point} | |
| 2168 | - (hp : p.1 ≤ c.heatJoin) : c.heatedPi coef p = c.Pi p := by | |
| 2169 | - change F.axisDatum p.2 + moments c.U (c.heatedE coef) p.1 p.2 4 = | |
| 2170 | - F.axisDatum p.2 + moments c.U c.E p.1 p.2 4 | |
| 2171 | - congr 1 | |
| 2172 | - apply setIntegral_congr_fun measurableSet_Ioc | |
| 2173 | - intro x hx | |
| 2174 | - simp only [density, c.heatedE_before coef (p := (x, p.2)) (hx.2.trans hp)] | |
| 2175 | - | |
| 2176 | 1939 | end Controls |
| 2177 | 1940 | |
| 2178 | -theorem Controls.ofContinuation_reference {F : Profile} (A : AxisStage F) {N : ℕ} {eps : ℝ} | |
| 2179 | - (w : ActivationContinuation.ContinuationWitness A.natural A.scale_pos A.small | |
| 2180 | - F.axisDatum_contDiff N eps) (T : ℝ) (hT : 0 < T) : | |
| 2181 | - (Controls.ofContinuation A w T hT).reference = w.parameters.reference := rfl | |
| 2182 | - | |
| 2183 | -theorem Controls.ofContinuation_endpoints {F : Profile} (A : AxisStage F) {N : ℕ} {eps : ℝ} | |
| 2184 | - (w : ActivationContinuation.ContinuationWitness A.natural A.scale_pos A.small | |
| 2185 | - F.axisDatum_contDiff N eps) (T : ℝ) (hT : 0 < T) : | |
| 2186 | - (Controls.ofContinuation A w T hT).initialAxial = w.parameters.endpointAxial ∧ | |
| 2187 | - (Controls.ofContinuation A w T hT).initialShape = w.parameters.endpointLogarithm := ⟨rfl, rfl⟩ | |
| 2188 | - | |
| 2189 | 1941 | namespace Controls |
| 2190 | 1942 | |
| 2191 | 1943 | variable {F : Profile} {A : AxisStage F} (c : Controls A) |
| @@ -2208,82 +1960,6 @@ theorem activation_collar_le_Xi : (4 / A.scale) * Real.exp c.referenceWidth ≤ | ||
| 2208 | 1960 | change c.reference.radius0 * Real.exp c.referenceWidth ≤ Xi |
| 2209 | 1961 | exact (h.trans_eq hr).trans (by norm_num [Xi]) |
| 2210 | 1962 | |
| 2211 | -theorem heated_seed_fields (coef : ℝ → HeatedOutgoing.Coeff) | |
| 2212 | - (hsep : c.separation ≤ Real.exp (-8)) {p : Point} (hp : p.1 ≤ Xi) : | |
| 2213 | - c.heatedf coef p = c.seedProfiles.f p ∧ c.U p = c.seedProfiles.U p ∧ | |
| 2214 | - c.heatedE coef p = c.seedProfiles.E p := by | |
| 2215 | - have hc := c.physical_before_Xi hsep hp | |
| 2216 | - refine ⟨?_, hc.1, ?_⟩ | |
| 2217 | - · rw [heatedf, ite_eq_left hp, c.f_before_Xi hp] | |
| 2218 | - rfl | |
| 2219 | - · rw [c.heatedE_before coef (hp.trans (c.Xi_lt_heatJoin hsep).le), hc.2] | |
| 2220 | - rfl | |
| 2221 | - | |
| 2222 | -theorem heated_seed_moments (coef : ℝ → HeatedOutgoing.Coeff) | |
| 2223 | - (hsep : c.separation ≤ Real.exp (-8)) {X : ℝ} (hX : X ≤ Xi) (eta : ℝ) : | |
| 2224 | - moments c.U (c.heatedE coef) X eta = moments c.seedProfiles.U c.seedProfiles.E X eta := by | |
| 2225 | - ext i | |
| 2226 | - apply setIntegral_congr_fun measurableSet_Ioc | |
| 2227 | - intro x hx | |
| 2228 | - rcases c.heated_seed_fields coef hsep (p := (x, eta)) (hx.2.trans hX) with ⟨_, hU, hE⟩ | |
| 2229 | - simp only [density, hU, hE] | |
| 2230 | - | |
| 2231 | -theorem heated_seed_pressure (coef : ℝ → HeatedOutgoing.Coeff) | |
| 2232 | - (hsep : c.separation ≤ Real.exp (-8)) {p : Point} (hX : 0 ≤ p.1) (hp : p.1 ≤ Xi) : | |
| 2233 | - c.heatedPi coef p = c.seedProfiles.pressure p := by | |
| 2234 | - change F.axisDatum p.2 + moments c.U (c.heatedE coef) p.1 p.2 4 = _ | |
| 2235 | - rw [c.heated_seed_moments coef hsep hp] | |
| 2236 | - change F.axisDatum p.2 + moments c.seedProfiles.U c.seedProfiles.E p.1 p.2 4 = | |
| 2237 | - F.axisDatum p.2 + ProfileHistories.primitive (fun q => c.seedProfiles.f q ^ 2) p | |
| 2238 | - congr 1 | |
| 2239 | - rw [ProfileHistories.primitive, intervalIntegral.integral_of_le hX] | |
| 2240 | - apply setIntegral_congr_fun measurableSet_Ioc | |
| 2241 | - intro x hx | |
| 2242 | - exact congrArg (fun q : Debt => q 4) (regularDensity_eq c.seedProfiles hx.1 p.2) | |
| 2243 | - | |
| 2244 | -theorem Pi_smoothAt (hsep : c.separation ≤ Real.exp (-8)) {p : Point} | |
| 2245 | - (hX : 0 < p.1) (hη : p.2 ∈ ReferencePath.parameterInterval) (hs : SmallDebt F c.debt p.2) : | |
| 2246 | - ContDiffAt ℝ ∞ c.Pi p := by | |
| 2247 | - have hp := c.admissible_nonnegative hX.le hη hs | |
| 2248 | - apply ((c.profiles hsep).pressure_smooth.contDiffAt (c.admissibleDomain.isOpen.mem_nhds hp)).congr_of_eventuallyEq | |
| 2249 | - filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hX)] with q hq | |
| 2250 | - exact (c.profiles_pressure hsep hq.le).symm | |
| 2251 | - | |
| 2252 | -theorem heated_pressure_blend {B : ℝ} (w : HeatedOutgoing.CompensationWitness F c.radius B) | |
| 2253 | - (hsep : c.separation ≤ Real.exp (-8)) {p : Point} | |
| 2254 | - (hX : 0 < p.1) (hη : p.2 ∈ HeatedOutgoing.parameterDomain) (hs : SmallDebt F c.debt p.2) : | |
| 2255 | - c.heatedPi w.coefficients p = c.Pi p + c.heatBlend p.1 * | |
| 2256 | - (HeatedOutgoing.Pi F c.radius w.coefficients p - c.Pi p) := by | |
| 2257 | - by_cases ha : p.1 ≤ c.heatJoin | |
| 2258 | - · rw [c.heated_pressure_before w.coefficients ha, c.heatBlend_before ha] | |
| 2259 | - ring | |
| 2260 | - · have hhot := c.heated_pressure_after w hsep (X := p.1) (eta := p.2) (le_of_not_ge ha) hη hs | |
| 2261 | - change c.heatedPi w.coefficients (p.1, p.2) = _ | |
| 2262 | - rw [hhot] | |
| 2263 | - by_cases hR : p.1 ≤ c.radius | |
| 2264 | - · have hi := c.pressure_after_match hsep (X := p.1) (eta := p.2) (le_of_not_ge ha) | |
| 2265 | - (physical_band_in_parameterInterval hη) hs | |
| 2266 | - have ho := w.Pi_before_patch p.2 p.1 hη hX | |
| 2267 | - (hR.trans (HeatedOutgoing.entrance_before_patch F c.radius c.radius_pos).le) | |
| 2268 | - change HeatedOutgoing.Pi F c.radius w.coefficients p = _ | |
| 2269 | - rw [show c.Pi p = OutgoingDilation.Pi F c.radius p from hi, | |
| 2270 | - show HeatedOutgoing.Pi F c.radius w.coefficients p = OutgoingDilation.Pi F c.radius p from ho] | |
| 2271 | - ring | |
| 2272 | - · rw [c.heatBlend_after (le_of_not_ge hR)] | |
| 2273 | - ring | |
| 2274 | - | |
| 2275 | -theorem heatedPi_smooth {B : ℝ} (w : HeatedOutgoing.CompensationWitness F c.radius B) | |
| 2276 | - (hsep : c.separation ≤ Real.exp (-8)) : | |
| 2277 | - ContDiffOn ℝ ∞ (c.heatedPi w.coefficients) | |
| 2278 | - {p | p ∈ HeatedOutgoing.domain ∧ SmallDebt F c.debt p.2} := by | |
| 2279 | - have hc : ContDiffOn ℝ ∞ c.Pi {p | p ∈ HeatedOutgoing.domain ∧ SmallDebt F c.debt p.2} := by | |
| 2280 | - intro p hp | |
| 2281 | - exact (c.Pi_smoothAt hsep hp.1.1 (physical_band_in_parameterInterval hp.1.2) hp.2).contDiffWithinAt | |
| 2282 | - apply (hc.add (((c.heatBlend_smooth.comp contDiff_fst).contDiffOn).mul | |
| 2283 | - ((w.Pi_contDiffOn.mono (fun _ hp => hp.1)).sub hc))).congr | |
| 2284 | - intro p hp | |
| 2285 | - exact c.heated_pressure_blend w hsep hp.1.1 hp.1.2 hp.2 | |
| 2286 | - | |
| 2287 | 1963 | theorem heatedE_positive {B : ℝ} (w : HeatedOutgoing.CompensationWitness F c.radius B) |
| 2288 | 1964 | (hsep : c.separation ≤ Real.exp (-8)) {p : Point} |
| 2289 | 1965 | (hX : 0 < p.1) (hη : p.2 ∈ HeatedOutgoing.parameterDomain) (hs : SmallDebt F c.debt p.2) : |
| @@ -2366,13 +2042,6 @@ noncomputable def extendedProfiles {B : ℝ} (w : ExtendedHeatedOutgoing.Witness | ||
| 2366 | 2042 | pressure0 := F.axisDatum |
| 2367 | 2043 | pressure0_smooth := fun _ _ => F.axisDatum_contDiff.contDiffAt |
| 2368 | 2044 | |
| 2369 | -theorem extended_fields_smoothAt {B : ℝ} (w : ExtendedHeatedOutgoing.Witness F c.radius B) | |
| 2370 | - (hsep : c.separation ≤ Real.exp (-8)) {p : Point} (hp : p ∈ c.extendedDomain.carrier) : | |
| 2371 | - ContDiffAt ℝ ∞ (c.extendedf w.coefficients) p ∧ ContDiffAt ℝ ∞ c.U p ∧ | |
| 2372 | - ContDiffAt ℝ ∞ (c.extendedPi w.coefficients) p := | |
| 2373 | - ⟨c.extendedf_smoothAt w hsep hp, c.U_smoothAt hsep hp.1.1 hp.1.2, | |
| 2374 | - (c.extendedProfiles w hsep).pressure_smooth.contDiffAt (c.extendedDomain.isOpen.mem_nhds hp)⟩ | |
| 2375 | - | |
| 2376 | 2045 | theorem extendedE_physical (coef : ℝ → ExtendedHeatedOutgoing.Coeff) {p : Point} |
| 2377 | 2046 | (hX : 0 < p.1) (hη : p.2 ∈ HeatedOutgoing.parameterDomain) : |
| 2378 | 2047 | c.extendedE coef p = c.heatedE coef p := by |
| @@ -2380,14 +2049,6 @@ theorem extendedE_physical (coef : ℝ → ExtendedHeatedOutgoing.Coeff) {p : Po | ||
| 2380 | 2049 | rw [show ExtendedHeatedOutgoing.E F c.radius coef p = HeatedOutgoing.E F c.radius coef p from |
| 2381 | 2050 | ExtendedHeatedOutgoing.E_eq_physical F c.radius coef p.2 p.1 hη hX] |
| 2382 | 2051 | |
| 2383 | -theorem extendedf_physical (coef : ℝ → ExtendedHeatedOutgoing.Coeff) {p : Point} | |
| 2384 | - (hX : 0 < p.1) (hη : p.2 ∈ HeatedOutgoing.parameterDomain) : | |
| 2385 | - c.extendedf coef p = c.heatedf coef p := by | |
| 2386 | - unfold extendedf heatedf | |
| 2387 | - split_ifs | |
| 2388 | - · rfl | |
| 2389 | - · rw [c.extendedE_physical coef hX hη] | |
| 2390 | - | |
| 2391 | 2052 | theorem extendedPi_physical (coef : ℝ → ExtendedHeatedOutgoing.Coeff) |
| 2392 | 2053 | (hsep : c.separation ≤ Real.exp (-8)) {p : Point} |
| 2393 | 2054 | (hX : 0 ≤ p.1) (hη : p.2 ∈ HeatedOutgoing.parameterDomain) : |
| @@ -2520,10 +2181,6 @@ theorem exists_parameter_interval : | ||
| 2520 | 2181 | have hp := hV hη |
| 2521 | 2182 | exact W.controls.extendedDomain_nonnegative hX hp.1.1.2 hp.2 hp.1.2 |
| 2522 | 2183 | |
| 2523 | -theorem fields_smooth {p : Point} (hp : p ∈ W.domain.carrier) : | |
| 2524 | - ContDiffAt ℝ ∞ W.f p ∧ ContDiffAt ℝ ∞ W.U p ∧ ContDiffAt ℝ ∞ W.Pi p := | |
| 2525 | - W.controls.extended_fields_smoothAt W.heat W.separated hp | |
| 2526 | - | |
| 2527 | 2184 | theorem E_eq_sqrt_f {p : Point} (hX : 0 < p.1) : W.E p = Real.sqrt (2 * p.1) * W.f p := |
| 2528 | 2185 | W.controls.extendedE_eq_sqrt_f W.heat.coefficients W.separated hX |
| 2529 | 2186 | |
| @@ -2631,19 +2288,6 @@ theorem E_outgoing_between_patch_and_switch {X eta : ℝ} (hR : W.controls.radiu | ||
| 2631 | 2288 | |
| 2632 | 2289 | end Witness |
| 2633 | 2290 | |
| 2634 | -/-- Heat completion imposes a late radius bound on the already selected | |
| 2635 | -outgoing profile. Any matched continuation beyond that bound gives one | |
| 2636 | -actual nominal witness, retaining its entrance and ramp parameters. -/ | |
| 2637 | -theorem exists_assembly_threshold {F : Profile} {D : ℝ} (hF : OutgoingProfile.Specification F D) : | |
| 2638 | - ∃ R0 : ℝ, 0 < R0 ∧ ∀ (A : AxisStage F) (c : Controls A), R0 ≤ c.radius → | |
| 2639 | - c.separation ≤ Real.exp (-8) → | |
| 2640 | - (∀ eta ∈ HeatedOutgoing.parameterDomain, SmallDebt F c.debt eta) → Nonempty (Witness F) := by | |
| 2641 | - obtain ⟨R0, B, hR0, _hB, hw⟩ := ExtendedHeatedOutgoing.exists_witness F | |
| 2642 | - refine ⟨R0, hR0, ?_⟩ | |
| 2643 | - intro A c hr hsep hs | |
| 2644 | - obtain ⟨w⟩ := hw c.radius hr | |
| 2645 | - exact ⟨⟨A, c, D, hF, B, w, hsep, hs⟩⟩ | |
| 2646 | - | |
| 2647 | 2291 | theorem exists_assembly_threshold_preserving {F : Profile} {D : ℝ} |
| 2648 | 2292 | (hF : OutgoingProfile.Specification F D) : |
| 2649 | 2293 | ∃ R0 : ℝ, 0 < R0 ∧ ∀ (A : AxisStage F) (c : Controls A), R0 ≤ c.radius → |
+16 −0 routes/s1-ns-nominal-1/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-nominal-1 | |
| 6 | + | |
| 7 | +S-1, the family `NavierStokes/Nominal*`: delete 51 declarations that nothing uses, 438 lines in | |
| 8 | +`NavierStokes/NominalConeAssembly.lean` and `NavierStokes/NominalProfile.lean`. The diff is deletions | |
| 9 | +only. Checked before pushing: nothing left in the tree names any of the deleted short names (the only | |
| 10 | +hit is `pressure_canonical`, which is still declared as `Witness.pressure_canonical`), and none of the | |
| 11 | +deleted docstrings cites a numbered result of the paper. | |
| 12 | + | |
| 13 | +## Next | |
| 14 | + | |
| 15 | +Push the branch and open the pull request into `main`; then leave the rest to the `challenge` and | |
| 16 | +`build` checks. | |