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/Activation): delete 65 declarations nothing uses #134
Merged
+0 −260 NavierStokes/ActivationBounds.lean View file
| @@ -279,52 +279,6 @@ theorem width_uniform_jet_bound {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact | ||
| 279 | 279 | (mul_nonneg hy.1 (activation_nonneg T κ y hκ.2)) |
| 280 | 280 | nlinarith |
| 281 | 281 | |
| 282 | -theorem weightedPrimitive_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) | |
| 283 | - (hKJ : K ⊆ J) {B : Field} (hB : ContDiffOn ℝ ∞ B (logDomain J hJ).carrier) | |
| 284 | - (T0 : ℝ) (n : ℕ) : | |
| 285 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 286 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 287 | - |iteratedDeriv n (fun ξ => weightedPrimitive T κ B (y, ξ)) η| ≤ | |
| 288 | - M * y * activation T κ y := by | |
| 289 | - apply width_uniform_jet_bound hJ hK hKJ (primitiveErrorFactor_smooth hJ hB) | |
| 290 | - intro κ T hT u η _ | |
| 291 | - exact weightedPrimitive_scaled_factor hT.ne' κ B u η | |
| 292 | - | |
| 293 | -theorem controlled_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) | |
| 294 | - (hKJ : K ⊆ J) {F : Field} (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) | |
| 295 | - (T0 : ℝ) (n : ℕ) : | |
| 296 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 297 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 298 | - |iteratedDeriv n (fun ξ => controlled T κ F (y, ξ) - F (y, ξ)) η| ≤ | |
| 299 | - M * y * activation T κ y := by | |
| 300 | - apply width_uniform_jet_bound hJ hK hKJ (controlledErrorFactor_smooth hJ hF) | |
| 301 | - intro κ T hT u η hη | |
| 302 | - exact controlled_scaled_factor hT.ne' κ hJ hF u hη | |
| 303 | - | |
| 304 | -theorem angular_relative_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) | |
| 305 | - (hKJ : K ⊆ J) {L : Field} (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) | |
| 306 | - (T0 : ℝ) (n : ℕ) : | |
| 307 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 308 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 309 | - |iteratedDeriv n (fun ξ => | |
| 310 | - activatedAngular T κ L (y, ξ) / referenceAngular L (y, ξ) - 1) η| ≤ | |
| 311 | - M * y * activation T κ y := by | |
| 312 | - apply width_uniform_jet_bound hJ hK hKJ (relativeErrorFactor_smooth hJ hL) | |
| 313 | - intro κ T hT u η hη | |
| 314 | - exact angular_relative_scaled_factor hT.ne' κ hJ hL u hη | |
| 315 | - | |
| 316 | -theorem angular_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) | |
| 317 | - (hKJ : K ⊆ J) {L : Field} (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) | |
| 318 | - (T0 : ℝ) (n : ℕ) : | |
| 319 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 320 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 321 | - |iteratedDeriv n (fun ξ => | |
| 322 | - activatedAngular T κ L (y, ξ) - referenceAngular L (y, ξ)) η| ≤ | |
| 323 | - M * y * activation T κ y := by | |
| 324 | - apply width_uniform_jet_bound hJ hK hKJ (angularErrorFactor_smooth hJ hL) | |
| 325 | - intro κ T hT u η hη | |
| 326 | - exact angular_scaled_factor hT.ne' κ hJ hL u hη | |
| 327 | - | |
| 328 | 282 | /-! ## Width-uniform factors for the actual five histories -/ |
| 329 | 283 | |
| 330 | 284 | noncomputable def densityErrorFactor (X0 : ℝ) (L U : Field) |
| @@ -450,21 +404,6 @@ theorem history_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ X0 : ℝ) | ||
| 450 | 404 | dsimp only [scaledDistance, historyErrorFactor] |
| 451 | 405 | ring |
| 452 | 406 | |
| 453 | -theorem history_uniform_jets (X0 : ℝ) (initial : HistoryRow → ℝ → ℝ) | |
| 454 | - {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) (hKJ : K ⊆ J) {L U : Field} | |
| 455 | - (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) | |
| 456 | - (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) | |
| 457 | - (T0 : ℝ) (r : HistoryRow) (n : ℕ) : | |
| 458 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 459 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 460 | - |iteratedDeriv n (fun ξ => | |
| 461 | - logHistory X0 initial (activatedAngular T κ L) (controlled T κ U) r (y, ξ) - | |
| 462 | - logHistory X0 initial (referenceAngular L) U r (y, ξ)) η| ≤ | |
| 463 | - M * y * activation T κ y := by | |
| 464 | - apply width_uniform_jet_bound hJ hK hKJ (historyErrorFactor_smooth X0 hJ hL hU r) | |
| 465 | - intro κ T hT u η hη | |
| 466 | - exact history_scaled_factor hT.ne' κ X0 initial hJ hL hU r u hη | |
| 467 | - | |
| 468 | 407 | /-! ## Genuine parameter differentiation of the scaled factors -/ |
| 469 | 408 | |
| 470 | 409 | noncomputable def etaD (H : ScaledPoint → ℝ) (q : ScaledPoint) : ℝ := |
| @@ -504,12 +443,6 @@ theorem etaD_scaledDistance_mul (H : ScaledPoint → ℝ) (q : ScaledPoint) : | ||
| 504 | 443 | etaD (fun z => scaledDistance z * H z) q = scaledDistance q * etaD H q := by |
| 505 | 444 | exact deriv_const_mul_field (scaledDistance q) |
| 506 | 445 | |
| 507 | -theorem etaD_rescale {J : Set ℝ} (hJ : IsOpen J) {F : Field} | |
| 508 | - (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) {q : ScaledPoint} | |
| 509 | - (hq : q ∈ scaledDomain J) : etaD (rescale F) q = rescale (parameterPartial F) q := | |
| 510 | - (parameterPartial_hasDerivAt (logDomain J hJ) hF | |
| 511 | - (p := (q.1.2 * q.2.1, q.2.2)) ⟨mem_univ _, hq.2.2⟩).deriv | |
| 512 | - | |
| 513 | 446 | theorem etaD_congr {J : Set ℝ} (hJ : IsOpen J) {H G : ScaledPoint → ℝ} |
| 514 | 447 | (h : ∀ q ∈ scaledDomain J, H q = G q) {q : ScaledPoint} (hq : q ∈ scaledDomain J) : |
| 515 | 448 | etaD H q = etaD G q := by |
| @@ -519,205 +452,12 @@ theorem etaD_congr {J : Set ℝ} (hJ : IsOpen J) {H G : ScaledPoint → ℝ} | ||
| 519 | 452 | |
| 520 | 453 | /-! ## Independence of the continuation length on the natural overlap -/ |
| 521 | 454 | |
| 522 | -theorem continuation_radialPartial {R δ : ℝ} (hR : 0 < R) (hδ : 0 < δ) | |
| 523 | - (hδR : 2 * δ < R) {J : Set ℝ} (hJ : IsOpen J) {G : Field} | |
| 524 | - (hG : ContDiffOn ℝ ∞ G (ReferencePath.earlyStrip R hR J hJ).carrier) | |
| 525 | - {p : Point} (hη : p.2 ∈ J) : | |
| 526 | - radialPartial (ReferencePath.continuation δ G) p = | |
| 527 | - ReferencePath.slopeCutoff δ p.1 * radialPartial G p := | |
| 528 | - (radialPartial_hasDerivAt (ReferencePath.fullStrip J hJ) | |
| 529 | - (ReferencePath.continuation_smooth hR hδ hδR hJ hG) (p := p) ⟨mem_univ _, hη⟩).unique | |
| 530 | - (ReferencePath.continuation_hasDerivAt hR hδ hδR hJ hG (p := p) hη) | |
| 531 | - | |
| 532 | -theorem controlled_continuation_independent {R δ₁ δ₂ : ℝ} (hR : 0 < R) | |
| 533 | - (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < R) (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < R) | |
| 534 | - {J : Set ℝ} (hJ : IsOpen J) {G : Field} | |
| 535 | - (hG : ContDiffOn ℝ ∞ G (ReferencePath.earlyStrip R hR J hJ).carrier) | |
| 536 | - (T κ : ℝ) {p : Point} (hη : p.2 ∈ J) (hp₁ : p.1 ≤ δ₁) (hp₂ : p.1 ≤ δ₂) : | |
| 537 | - controlled T κ (ReferencePath.continuation δ₁ G) p = | |
| 538 | - controlled T κ (ReferencePath.continuation δ₂ G) p := by | |
| 539 | - have hzero₁ := ReferencePath.continuation_eq_natural hR hδ₁ hδ₁R hJ hG | |
| 540 | - (p := (0, p.2)) hη hδ₁.le | |
| 541 | - have hzero₂ := ReferencePath.continuation_eq_natural hR hδ₂ hδ₂R hJ hG | |
| 542 | - (p := (0, p.2)) hη hδ₂.le | |
| 543 | - unfold controlled | |
| 544 | - rw [hzero₁, hzero₂] | |
| 545 | - congr 1 | |
| 546 | - apply intervalIntegral.integral_congr | |
| 547 | - intro t ht | |
| 548 | - have ht₁ : t ≤ δ₁ := (mem_uIcc.mp ht).elim | |
| 549 | - (fun h => h.2.trans hp₁) (fun h => h.2.trans hδ₁.le) | |
| 550 | - have ht₂ : t ≤ δ₂ := (mem_uIcc.mp ht).elim | |
| 551 | - (fun h => h.2.trans hp₂) (fun h => h.2.trans hδ₂.le) | |
| 552 | - dsimp only | |
| 553 | - rw [continuation_radialPartial hR hδ₁ hδ₁R hJ hG (p := (t, p.2)) hη, | |
| 554 | - continuation_radialPartial hR hδ₂ hδ₂R hJ hG (p := (t, p.2)) hη, | |
| 555 | - ReferencePath.slopeCutoff_one hδ₁ ht₁, ReferencePath.slopeCutoff_one hδ₂ ht₂] | |
| 556 | - | |
| 557 | -theorem profileInitial_congr {D : RadialDomain} (P Q : Profiles D) | |
| 558 | - (h0 : ∀ η, P.pressure0 η = Q.pressure0 η) (r : HistoryRow) (η : ℝ) : | |
| 559 | - profileInitial P r η = profileInitial Q r η := by | |
| 560 | - cases r <;> simp only [profileInitial] | |
| 561 | - exact h0 η | |
| 562 | - | |
| 563 | 455 | namespace NaturalOverlap |
| 564 | 456 | |
| 565 | 457 | open ReferencePath |
| 566 | 458 | |
| 567 | 459 | variable (N : ReferencePath.Input) |
| 568 | 460 | |
| 569 | -theorem f_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) | |
| 570 | - (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) | |
| 571 | - (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) | |
| 572 | - {p : Point} (hη : p.2 ∈ parameterInterval) | |
| 573 | - (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : | |
| 574 | - FromReference.f N T κ δ₁ p = FromReference.f N T κ δ₂ p := by | |
| 575 | - by_cases hx : p.1 ≤ N.endpoint | |
| 576 | - · rw [FromReference.f_eq_reference N T κ δ₁ hx, FromReference.f_eq_reference N T κ δ₂ hx, | |
| 577 | - N.refF_eq_natural_initial δ₁ hx, N.refF_eq_natural_initial δ₂ hx] | |
| 578 | - · have hX : 0 < p.1 := N.endpoint_pos.trans (lt_of_not_ge hx) | |
| 579 | - rw [FromReference.f_eq_logtime N hT hδ₁ hδ₁R κ hη hX, | |
| 580 | - FromReference.f_eq_logtime N hT hδ₂ hδ₂R κ hη hX] | |
| 581 | - unfold activatedAngular FromReference.refLog | |
| 582 | - congr 1 | |
| 583 | - exact controlled_continuation_independent rampLimit_pos hδ₁ hδ₁R hδ₂ hδ₂R | |
| 584 | - parameterInterval_open N.logF_smooth T κ (p := (N.logTime p.1, p.2)) hη | |
| 585 | - ((N.logTime_le_iff hX).2 hp₁) ((N.logTime_le_iff hX).2 hp₂) | |
| 586 | - | |
| 587 | -theorem U_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) | |
| 588 | - (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) | |
| 589 | - (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) | |
| 590 | - {p : Point} (hη : p.2 ∈ parameterInterval) | |
| 591 | - (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : | |
| 592 | - FromReference.U N T κ δ₁ p = FromReference.U N T κ δ₂ p := by | |
| 593 | - by_cases hx : p.1 ≤ N.endpoint | |
| 594 | - · rw [FromReference.U_eq_reference N T κ δ₁ hx, FromReference.U_eq_reference N T κ δ₂ hx, | |
| 595 | - N.refU_eq_natural_initial δ₁ hx, N.refU_eq_natural_initial δ₂ hx] | |
| 596 | - · have hX : 0 < p.1 := N.endpoint_pos.trans (lt_of_not_ge hx) | |
| 597 | - rw [FromReference.U_eq_logtime N hT hδ₁ hδ₁R κ hη hX, | |
| 598 | - FromReference.U_eq_logtime N hT hδ₂ hδ₂R κ hη hX] | |
| 599 | - exact controlled_continuation_independent rampLimit_pos hδ₁ hδ₁R hδ₂ hδ₂R | |
| 600 | - parameterInterval_open N.logU_smooth T κ (p := (N.logTime p.1, p.2)) hη | |
| 601 | - ((N.logTime_le_iff hX).2 hp₁) ((N.logTime_le_iff hX).2 hp₂) | |
| 602 | - | |
| 603 | -/-- Equality is from the axis up to the comparison radius, so all recomputed | |
| 604 | -histories are equal, not just their endpoint fields. -/ | |
| 605 | -theorem histories_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) | |
| 606 | - (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) | |
| 607 | - (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) | |
| 608 | - (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) | |
| 609 | - {p : Point} (hη : p.2 ∈ parameterInterval) (hX : 0 ≤ p.1) | |
| 610 | - (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : | |
| 611 | - profileHistory (FromReference.histories N hT hδ₁ hδ₁R κ P0 hP0) r p = | |
| 612 | - profileHistory (FromReference.histories N hT hδ₂ hδ₂R κ P0 hP0) r p := by | |
| 613 | - let A := FromReference.histories N hT hδ₁ hδ₁R κ P0 hP0 | |
| 614 | - let B := FromReference.histories N hT hδ₂ hδ₂R κ P0 hP0 | |
| 615 | - have h0 : profileInitial A r p.2 = profileInitial B r p.2 := | |
| 616 | - profileInitial_congr A B (fun _ => rfl) r p.2 | |
| 617 | - have hf : ∀ x ∈ Icc (0 : ℝ) p.1, A.f (x, p.2) = B.f (x, p.2) := by | |
| 618 | - intro x hx | |
| 619 | - exact f_independent N hT hδ₁ hδ₁R hδ₂ hδ₂R κ (p := (x, p.2)) hη | |
| 620 | - (hx.2.trans hp₁) (hx.2.trans hp₂) | |
| 621 | - have hu : ∀ x ∈ Icc (0 : ℝ) p.1, A.U (x, p.2) = B.U (x, p.2) := by | |
| 622 | - intro x hx | |
| 623 | - exact U_independent N hT hδ₁ hδ₁R hδ₂ hδ₂R κ (p := (x, p.2)) hη | |
| 624 | - (hx.2.trans hp₁) (hx.2.trans hp₂) | |
| 625 | - exact profileHistory_congr_up_to A B r hX h0 hf hu | |
| 626 | - | |
| 627 | -theorem reference_histories_independent {δ₁ δ₂ : ℝ} | |
| 628 | - (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) | |
| 629 | - (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) | |
| 630 | - (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) | |
| 631 | - {p : Point} (hη : p.2 ∈ parameterInterval) (hX : 0 ≤ p.1) | |
| 632 | - (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : | |
| 633 | - profileHistory (N.histories hδ₁ hδ₁R P0 hP0) r p = | |
| 634 | - profileHistory (N.histories hδ₂ hδ₂R P0 hP0) r p := by | |
| 635 | - let A := N.histories hδ₁ hδ₁R P0 hP0 | |
| 636 | - let B := N.histories hδ₂ hδ₂R P0 hP0 | |
| 637 | - have h0 : profileInitial A r p.2 = profileInitial B r p.2 := | |
| 638 | - profileInitial_congr A B (fun _ => rfl) r p.2 | |
| 639 | - have hf : ∀ x ∈ Icc (0 : ℝ) p.1, A.f (x, p.2) = B.f (x, p.2) := by | |
| 640 | - intro x hx | |
| 641 | - exact (N.refF_eq_natural hδ₁ hδ₁R (p := (x, p.2)) hη (hx.2.trans hp₁)).trans | |
| 642 | - (N.refF_eq_natural hδ₂ hδ₂R (p := (x, p.2)) hη (hx.2.trans hp₂)).symm | |
| 643 | - have hu : ∀ x ∈ Icc (0 : ℝ) p.1, A.U (x, p.2) = B.U (x, p.2) := by | |
| 644 | - intro x hx | |
| 645 | - exact (N.refU_eq_natural hδ₁ hδ₁R (p := (x, p.2)) hη (hx.2.trans hp₁)).trans | |
| 646 | - (N.refU_eq_natural hδ₂ hδ₂R (p := (x, p.2)) hη (hx.2.trans hp₂)).symm | |
| 647 | - exact profileHistory_congr_up_to A B r hX h0 hf hu | |
| 648 | - | |
| 649 | -theorem radius_mono {s t : ℝ} (hst : s ≤ t) : radius N.endpoint s ≤ radius N.endpoint t := | |
| 650 | - mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr hst) N.endpoint_pos.le | |
| 651 | - | |
| 652 | -theorem fixed_history_scaled_factor {T δ : ℝ} (hT : 0 < T) | |
| 653 | - (hδ : 0 < δ) (hδR : 2 * δ < rampLimit) (κ : ℝ) | |
| 654 | - (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) | |
| 655 | - (u : ℝ) {η : ℝ} (hη : η ∈ parameterInterval) : | |
| 656 | - profileHistory (FromReference.histories N hT hδ hδR κ P0 hP0) r | |
| 657 | - (radius N.endpoint (T * u), η) - | |
| 658 | - profileHistory (N.histories hδ hδR P0 hP0) r (radius N.endpoint (T * u), η) = | |
| 659 | - scaledDistance ((κ, T), (u, η)) * | |
| 660 | - historyErrorFactor N.endpoint (FromReference.refLog N δ) (FromReference.refAxial N δ) r | |
| 661 | - ((κ, T), (u, η)) := by | |
| 662 | - rw [FromReference.histories_log_formula N hT hδ hδR κ P0 hP0 r (T * u) hη, | |
| 663 | - FromReference.reference_histories_log_formula N hδ hδR P0 hP0 r (T * u) hη] | |
| 664 | - exact history_scaled_factor hT.ne' κ N.endpoint _ parameterInterval_open | |
| 665 | - (FromReference.refLog_smooth N hδ hδR) (FromReference.refAxial_smooth N hδ hδR) r u hη | |
| 666 | - | |
| 667 | -/-- The manuscript uses the same width for ACT and REF. Its first-ramp | |
| 668 | -histories have the fixed-reference factors whenever `T ≤ δ0`. -/ | |
| 669 | -theorem diagonal_history_scaled_factor {T δ0 : ℝ} (hT : 0 < T) | |
| 670 | - (hTR : 2 * T < rampLimit) (hδ0 : 0 < δ0) (hδ0R : 2 * δ0 < rampLimit) | |
| 671 | - (hTδ0 : T ≤ δ0) (κ : ℝ) (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) | |
| 672 | - (r : HistoryRow) {u η : ℝ} (hu : u ∈ Icc (0 : ℝ) 1) (hη : η ∈ parameterInterval) : | |
| 673 | - profileHistory (FromReference.histories N hT hT hTR κ P0 hP0) r | |
| 674 | - (radius N.endpoint (T * u), η) - | |
| 675 | - profileHistory (N.histories hT hTR P0 hP0) r (radius N.endpoint (T * u), η) = | |
| 676 | - scaledDistance ((κ, T), (u, η)) * | |
| 677 | - historyErrorFactor N.endpoint (FromReference.refLog N δ0) (FromReference.refAxial N δ0) r | |
| 678 | - ((κ, T), (u, η)) := by | |
| 679 | - have hy : T * u ≤ T := mul_le_of_le_one_right hT.le hu.2 | |
| 680 | - have hx : 0 ≤ radius N.endpoint (T * u) := (mul_pos N.endpoint_pos (Real.exp_pos _)).le | |
| 681 | - have hxT := radius_mono N hy | |
| 682 | - have hxδ0 := radius_mono N (hy.trans hTδ0) | |
| 683 | - rw [histories_independent N hT hT hTR hδ0 hδ0R κ P0 hP0 r hη hx hxT hxδ0, | |
| 684 | - reference_histories_independent N hT hTR hδ0 hδ0R P0 hP0 r hη hx hxT hxδ0] | |
| 685 | - exact fixed_history_scaled_factor N hT hδ0 hδ0R κ P0 hP0 r u hη | |
| 686 | - | |
| 687 | -theorem diagonal_histories_uniform_jets {δ0 : ℝ} (hδ0 : 0 < δ0) | |
| 688 | - (hδ0R : 2 * δ0 < rampLimit) (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) | |
| 689 | - {K : Set ℝ} (hK : IsCompact K) (hKJ : K ⊆ parameterInterval) (r : HistoryRow) (n : ℕ) : | |
| 690 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T (hT : T ∈ Ioc (0 : ℝ) δ0) (hTR : 2 * T < rampLimit), | |
| 691 | - ∀ κ ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, | |
| 692 | - |iteratedDeriv n (fun ξ => | |
| 693 | - profileHistory (FromReference.histories N hT.1 hT.1 hTR κ P0 hP0) r (radius N.endpoint y, ξ) - | |
| 694 | - profileHistory (N.histories hT.1 hTR P0 hP0) r (radius N.endpoint y, ξ)) η| ≤ | |
| 695 | - M * y * activation T κ y := by | |
| 696 | - obtain ⟨M, hM, hb⟩ := history_uniform_jets N.endpoint (fun _ _ => 0) | |
| 697 | - parameterInterval_open hK hKJ (FromReference.refLog_smooth N hδ0 hδ0R) | |
| 698 | - (FromReference.refAxial_smooth N hδ0 hδ0R) δ0 r n | |
| 699 | - refine ⟨M, hM, ?_⟩ | |
| 700 | - intro T hT hTR κ hκ y hy η hη | |
| 701 | - let u := y / T | |
| 702 | - have hu : u ∈ Icc (0 : ℝ) 1 := | |
| 703 | - ⟨div_nonneg hy.1 hT.1.le, (div_le_one hT.1).2 hy.2⟩ | |
| 704 | - have hTu : T * u = y := by dsimp only [u]; field_simp [hT.1.ne'] | |
| 705 | - have heq : (fun ξ => | |
| 706 | - profileHistory (FromReference.histories N hT.1 hT.1 hTR κ P0 hP0) r (radius N.endpoint y, ξ) - | |
| 707 | - profileHistory (N.histories hT.1 hTR P0 hP0) r (radius N.endpoint y, ξ)) =ᶠ[𝓝 η] | |
| 708 | - (fun ξ => logHistory N.endpoint (fun _ _ => 0) | |
| 709 | - (activatedAngular T κ (FromReference.refLog N δ0)) | |
| 710 | - (controlled T κ (FromReference.refAxial N δ0)) r (y, ξ) - | |
| 711 | - logHistory N.endpoint (fun _ _ => 0) (referenceAngular (FromReference.refLog N δ0)) | |
| 712 | - (FromReference.refAxial N δ0) r (y, ξ)) := by | |
| 713 | - filter_upwards [parameterInterval_open.mem_nhds (hKJ hη)] with ξ hξ | |
| 714 | - rw [← hTu] | |
| 715 | - exact (diagonal_history_scaled_factor N hT.1 hTR hδ0 hδ0R hT.2 κ P0 hP0 r hu hξ).trans | |
| 716 | - (history_scaled_factor hT.1.ne' κ N.endpoint (fun _ _ => 0) parameterInterval_open | |
| 717 | - (FromReference.refLog_smooth N hδ0 hδ0R) (FromReference.refAxial_smooth N hδ0 hδ0R) r u hξ).symm | |
| 718 | - rw [heq.iteratedDeriv_eq n] | |
| 719 | - exact hb T hT κ hκ y hy η hη | |
| 720 | - | |
| 721 | 461 | end NaturalOverlap |
| 722 | 462 | |
| 723 | 463 | end NavierStokes.ActivationBounds |
+0 −64 NavierStokes/ActivationCone.lean View file
| @@ -117,22 +117,6 @@ theorem collar_lower_of_errors {c B r e s v : ℝ} | ||
| 117 | 117 | have hm := mul_le_mul_of_nonneg_left (show r + s ≤ B + 1 by linarith) he |
| 118 | 118 | nlinarith |
| 119 | 119 | |
| 120 | -/-- Combining the ramp and collar estimates gives the actual lower-root | |
| 121 | -criterion, including the strict lower bound on `v`. -/ | |
| 122 | -theorem true_collar_of_errors {c B r e s P J v : ℝ} | |
| 123 | - (hc : 0 < c) (hr : 2 + c ≤ r) (hrB : r ≤ B) | |
| 124 | - (he : 0 < e) (he1 : e ≤ 1) (hs : 0 ≤ s) | |
| 125 | - (hsquarter : s ≤ 1 / 4) (hsc : s ≤ c / 2) | |
| 126 | - (hsB : (B + 1) * s ≤ 1 / 4) (heB : e * (B + 1) ≤ c / 4) | |
| 127 | - (hP : |P - r| ≤ s * e) (hv : |v - (1 - e) * r| ≤ s * e) | |
| 128 | - (hJ : |J| ≤ s * e) : | |
| 129 | - e ≤ P - v ∧ 2 + c / 2 < v ∧ 2 < P ∧ v < coneBound P J := by | |
| 130 | - obtain ⟨hgap, _, hquad⟩ := ramp_cone_of_errors hc hr hrB he he1 hs hsquarter hsc hsB hP hv hJ | |
| 131 | - have hvc := collar_lower_of_errors hc hr hrB he.le (by linarith) heB hv | |
| 132 | - have hv2 : 2 < v := by linarith | |
| 133 | - have hcone := (true_cone_iff hv2).mpr ⟨by linarith, hquad⟩ | |
| 134 | - exact ⟨hgap, hvc, hcone⟩ | |
| 135 | - | |
| 136 | 120 | /-- A single error tolerance is chosen from the fixed reference bounds. -/ |
| 137 | 121 | noncomputable def errorTolerance (c B : ℝ) : ℝ := |
| 138 | 122 | min (1 / 4) (min (c / 2) (1 / (4 * (B + 1)))) |
| @@ -272,62 +256,14 @@ theorem reducedStress_smooth {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ | ||
| 272 | 256 | (hF.mul (hA.add (hy.mul hdA))).prodMk |
| 273 | 257 | (hF.mul (hB.add (hy.mul (hdB.sub ((hκ.mul hB).mul hdR))))) |
| 274 | 258 | |
| 275 | -/-- A common coefficient bound makes the normalized stress direction nonzero | |
| 276 | -on a uniform first collar; the bound does not involve inverse damping. -/ | |
| 277 | -theorem reducedStress_first_positive {F A B κ y dA dB dR α M : ℝ} | |
| 278 | - (hF : 0 < F) (hα : 0 < α) (hA : α ≤ A) (hy : 0 ≤ y) | |
| 279 | - (hdA : |dA| ≤ M) (hsmall : y * M ≤ α / 2) : | |
| 280 | - 0 < (reducedStress F A B κ y dA dB dR).1 := by | |
| 281 | - apply mul_pos hF | |
| 282 | - have hlo := (abs_le.mp hdA).1 | |
| 283 | - have hm := mul_le_mul_of_nonneg_left hlo hy | |
| 284 | - nlinarith | |
| 285 | - | |
| 286 | -theorem reducedStress_nonzero {F A B κ y dA dB dR α M : ℝ} | |
| 287 | - (hF : 0 < F) (hα : 0 < α) (hA : α ≤ A) (hy : 0 ≤ y) | |
| 288 | - (hdA : |dA| ≤ M) (hsmall : y * M ≤ α / 2) : | |
| 289 | - reducedStress F A B κ y dA dB dR ≠ 0 := by | |
| 290 | - intro hz | |
| 291 | - have hpos := reducedStress_first_positive (B := B) (κ := κ) (dB := dB) (dR := dR) | |
| 292 | - hF hα hA hy hdA hsmall | |
| 293 | - rw [hz] at hpos | |
| 294 | - exact (lt_irrefl (0 : ℝ)) hpos | |
| 295 | - | |
| 296 | -theorem reducedStress_edge_projection (F A B κ dA dB dR : ℝ) : | |
| 297 | - (reducedStress F A B κ 0 dA dB dR).1 + | |
| 298 | - (B / A) * (reducedStress F A B κ 0 dA dB dR).2 = | |
| 299 | - F * (A + B ^ 2 / A) := by | |
| 300 | - simp only [reducedStress_at_edge] | |
| 301 | - ring | |
| 302 | - | |
| 303 | -/-- The true angular directional margin has a strictly positive edge limit. -/ | |
| 304 | -theorem reducedStress_edge_margin {F A B c κ dA dB dR : ℝ} | |
| 305 | - (hF : 0 < F) (hc : 0 < c) (hr : 2 + c ≤ A + B ^ 2 / A) : | |
| 306 | - 2 * F < (reducedStress F A B κ 0 dA dB dR).1 + | |
| 307 | - (B / A) * (reducedStress F A B κ 0 dA dB dR).2 := by | |
| 308 | - rw [reducedStress_edge_projection] | |
| 309 | - nlinarith | |
| 310 | - | |
| 311 | 259 | /-- The quadratic cone gap after removing the square of the flat activation. -/ |
| 312 | 260 | noncomputable def normalizedConeGap (r v y dP dv dJ : ℝ) : ℝ := |
| 313 | 261 | 2 * (r + y * (dP - dv)) ^ 2 - (v - 2) * (y * dJ) ^ 2 |
| 314 | 262 | |
| 315 | -theorem cone_gap_factorization (r e y dP dv dJ : ℝ) : | |
| 316 | - 2 * ((r + y * e * dP) - ((1 - e) * r + y * e * dv)) ^ 2 - | |
| 317 | - (((1 - e) * r + y * e * dv) - 2) * (y * e * dJ) ^ 2 = | |
| 318 | - e ^ 2 * normalizedConeGap r ((1 - e) * r + y * e * dv) y dP dv dJ := by | |
| 319 | - unfold normalizedConeGap | |
| 320 | - ring | |
| 321 | - | |
| 322 | 263 | @[simp] theorem normalizedConeGap_at_edge (r v dP dv dJ : ℝ) : |
| 323 | 264 | normalizedConeGap r v 0 dP dv dJ = 2 * r ^ 2 := by |
| 324 | 265 | simp [normalizedConeGap] |
| 325 | 266 | |
| 326 | -theorem normalizedConeGap_edge_positive {r : ℝ} (hr : r ≠ 0) (v dP dv dJ : ℝ) : | |
| 327 | - 0 < normalizedConeGap r v 0 dP dv dJ := by | |
| 328 | - rw [normalizedConeGap_at_edge] | |
| 329 | - positivity | |
| 330 | - | |
| 331 | 267 | /-- The actual cone coordinates formed from two stock coordinates and a shear ratio. -/ |
| 332 | 268 | noncomputable def stockProjection (p q t : ℝ) : ℝ := p + q * t |
| 333 | 269 | noncomputable def stockCross (p q t : ℝ) : ℝ := q - p * t |
+0 −32 NavierStokes/ActivationContinuation.lean View file
| @@ -1518,12 +1518,6 @@ theorem profiles_mem {p : Point} (hp : p.2 ∈ Icc (-1 : ℝ) 1) (hX : 0 ≤ p.1 | ||
| 1518 | 1518 | p ∈ r.reference.domain.carrier := |
| 1519 | 1519 | ReferenceJetBounds.reference_mem _ hX hp |
| 1520 | 1520 | |
| 1521 | -theorem bigTime_pos : 0 < r.reference.bigTime := r.refTime_pos.trans_le r.before_big | |
| 1522 | - | |
| 1523 | -theorem holdTime_pos : 0 < r.holdTime := by | |
| 1524 | - dsimp [holdTime] | |
| 1525 | - linarith [r.bigTime_pos, r.widthU_pos, r.widthA_pos] | |
| 1526 | - | |
| 1527 | 1521 | theorem startRadius_pos : 0 < r.startRadius := |
| 1528 | 1522 | mul_pos r.reference.radius0_pos (Real.exp_pos _) |
| 1529 | 1523 | |
| @@ -1991,14 +1985,6 @@ noncomputable def endpointAxial : ℝ → ℝ := | ||
| 1991 | 1985 | noncomputable def endpointLogarithm : ℝ → ℝ := |
| 1992 | 1986 | r.reference.endpointLog r.actTime r.kappa r.widthU r.widthA C |
| 1993 | 1987 | |
| 1994 | -theorem endpointAxial_smooth : | |
| 1995 | - ContDiffOn ℝ ∞ r.endpointAxial ReferencePath.parameterInterval := | |
| 1996 | - r.reference.endpointU_smooth ReferencePath.parameterInterval_open _ _ _ | |
| 1997 | - | |
| 1998 | -theorem endpointLogarithm_smooth : | |
| 1999 | - ContDiffOn ℝ ∞ r.endpointLogarithm ReferencePath.parameterInterval := | |
| 2000 | - r.reference.endpointLog_smooth ReferencePath.parameterInterval_open _ _ _ _ _ | |
| 2001 | - | |
| 2002 | 1988 | theorem initial_fields {p : Point} (hη : p.2 ∈ ReferencePath.parameterInterval) |
| 2003 | 1989 | (hX : p.1 ≤ (ReferencePath.Input.ofNatural hΛ F).endpoint * Real.exp r.refTime) : |
| 2004 | 1990 | r.profiles.f p = StressActivation.FromReference.f (ReferencePath.Input.ofNatural hΛ F) |
| @@ -2008,24 +1994,6 @@ theorem initial_fields {p : Point} (hη : p.2 ∈ ReferencePath.parameterInterva | ||
| 2008 | 1994 | TransitionRamp.physical_fields_eq_activation F hΛ hsmall r.refTime_pos r.refTime_bound hP0 |
| 2009 | 1995 | r.actTime_pos r.before_big r.widthU_pos r.widthA_pos hη hX |
| 2010 | 1996 | |
| 2011 | -theorem terminal_fields (hC : 0 < C) {p : Point} (hη : p.2 ∈ ReferencePath.parameterInterval) | |
| 2012 | - (hX : 110 ≤ p.1) : | |
| 2013 | - r.profiles.f p = C⁻¹ * Real.exp (Real.log (p.1 / 110) / 10 + r.endpointLogarithm p.2) / | |
| 2014 | - Real.sqrt (2 * p.1) ∧ r.profiles.U p = r.endpointAxial p.2 := by | |
| 2015 | - have hR : r.reference.radius0 < 110 := (r.reference.radius0_lt_100 r.bigTime_pos).trans (by norm_num) | |
| 2016 | - have hfit : r.reference.bigTime + r.widthU + r.widthA ≤ r.reference.finalTime := r.finish_before.le | |
| 2017 | - refine ⟨r.reference.physicalF_held ReferencePath.parameterInterval_open r.widthA_pos | |
| 2018 | - hfit hR hC hX hη, ?_⟩ | |
| 2019 | - exact r.reference.physicalU_held ReferencePath.parameterInterval_open r.widthU_pos | |
| 2020 | - (by linarith [r.widthA_pos]) hR hX hη | |
| 2021 | - | |
| 2022 | -theorem endpointLogarithm_eq_actual (hC : 0 < C) {η : ℝ} | |
| 2023 | - (hη : η ∈ ReferencePath.parameterInterval) : | |
| 2024 | - r.endpointLogarithm η = Real.log (C * r.profiles.E (110, η)) := by | |
| 2025 | - have hR : r.reference.radius0 < 110 := (r.reference.radius0_lt_100 r.bigTime_pos).trans (by norm_num) | |
| 2026 | - exact r.reference.endpointLog_eq_actual ReferencePath.parameterInterval_open r.widthA_pos | |
| 2027 | - r.finish_before.le hR hC hη | |
| 2028 | - | |
| 2029 | 1997 | end RampParameters |
| 2030 | 1998 | |
| 2031 | 1999 | end NavierStokes.ActivationContinuation |
+0 −259 NavierStokes/ActivationHolomorphic.lean View file
| @@ -281,13 +281,6 @@ theorem slice_continuous {Ω : Set ℂ} {F : CField} (hΩ : IsOpen Ω) | ||
| 281 | 281 | exact ((hF.contDiffAt ((isOpen_univ.prod hΩ).mem_nhds ⟨mem_univ _,hz⟩)).comp x |
| 282 | 282 | (contDiffAt_id.prodMk contDiffAt_const)).continuousAt |
| 283 | 283 | |
| 284 | -theorem primitive_hasDerivAt {Ω : Set ℂ} {F : CField} (hΩ : IsOpen Ω) | |
| 285 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ω)) {p : CPoint} (hp : p.2 ∈ Ω) : | |
| 286 | - HasDerivAt (fun x => primitive F (x,p.2)) (F p) p.1 := by | |
| 287 | - have hc := slice_continuous hΩ hF hp | |
| 288 | - exact intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 p.1) | |
| 289 | - hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt | |
| 290 | - | |
| 291 | 284 | def dampedSlope (δ : ℝ) (G : CField) (p : CPoint) : ℂ := |
| 292 | 285 | (ReferencePath.slopeCutoff δ p.1 : ℂ) * radial G p |
| 293 | 286 | |
| @@ -331,14 +324,6 @@ theorem regular_continuation {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) (hδT : 2* | ||
| 331 | 324 | exact hG.holomorphic 0 hT |
| 332 | 325 | exact hzero.add hi |
| 333 | 326 | |
| 334 | -theorem continuation_hasDerivAt {T δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < T) | |
| 335 | - {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : CField} (hG : Regular (Iio T) Ω G) | |
| 336 | - {p : CPoint} (hp : p.2 ∈ Ω) : | |
| 337 | - HasDerivAt (fun x => continuation δ G (x,p.2)) (dampedSlope δ G p) p.1 := by | |
| 338 | - unfold continuation | |
| 339 | - simpa only [zero_add] using (hasDerivAt_const p.1 (G (0,p.2))).fun_add | |
| 340 | - (primitive_hasDerivAt hΩ (regular_dampedSlope hδ hδT hΩ hG).smooth hp) | |
| 341 | - | |
| 342 | 327 | theorem continuation_eq_initial {T δ : ℝ} (_ : 0 < T) (hδ : 0 < δ) (hδT : 2*δ < T) |
| 343 | 328 | {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : CField} (hG : Regular (Iio T) Ω G) |
| 344 | 329 | {p : CPoint} (hp : p.2 ∈ Ω) (hx : p.1 ≤ δ) : continuation δ G p = G p := by |
| @@ -548,8 +533,6 @@ theorem logU_real (t η : ℝ) : E.logU (t,(η : ℂ)) = (N.logU (t,η) : ℂ) : | ||
| 548 | 533 | |
| 549 | 534 | def refLog (δ : ℝ) : CField := continuation δ E.logF |
| 550 | 535 | def refAxial (δ : ℝ) : CField := continuation δ E.logU |
| 551 | -def refF (δ : ℝ) : CField := attach N E.f (fun p => Complex.exp (E.refLog δ p)) | |
| 552 | -def refU (δ : ℝ) : CField := attach N E.U (E.refAxial δ) | |
| 553 | 536 | def actLog (T κ δ : ℝ) : CField := controlled T κ (E.refLog δ) |
| 554 | 537 | def actAxial (T κ δ : ℝ) : CField := controlled T κ (E.refAxial δ) |
| 555 | 538 | def actF (T κ δ : ℝ) : CField := attach N E.f (fun p => Complex.exp (E.actLog T κ δ p)) |
| @@ -597,16 +580,6 @@ theorem axial_attach_regular (hΩ : IsOpen Ω) {G : CField} (hG : Regular univ | ||
| 597 | 580 | change E.U (expPoint N (logPoint N p)) = E.U p |
| 598 | 581 | rw [expPoint_logPoint N hp] |
| 599 | 582 | |
| 600 | -theorem refF_regular (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) : | |
| 601 | - Regular (Ioi (-R)) Ω (E.refF δ) := | |
| 602 | - E.angular_attach_regular hΩ (E.refLog_regular hΩ hδ hδT) | |
| 603 | - (fun _ hp ht => E.refLog_initial hΩ hδ hδT hp ht) | |
| 604 | - | |
| 605 | -theorem refU_regular (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) : | |
| 606 | - Regular (Ioi (-R)) Ω (E.refU δ) := | |
| 607 | - E.axial_attach_regular hΩ (E.refAxial_regular hΩ hδ hδT) | |
| 608 | - (fun _ hp ht => E.refAxial_initial hΩ hδ hδT hp ht) | |
| 609 | - | |
| 610 | 583 | theorem actF_regular (hΩ : IsOpen Ω) {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 611 | 584 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) : Regular (Ioi (-R)) Ω (E.actF T κ δ) := by |
| 612 | 585 | apply E.angular_attach_regular hΩ (regular_controlled T κ hΩ (E.refLog_regular hΩ hδ hδT)) |
| @@ -649,23 +622,6 @@ theorem actAxial_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.ram | ||
| 649 | 622 | (StressActivation.FromReference.refAxial_smooth N hδ hδT) |
| 650 | 623 | (fun x _ hη => E.refAxial_real hδ hδT x hη) x hη |
| 651 | 624 | |
| 652 | -theorem refF_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) | |
| 653 | - (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : | |
| 654 | - E.refF δ (x,(η : ℂ)) = (N.refF δ (x,η) : ℂ) := by | |
| 655 | - by_cases hx : x ≤ N.endpoint | |
| 656 | - · simp only [refF,attach,ite_eq_left hx,ReferencePath.Input.refF,E.f_real] | |
| 657 | - · simp only [refF,attach,ite_eq_right hx,ReferencePath.Input.refF,logPoint] | |
| 658 | - rw [E.refLog_real hδ hδT _ hη,Complex.ofReal_exp] | |
| 659 | - rfl | |
| 660 | - | |
| 661 | -theorem refU_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) | |
| 662 | - (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : | |
| 663 | - E.refU δ (x,(η : ℂ)) = (N.refU δ (x,η) : ℂ) := by | |
| 664 | - by_cases hx : x ≤ N.endpoint | |
| 665 | - · simp only [refU,attach,ite_eq_left hx,ReferencePath.Input.refU,E.U_real] | |
| 666 | - · simp only [refU,attach,ite_eq_right hx,ReferencePath.Input.refU,logPoint] | |
| 667 | - exact E.refAxial_real hδ hδT _ hη | |
| 668 | - | |
| 669 | 625 | theorem actF_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 670 | 626 | (T κ x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 671 | 627 | E.actF T κ δ (x,(η : ℂ)) = (StressActivation.FromReference.f N T κ δ (x,η) : ℂ) := by |
| @@ -682,16 +638,6 @@ theorem actU_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLim | ||
| 682 | 638 | · simp only [actU,attach,ite_eq_right hx,StressActivation.FromReference.U,logPoint] |
| 683 | 639 | exact E.actAxial_real hδ hδT T κ _ hη |
| 684 | 640 | |
| 685 | -theorem actF_ne_zero (T κ δ : ℝ) {p : CPoint} (hx : 0 ≤ p.1) (hz : p.2 ∈ Ω) : | |
| 686 | - E.actF T κ δ p ≠ 0 := by | |
| 687 | - by_cases he : p.1 ≤ N.endpoint | |
| 688 | - · have hp := E.initial_half p.1 ⟨hx,he⟩ p.2 hz | |
| 689 | - rw [actF,attach,ite_eq_left he] | |
| 690 | - intro hn | |
| 691 | - simp only [hn,Complex.zero_re,lt_self_iff_false] at hp | |
| 692 | - · simp only [actF,attach,ite_eq_right he] | |
| 693 | - exact Complex.exp_ne_zero _ | |
| 694 | - | |
| 695 | 641 | end NaturalExtension |
| 696 | 642 | |
| 697 | 643 | open NaturalAxisCoefficients NaturalEntrance |
| @@ -926,22 +872,6 @@ theorem exists_natural_extension (hΛ : 0 < Λ) (hsmall : NaturalAxisData.SmallP | ||
| 926 | 872 | |
| 927 | 873 | end NaturalConstruction |
| 928 | 874 | |
| 929 | -def radialJet (F : CField) (k : ℕ) (p : CPoint) : ℂ := | |
| 930 | - iteratedDeriv k (fun x => F (x,p.2)) p.1 | |
| 931 | - | |
| 932 | -theorem radialJet_succ (F : CField) (k : ℕ) : radialJet F (k+1) = radial (radialJet F k) := by | |
| 933 | - funext p | |
| 934 | - simp only [radialJet,radial,iteratedDeriv_succ] | |
| 935 | - | |
| 936 | -theorem Regular.radialJet {S : Set ℝ} {Ω : Set ℂ} {F : CField} | |
| 937 | - (hF : Regular S Ω F) (hS : IsOpen S) (hΩ : IsOpen Ω) (k : ℕ) : | |
| 938 | - Regular S Ω (radialJet F k) := by | |
| 939 | - induction k with | |
| 940 | - | zero => | |
| 941 | - unfold ActivationHolomorphic.radialJet | |
| 942 | - simpa only [iteratedDeriv_zero,Prod.eta] using hF | |
| 943 | - | succ k ih => rw [radialJet_succ]; exact ih.radial hS hΩ | |
| 944 | - | |
| 945 | 875 | theorem scale_half_interval {R : ℝ} (hR : 0 < R) {x : ℝ} (hx : x ∈ Ioi (-R)) |
| 946 | 876 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) 1) : t*x ∈ Ioi (-R) := by |
| 947 | 877 | rcases le_total x 0 with hn | hp |
| @@ -1037,18 +967,6 @@ theorem regular {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) | ||
| 1037 | 967 | (fun _ hx _ ht => scale_half_interval E.natural.radius_pos hx ht), |
| 1038 | 968 | regular_pressure E.natural.radius_pos E.isOpen hf E.pressure0_analytic⟩ |
| 1039 | 969 | |
| 1040 | -/-- The width of the holomorphic domain is unchanged at every fixed radial | |
| 1041 | -derivative order. These are actual iterated derivatives of the functions. -/ | |
| 1042 | -theorem all_radial_jets {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) | |
| 1043 | - (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) (k : ℕ) : | |
| 1044 | - Regular (Ioi (-R)) Ω (radialJet (E.f T κ δ) k) ∧ | |
| 1045 | - Regular (Ioi (-R)) Ω (radialJet (E.U T κ δ) k) ∧ | |
| 1046 | - Regular (Ioi (-R)) Ω (radialJet (E.Ubar T κ δ) k) ∧ | |
| 1047 | - Regular (Ioi (-R)) Ω (radialJet (E.Pi T κ δ) k) := by | |
| 1048 | - obtain ⟨hf,hu,hv,hp⟩ := E.regular hT hδ hδT κ | |
| 1049 | - exact ⟨hf.radialJet isOpen_Ioi E.isOpen k,hu.radialJet isOpen_Ioi E.isOpen k, | |
| 1050 | - hv.radialJet isOpen_Ioi E.isOpen k,hp.radialJet isOpen_Ioi E.isOpen k⟩ | |
| 1051 | - | |
| 1052 | 970 | /-- The signed-square pullbacks are smooth and holomorphic through the axis, |
| 1053 | 971 | and are even in the signed radius. -/ |
| 1054 | 972 | theorem signed_regular {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| @@ -1061,9 +979,6 @@ theorem signed_regular {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) | ||
| 1061 | 979 | exact ⟨hf.signedSquare E.natural.radius_pos,hu.signedSquare E.natural.radius_pos, |
| 1062 | 980 | hv.signedSquare E.natural.radius_pos,hp.signedSquare E.natural.radius_pos⟩ |
| 1063 | 981 | |
| 1064 | -theorem f_ne_zero (T κ δ : ℝ) {x : ℝ} (hx : 0 ≤ x) {z : ℂ} (hz : z ∈ Ω) : | |
| 1065 | - E.f T κ δ (x,z) ≠ 0 := E.natural.actF_ne_zero T κ δ hx hz | |
| 1066 | - | |
| 1067 | 982 | /-- Agreement includes the literal axis-to-radius average and pressure, |
| 1068 | 983 | with no independently prescribed moment data. -/ |
| 1069 | 984 | theorem real_profiles {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| @@ -1079,28 +994,6 @@ theorem real_profiles {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) | ||
| 1079 | 994 | · exact average_ofReal (fun y => E.natural.actU_real hδ hδT T κ y hη) x |
| 1080 | 995 | · exact pressure_ofReal (fun y => E.natural.actF_real hδ hδT T κ y hη) (E.pressure0_real η) x |
| 1081 | 996 | |
| 1082 | -theorem reference_regular {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) : | |
| 1083 | - Regular (Ioi (-R)) Ω (E.natural.refF δ) ∧ | |
| 1084 | - Regular (Ioi (-R)) Ω (E.natural.refU δ) ∧ | |
| 1085 | - Regular (Ioi (-R)) Ω (average (E.natural.refU δ)) ∧ | |
| 1086 | - Regular (Ioi (-R)) Ω (pressure E.pressure0 (E.natural.refF δ)) := by | |
| 1087 | - have hf := E.natural.refF_regular E.isOpen hδ hδT | |
| 1088 | - have hu := E.natural.refU_regular E.isOpen hδ hδT | |
| 1089 | - exact ⟨hf,hu,hu.average isOpen_Ioi E.isOpen | |
| 1090 | - (fun _ hx _ ht => scale_half_interval E.natural.radius_pos hx ht), | |
| 1091 | - regular_pressure E.natural.radius_pos E.isOpen hf E.pressure0_analytic⟩ | |
| 1092 | - | |
| 1093 | -theorem reference_real_profiles {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) | |
| 1094 | - (hP0 : ContDiff ℝ ∞ P0) (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : | |
| 1095 | - let P := N.histories hδ hδT P0 hP0 | |
| 1096 | - E.natural.refF δ (x,(η : ℂ)) = (P.f (x,η) : ℂ) ∧ | |
| 1097 | - E.natural.refU δ (x,(η : ℂ)) = (P.U (x,η) : ℂ) ∧ | |
| 1098 | - average (E.natural.refU δ) (x,(η : ℂ)) = (P.Ubar (x,η) : ℂ) ∧ | |
| 1099 | - pressure E.pressure0 (E.natural.refF δ) (x,(η : ℂ)) = (P.pressure (x,η) : ℂ) := by | |
| 1100 | - refine ⟨E.natural.refF_real hδ hδT x hη,E.natural.refU_real hδ hδT x hη,?_,?_⟩ | |
| 1101 | - · exact average_ofReal (fun y => E.natural.refU_real hδ hδT y hη) x | |
| 1102 | - · exact pressure_ofReal (fun y => E.natural.refF_real hδ hδT y hη) (E.pressure0_real η) x | |
| 1103 | - | |
| 1104 | 997 | end InitialTube |
| 1105 | 998 | |
| 1106 | 999 | /-- Actual coefficient profiles and the actual pressure datum construct the |
| @@ -1123,158 +1016,6 @@ theorem exists_initialTube {h j σ Λ C : ℝ} {g a : ℝ → ℝ} {cap : ℝ} | ||
| 1123 | 1016 | pressure0_real := PressureDatum.complexPressure_ofReal g a |
| 1124 | 1017 | }⟩⟩ |
| 1125 | 1018 | |
| 1126 | -theorem natural_average_identity {h j Λ : ℝ} {P0 a : ℝ → ℝ} | |
| 1127 | - {f U V Pr : ProfileHistories.Field} (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a f U V Pr) | |
| 1128 | - {p : ProfileHistories.Point} (hp : p ∈ NaturalProfile.domain Λ) : ProfileHistories.average U p = V p := by | |
| 1129 | - by_cases hx : p.1 = 0 | |
| 1130 | - · have he : p = (0,p.2) := Prod.ext hx rfl | |
| 1131 | - rw [he,ProfileHistories.average_at_axis,hs.U_axis p.2 hp.2,hs.average_axis p.2 hp.2] | |
| 1132 | - · rw [ProfileHistories.average_eq_quotient U hx] | |
| 1133 | - change (∫ X in (0 : ℝ)..p.1, U (X,p.2)) / p.1 = V p | |
| 1134 | - rw [← hs.average_integral p hp,mul_div_cancel_left₀ _ hx] | |
| 1135 | - | |
| 1136 | -/-- The natural average recovered by complex integration is the original | |
| 1137 | -natural profile's actual average, including the regular value at the axis. -/ | |
| 1138 | -theorem natural_Ubar_real {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} | |
| 1139 | - (F : CoefficientProfile d Λ C) {p : ProfileHistories.Point} (hp : p ∈ NaturalProfile.domain Λ) : | |
| 1140 | - average (naturalU F) (p.1,(p.2 : ℂ)) = (F.family.Ubar p : ℂ) := by | |
| 1141 | - rw [average_ofReal (fun x => naturalU_real F x p.2) p.1] | |
| 1142 | - exact congrArg Complex.ofReal (natural_average_identity F.family.natural hp) | |
| 1143 | - | |
| 1144 | -theorem natural_Pi_real {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} | |
| 1145 | - (F : CoefficientProfile d Λ C) {P : ℂ → ℂ} (hP : ∀ η : ℝ, P (η : ℂ) = (P0 η : ℂ)) | |
| 1146 | - {p : ProfileHistories.Point} (hp : p ∈ NaturalProfile.domain Λ) : | |
| 1147 | - pressure P (naturalF F) (p.1,(p.2 : ℂ)) = (F.family.Pi p : ℂ) := by | |
| 1148 | - rw [pressure_ofReal (fun x => naturalF_real F x p.2) (hP p.2) p.1] | |
| 1149 | - congr 1 | |
| 1150 | - have he := F.family.natural.pressure_integral p hp | |
| 1151 | - change F.family.Pi p - P0 p.2 = ProfileHistories.primitive (fun q => F.family.f q ^ 2) p at he | |
| 1152 | - linarith | |
| 1153 | - | |
| 1154 | -theorem iteratedDeriv_smooth {S : Set ℝ} (hS : IsOpen S) {g : ℝ → ℝ} | |
| 1155 | - (hg : ContDiffOn ℝ ∞ g S) (k : ℕ) : ContDiffOn ℝ ∞ (iteratedDeriv k g) S := by | |
| 1156 | - induction k with | |
| 1157 | - | zero => simpa only [iteratedDeriv_zero] using hg | |
| 1158 | - | succ k ih => | |
| 1159 | - rw [iteratedDeriv_succ] | |
| 1160 | - exact ih.deriv_of_isOpen hS (by simp) | |
| 1161 | - | |
| 1162 | -theorem iteratedDeriv_ofReal {S : Set ℝ} (hS : IsOpen S) {g : ℝ → ℝ} | |
| 1163 | - (hg : ContDiffOn ℝ ∞ g S) (k : ℕ) {x : ℝ} (hx : x ∈ S) : | |
| 1164 | - iteratedDeriv k (fun y => (g y : ℂ)) x = ((iteratedDeriv k g x : ℝ) : ℂ) := by | |
| 1165 | - induction k generalizing x with | |
| 1166 | - | zero => rfl | |
| 1167 | - | succ k ih => | |
| 1168 | - rw [iteratedDeriv_succ,iteratedDeriv_succ] | |
| 1169 | - have heq : iteratedDeriv k (fun y => (g y : ℂ)) =ᶠ[𝓝 x] | |
| 1170 | - (fun y => ((iteratedDeriv k g y : ℝ) : ℂ)) := by | |
| 1171 | - filter_upwards [hS.mem_nhds hx] with y hy | |
| 1172 | - exact ih hy | |
| 1173 | - rw [heq.deriv_eq] | |
| 1174 | - exact (((iteratedDeriv_smooth hS hg k).contDiffAt (hS.mem_nhds hx)).differentiableAt | |
| 1175 | - (by simp)).hasDerivAt.ofReal_comp.deriv | |
| 1176 | - | |
| 1177 | -/-- The holomorphic radial jets extend the actual real radial derivatives, | |
| 1178 | -including at the axis; agreement is derived from equality of the functions. -/ | |
| 1179 | -theorem radialJet_real {S : Set ℝ} {Ω : Set ℂ} (hS : IsOpen S) (_ : IsOpen Ω) | |
| 1180 | - {F : CField} (hF : Regular S Ω F) {g : ℝ → ℝ} {η : ℝ} (hη : (η : ℂ) ∈ Ω) | |
| 1181 | - (heq : ∀ x ∈ S, F (x,(η : ℂ)) = (g x : ℂ)) (k : ℕ) {x : ℝ} (hx : x ∈ S) : | |
| 1182 | - radialJet F k (x,(η : ℂ)) = ((iteratedDeriv k g x : ℝ) : ℂ) := by | |
| 1183 | - have hs : ContDiffOn ℝ ∞ (fun x => F (x,(η : ℂ))) S := | |
| 1184 | - hF.smooth.comp (contDiff_id.prodMk contDiff_const).contDiffOn (fun _ hx => ⟨hx,hη⟩) | |
| 1185 | - have hgr : ContDiffOn ℝ ∞ g S := by | |
| 1186 | - apply (Complex.reCLM.contDiff.comp_contDiffOn hs).congr | |
| 1187 | - intro y hy | |
| 1188 | - change g y = (F (y,(η : ℂ))).re | |
| 1189 | - rw [heq y hy,Complex.ofReal_re] | |
| 1190 | - have he : (fun y => F (y,(η : ℂ))) =ᶠ[𝓝 x] (fun y => (g y : ℂ)) := by | |
| 1191 | - filter_upwards [hS.mem_nhds hx] with y hy | |
| 1192 | - exact heq y hy | |
| 1193 | - exact (he.iteratedDeriv_eq k).trans (iteratedDeriv_ofReal hS hgr k hx) | |
| 1194 | - | |
| 1195 | -theorem InitialTube.real_radial_jets {N : ReferencePath.Input} {h R : ℝ} {P0 : ℝ → ℝ} {Ω : Set ℂ} | |
| 1196 | - (E : InitialTube N h P0 R Ω) {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) | |
| 1197 | - (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) (hP0 : ContDiff ℝ ∞ P0) | |
| 1198 | - (k : ℕ) {x η : ℝ} (hx : x ∈ Ioi (-R)) (hη : η ∈ Icc (-1 : ℝ) 1) : | |
| 1199 | - let P := StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0 | |
| 1200 | - radialJet (E.f T κ δ) k (x,(η : ℂ)) = ((iteratedDeriv k (fun y => P.f (y,η)) x : ℝ) : ℂ) ∧ | |
| 1201 | - radialJet (E.U T κ δ) k (x,(η : ℂ)) = ((iteratedDeriv k (fun y => P.U (y,η)) x : ℝ) : ℂ) ∧ | |
| 1202 | - radialJet (E.Ubar T κ δ) k (x,(η : ℂ)) = ((iteratedDeriv k (fun y => P.Ubar (y,η)) x : ℝ) : ℂ) ∧ | |
| 1203 | - radialJet (E.Pi T κ δ) k (x,(η : ℂ)) = ((iteratedDeriv k (fun y => P.pressure (y,η)) x : ℝ) : ℂ) := by | |
| 1204 | - have hη' := NaturalAxisCoefficients.original_interval_interior hη | |
| 1205 | - obtain ⟨hf,hu,hv,hp⟩ := E.regular hT hδ hδT κ | |
| 1206 | - refine ⟨radialJet_real isOpen_Ioi E.isOpen hf (E.real_mem η hη) ?_ k hx, | |
| 1207 | - radialJet_real isOpen_Ioi E.isOpen hu (E.real_mem η hη) ?_ k hx, | |
| 1208 | - radialJet_real isOpen_Ioi E.isOpen hv (E.real_mem η hη) ?_ k hx, | |
| 1209 | - radialJet_real isOpen_Ioi E.isOpen hp (E.real_mem η hη) ?_ k hx⟩ | |
| 1210 | - · intro y _ | |
| 1211 | - exact (E.real_profiles hT hδ hδT κ hP0 y hη').1 | |
| 1212 | - · intro y _ | |
| 1213 | - exact (E.real_profiles hT hδ hδT κ hP0 y hη').2.1 | |
| 1214 | - · intro y _ | |
| 1215 | - exact (E.real_profiles hT hδ hδT κ hP0 y hη').2.2.1 | |
| 1216 | - · intro y _ | |
| 1217 | - exact (E.real_profiles hT hδ hδT κ hP0 y hη').2.2.2 | |
| 1218 | - | |
| 1219 | -theorem scale_symmetric_interval {R x t : ℝ} (hx : x ∈ Ioo (-R) R) (ht : t ∈ Icc (0 : ℝ) 1) : | |
| 1220 | - t*x ∈ Ioo (-R) R := by | |
| 1221 | - apply abs_lt.mp | |
| 1222 | - calc | |
| 1223 | - |t*x| = t*|x| := by rw [abs_mul,abs_of_nonneg ht.1] | |
| 1224 | - _ ≤ |x| := mul_le_of_le_one_left (abs_nonneg x) ht.2 | |
| 1225 | - _ < R := abs_lt.mpr hx | |
| 1226 | - | |
| 1227 | -theorem InitialTube.natural_regular {N : ReferencePath.Input} {h R : ℝ} {P0 : ℝ → ℝ} {Ω : Set ℂ} | |
| 1228 | - (E : InitialTube N h P0 R Ω) : | |
| 1229 | - Regular (Ioo (-R) R) Ω E.natural.f ∧ | |
| 1230 | - Regular (Ioo (-R) R) Ω E.natural.U ∧ | |
| 1231 | - Regular (Ioo (-R) R) Ω (average E.natural.U) ∧ | |
| 1232 | - Regular (Ioo (-R) R) Ω (pressure E.pressure0 E.natural.f) := by | |
| 1233 | - refine ⟨E.natural.f_regular,E.natural.U_regular,?_,?_⟩ | |
| 1234 | - · exact E.natural.U_regular.average isOpen_Ioo E.isOpen | |
| 1235 | - (fun _ hx _ ht => scale_symmetric_interval hx ht) | |
| 1236 | - · exact (regular_parameter E.pressure0_analytic).add | |
| 1237 | - ((E.natural.f_regular.pow 2).primitive isOpen_Ioo E.isOpen | |
| 1238 | - (fun _ hx _ ht => scale_symmetric_interval hx ht)) | |
| 1239 | - | |
| 1240 | -theorem InitialTube.natural_all_radial_jets {N : ReferencePath.Input} {h R : ℝ} {P0 : ℝ → ℝ} {Ω : Set ℂ} | |
| 1241 | - (E : InitialTube N h P0 R Ω) (k : ℕ) : | |
| 1242 | - Regular (Ioo (-R) R) Ω (radialJet E.natural.f k) ∧ | |
| 1243 | - Regular (Ioo (-R) R) Ω (radialJet E.natural.U k) ∧ | |
| 1244 | - Regular (Ioo (-R) R) Ω (radialJet (average E.natural.U) k) ∧ | |
| 1245 | - Regular (Ioo (-R) R) Ω (radialJet (pressure E.pressure0 E.natural.f) k) := by | |
| 1246 | - obtain ⟨hf,hu,hv,hp⟩ := E.natural_regular | |
| 1247 | - exact ⟨hf.radialJet isOpen_Ioo E.isOpen k,hu.radialJet isOpen_Ioo E.isOpen k, | |
| 1248 | - hv.radialJet isOpen_Ioo E.isOpen k,hp.radialJet isOpen_Ioo E.isOpen k⟩ | |
| 1249 | - | |
| 1250 | -theorem InitialTube.reference_all_radial_jets {N : ReferencePath.Input} {h R : ℝ} {P0 : ℝ → ℝ} {Ω : Set ℂ} | |
| 1251 | - (E : InitialTube N h P0 R Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) (k : ℕ) : | |
| 1252 | - Regular (Ioi (-R)) Ω (radialJet (E.natural.refF δ) k) ∧ | |
| 1253 | - Regular (Ioi (-R)) Ω (radialJet (E.natural.refU δ) k) ∧ | |
| 1254 | - Regular (Ioi (-R)) Ω (radialJet (average (E.natural.refU δ)) k) ∧ | |
| 1255 | - Regular (Ioi (-R)) Ω (radialJet (pressure E.pressure0 (E.natural.refF δ)) k) := by | |
| 1256 | - obtain ⟨hf,hu,hv,hp⟩ := E.reference_regular hδ hδT | |
| 1257 | - exact ⟨hf.radialJet isOpen_Ioi E.isOpen k,hu.radialJet isOpen_Ioi E.isOpen k, | |
| 1258 | - hv.radialJet isOpen_Ioi E.isOpen k,hp.radialJet isOpen_Ioi E.isOpen k⟩ | |
| 1259 | - | |
| 1260 | -theorem InitialTube.natural_real_profiles {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} | |
| 1261 | - {d : AnalyticInputs h j σ P0} (F : CoefficientProfile d Λ C) (hΛ : 0 < Λ) | |
| 1262 | - {R : ℝ} {Ω : Set ℂ} (E : InitialTube (ReferenceJetBounds.referenceInput F hΛ) h P0 R Ω) | |
| 1263 | - {p : ProfileHistories.Point} (hp : p ∈ NaturalProfile.domain Λ) : | |
| 1264 | - E.natural.f (p.1,(p.2 : ℂ)) = (F.family.f p : ℂ) ∧ | |
| 1265 | - E.natural.U (p.1,(p.2 : ℂ)) = (F.family.U p : ℂ) ∧ | |
| 1266 | - average E.natural.U (p.1,(p.2 : ℂ)) = (F.family.Ubar p : ℂ) ∧ | |
| 1267 | - pressure E.pressure0 E.natural.f (p.1,(p.2 : ℂ)) = (F.family.Pi p : ℂ) := by | |
| 1268 | - refine ⟨E.natural.f_real _ _,E.natural.U_real _ _,?_,?_⟩ | |
| 1269 | - · rw [average_ofReal (fun x => E.natural.U_real x p.2) p.1] | |
| 1270 | - exact congrArg Complex.ofReal (natural_average_identity F.family.natural hp) | |
| 1271 | - · rw [pressure_ofReal (fun x => E.natural.f_real x p.2) (E.pressure0_real p.2) p.1] | |
| 1272 | - congr 1 | |
| 1273 | - change P0 p.2 + ProfileHistories.primitive (fun q => F.family.f q ^ 2) p = F.family.Pi p | |
| 1274 | - have he := F.family.natural.pressure_integral p hp | |
| 1275 | - change F.family.Pi p - P0 p.2 = ProfileHistories.primitive (fun q => F.family.f q ^ 2) p at he | |
| 1276 | - linarith | |
| 1277 | - | |
| 1278 | 1019 | end NavierStokes.ActivationHolomorphic |
| 1279 | 1020 | |
| 1280 | 1021 | end |
+0 −91 NavierStokes/ActivationStocks.lean View file
| @@ -174,11 +174,6 @@ end SmoothPairs | ||
| 174 | 174 | noncomputable def etaD (F : Field) (p : Point) : ℝ := |
| 175 | 175 | deriv (fun η => F (p.1, η)) p.2 |
| 176 | 176 | |
| 177 | -theorem etaD_eq_parameterPartial {D : RadialDomain} {F : Field} | |
| 178 | - (hF : ContDiffOn ℝ ∞ F D.carrier) {p : Point} (hp : p ∈ D.carrier) : | |
| 179 | - etaD F p = parameterPartial F p := | |
| 180 | - (parameterPartial_hasDerivAt D hF hp).deriv | |
| 181 | - | |
| 182 | 177 | noncomputable def logViewOne (h X0 : ℝ) (f : Field) (H : HistoryRow → Field) (p : Point) : ℝ := |
| 183 | 178 | stockOne h (radius X0 p.1) p.2 (f p) (H .mass p) (etaD (H .mass) p) |
| 184 | 179 | (H .angular p) (etaD (H .angular) p) (H .transport p) (etaD (H .transport) p) |
| @@ -359,14 +354,6 @@ theorem etaPair_actual_eq {J : Set ℝ} (hJ : IsOpen J) (A : StockPair J) | ||
| 359 | 354 | filter_upwards [hJ.mem_nhds hη] with ξ hξ |
| 360 | 355 | exact heq ξ hξ |
| 361 | 356 | |
| 362 | -theorem etaPair_reference_eq {J : Set ℝ} (hJ : IsOpen J) (A : StockPair J) | |
| 363 | - (F : Field) (κ T u : ℝ) {η : ℝ} (hη : η ∈ J) | |
| 364 | - (heq : ∀ ξ ∈ J, A.reference ((κ, T), (u, ξ)) = F (T * u, ξ)) : | |
| 365 | - (etaPair hJ A).reference ((κ, T), (u, η)) = etaD F (T * u, η) := by | |
| 366 | - apply Filter.EventuallyEq.deriv_eq | |
| 367 | - filter_upwards [hJ.mem_nhds hη] with ξ hξ | |
| 368 | - exact heq ξ hξ | |
| 369 | - | |
| 370 | 357 | noncomputable def controlledPair {J : Set ℝ} (hJ : IsOpen J) {U : Field} |
| 371 | 358 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) : StockPair J where |
| 372 | 359 | actual := ActivationBounds.controlledValue U |
| @@ -612,10 +599,6 @@ theorem historyEtaPair_actual {T : ℝ} (hT : T ≠ 0) (κ u : ℝ) | ||
| 612 | 599 | intro ξ hξ |
| 613 | 600 | exact historyPair_actual_eq X0 initial hJ hL hU hi hT κ r u hξ |
| 614 | 601 | |
| 615 | -theorem historyEtaPair_reference (q : ScaledPoint) (r : HistoryRow) : | |
| 616 | - (etaPair hJ (historyPair X0 initial hJ hL hU hi r)).reference q = | |
| 617 | - etaD (logHistory X0 initial (referenceAngular L) U r) (q.1.2 * q.2.1, q.2.2) := rfl | |
| 618 | - | |
| 619 | 602 | theorem activationOnePair_actual {T : ℝ} (hT : T ≠ 0) (κ u : ℝ) |
| 620 | 603 | {η : ℝ} (hη : η ∈ J) : |
| 621 | 604 | (activationOnePair h hX0 initial hJ hL hU hi hcoef).actual ((κ, T), (u, η)) = |
| @@ -693,20 +676,6 @@ theorem exists_log_stock_factors : | ||
| 693 | 676 | rwa [activationTwoPair_actual h hX0 initial hJ hL hU hi hcoef hT κ u hη, |
| 694 | 677 | activationTwoPair_reference h hX0 initial hJ hL hU hi hcoef] at he |
| 695 | 678 | |
| 696 | -theorem activationOnePair_zero (κ u : ℝ) {η : ℝ} (hη : η ∈ J) : | |
| 697 | - (activationOnePair h hX0 initial hJ hL hU hi hcoef).actual ((κ, 0), (u, η)) = | |
| 698 | - (activationOnePair h hX0 initial hJ hL hU hi hcoef).reference ((κ, 0), (u, η)) := by | |
| 699 | - have he := (activationOnePair h hX0 initial hJ hL hU hi hcoef).difference | |
| 700 | - ((κ, 0), (u, η)) ⟨mem_univ _, mem_univ _, hη⟩ | |
| 701 | - simpa only [scaledDistance, zero_mul, sub_eq_zero] using he | |
| 702 | - | |
| 703 | -theorem activationTwoPair_zero (κ u : ℝ) {η : ℝ} (hη : η ∈ J) : | |
| 704 | - (activationTwoPair h hX0 initial hJ hL hU hi hcoef).actual ((κ, 0), (u, η)) = | |
| 705 | - (activationTwoPair h hX0 initial hJ hL hU hi hcoef).reference ((κ, 0), (u, η)) := by | |
| 706 | - have he := (activationTwoPair h hX0 initial hJ hL hU hi hcoef).difference | |
| 707 | - ((κ, 0), (u, η)) ⟨mem_univ _, mem_univ _, hη⟩ | |
| 708 | - simpa only [scaledDistance, zero_mul, sub_eq_zero] using he | |
| 709 | - | |
| 710 | 679 | include hX0 hJ hL hU hi hcoef in |
| 711 | 680 | theorem log_stocks_uniform_jets {K : Set ℝ} (hK : IsCompact K) (hKJ : K ⊆ J) |
| 712 | 681 | (T0 : ℝ) (n : ℕ) : |
| @@ -750,66 +719,6 @@ open ReferencePath | ||
| 750 | 719 | |
| 751 | 720 | variable (N : ReferencePath.Input) |
| 752 | 721 | |
| 753 | -/-- The factors concern the actual recomputed ACT and REF lag histories. | |
| 754 | -Their common scaled domain contains `T=0`. -/ | |
| 755 | -theorem exists_physical_stock_factors {δ : ℝ} (hδ : 0 < δ) (hδT : 2 * δ < rampLimit) | |
| 756 | - (h : ℝ) (hcoef : ∀ η ∈ parameterInterval, NaturalAxisData.L h η ≠ 0) | |
| 757 | - (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) : | |
| 758 | - ∃ P Q : ScaledPoint → ℝ, | |
| 759 | - ContDiffOn ℝ ∞ P (scaledDomain parameterInterval) ∧ | |
| 760 | - ContDiffOn ℝ ∞ Q (scaledDomain parameterInterval) ∧ | |
| 761 | - ∀ T : ℝ, ∀ hT : 0 < T, ∀ κ u η : ℝ, η ∈ parameterInterval → | |
| 762 | - profileStockOne (StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0) h | |
| 763 | - (radius N.endpoint (T * u), η) - | |
| 764 | - profileStockOne (N.histories hδ hδT P0 hP0) h (radius N.endpoint (T * u), η) = | |
| 765 | - scaledDistance ((κ, T), (u, η)) * P ((κ, T), (u, η)) ∧ | |
| 766 | - profileStockTwo (StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0) h | |
| 767 | - (radius N.endpoint (T * u), η) - | |
| 768 | - profileStockTwo (N.histories hδ hδT P0 hP0) h (radius N.endpoint (T * u), η) = | |
| 769 | - scaledDistance ((κ, T), (u, η)) * Q ((κ, T), (u, η)) := by | |
| 770 | - obtain ⟨P, Q, hP, hQ, hf⟩ := exists_log_stock_factors h N.endpoint_pos | |
| 771 | - (initial N hδ hδT P0 hP0) parameterInterval_open | |
| 772 | - (StressActivation.FromReference.refLog_smooth N hδ hδT) | |
| 773 | - (StressActivation.FromReference.refAxial_smooth N hδ hδT) | |
| 774 | - (initial_smooth N hδ hδT P0 hP0) hcoef | |
| 775 | - refine ⟨P, Q, hP, hQ, ?_⟩ | |
| 776 | - intro T hT κ u η hη | |
| 777 | - rw [actual_stockOne_logView N hT hδ hδT κ h P0 hP0 (T * u) hη, | |
| 778 | - reference_stockOne_logView N hδ hδT h P0 hP0 (T * u) hη, | |
| 779 | - actual_stockTwo_logView N hT hδ hδT κ h P0 hP0 (T * u) hη, | |
| 780 | - reference_stockTwo_logView N hδ hδT h P0 hP0 (T * u) hη] | |
| 781 | - exact hf T hT.ne' κ u η hη | |
| 782 | - | |
| 783 | -/-- One constant controls both actual stock errors for every sufficiently | |
| 784 | -small positive width and all activation parameters, including `κ=0`. -/ | |
| 785 | -theorem physical_stocks_uniform_bound {δ : ℝ} (hδ : 0 < δ) (hδT : 2 * δ < rampLimit) | |
| 786 | - (h : ℝ) (hcoef : ∀ η ∈ parameterInterval, NaturalAxisData.L h η ≠ 0) | |
| 787 | - (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (T0 : ℝ) : | |
| 788 | - ∃ M : ℝ, 0 ≤ M ∧ ∀ T : ℝ, ∀ hT : 0 < T, T ≤ T0 → ∀ κ ∈ Icc (0 : ℝ) 1, | |
| 789 | - ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ Icc (-1 : ℝ) 1, | |
| 790 | - |profileStockOne (StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0) h | |
| 791 | - (radius N.endpoint y, η) - | |
| 792 | - profileStockOne (N.histories hδ hδT P0 hP0) h (radius N.endpoint y, η)| ≤ | |
| 793 | - M * y * activation T κ y ∧ | |
| 794 | - |profileStockTwo (StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0) h | |
| 795 | - (radius N.endpoint y, η) - | |
| 796 | - profileStockTwo (N.histories hδ hδT P0 hP0) h (radius N.endpoint y, η)| ≤ | |
| 797 | - M * y * activation T κ y := by | |
| 798 | - have hKJ : Icc (-1 : ℝ) 1 ⊆ parameterInterval := | |
| 799 | - NaturalAxisCoefficients.original_interval_interior | |
| 800 | - obtain ⟨M, hM, hbound⟩ := log_stocks_uniform_jets h N.endpoint_pos | |
| 801 | - (initial N hδ hδT P0 hP0) parameterInterval_open | |
| 802 | - (StressActivation.FromReference.refLog_smooth N hδ hδT) | |
| 803 | - (StressActivation.FromReference.refAxial_smooth N hδ hδT) | |
| 804 | - (initial_smooth N hδ hδT P0 hP0) hcoef isCompact_Icc hKJ T0 0 | |
| 805 | - refine ⟨M, hM, ?_⟩ | |
| 806 | - intro T hT hTT κ hκ y hy η hη | |
| 807 | - rw [actual_stockOne_logView N hT hδ hδT κ h P0 hP0 y (hKJ hη), | |
| 808 | - reference_stockOne_logView N hδ hδT h P0 hP0 y (hKJ hη), | |
| 809 | - actual_stockTwo_logView N hT hδ hδT κ h P0 hP0 y (hKJ hη), | |
| 810 | - reference_stockTwo_logView N hδ hδT h P0 hP0 y (hKJ hη)] | |
| 811 | - simpa only [iteratedDeriv_zero] using hbound T ⟨hT, hTT⟩ κ hκ y hy η hη | |
| 812 | - | |
| 813 | 722 | end FromReference |
| 814 | 723 | |
| 815 | 724 | /-! ## Agreement of the reference stocks with the natural stress-free stocks -/ |
+24 −0 routes/s1-ns-activation-1/README.md added View file
| @@ -0,0 +1,24 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-activation-1 | |
| 6 | + | |
| 7 | +One unit of #10 (S-1, "Delete declarations that nothing uses"), family | |
| 8 | +`NavierStokes/Activation*`: deletes 65 declarations (706 lines) in | |
| 9 | +`NavierStokes/ActivationBounds.lean`, `ActivationCone.lean`, | |
| 10 | +`ActivationContinuation.lean`, `ActivationHolomorphic.lean` and `ActivationStocks.lean`. | |
| 11 | +The diff is deletions only; no statement or proof that stays is changed. | |
| 12 | + | |
| 13 | +Checked against the tree at this branch's commit: for every deleted name, | |
| 14 | +`git grep -n -w <last part>` finds no use left (the hits for `primitive_hasDerivAt`, | |
| 15 | +`continuation_hasDerivAt`, `refF`, `refU` and `radialJet` are other declarations of the | |
| 16 | +same short name — `EulerAngleMeanZeroPrimitive.primitive_hasDerivAt`, | |
| 17 | +`ReferencePath.continuation_hasDerivAt`, `ReferencePath.Input.refF`/`refU`, | |
| 18 | +`BoundaryAxisJets.radialJet`). No deleted docstring carries a numbered lemma, theorem, | |
| 19 | +proposition, corollary, section or equation of the paper. `python3 checks/challenge.py .` | |
| 20 | +ends `ok`. | |
| 21 | + | |
| 22 | +## Next | |
| 23 | + | |
| 24 | +Push, open the pull request, let `build` say whether the modules still compile. | |