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

refactor(NavierStokes): extract the temporal mean correction #742
Open
+5 −279 NavierStokes/CorrectionStep.lean View file
| @@ -46,14 +46,17 @@ import NavierStokes.LocalRankDefect | ||
| 46 | 46 | import NavierStokes.StateReindex |
| 47 | 47 | import NavierStokes.CorrectionStepCovariance |
| 48 | 48 | import NavierStokes.CorrectionStepFullResidual |
| 49 | +import NavierStokes.CorrectionStepTemporalMean | |
| 49 | 50 | |
| 50 | 51 | /-! |
| 51 | 52 | # Exact field bookkeeping for one correction cycle |
| 52 | 53 | |
| 53 | 54 | `NavierStokes.CorrectionStepCovariance` supplies the exact changes of the |
| 54 | 55 | angularly averaged residual, and `NavierStokes.CorrectionStepFullResidual` |
| 55 | -assembles the full residual and its exact increment. Here we use these | |
| 56 | -identities to track the residual through the stages of a correction cycle. | |
| 56 | +assembles the full residual and its exact increment. | |
| 57 | +`NavierStokes.CorrectionStepTemporalMean` treats the variable-gauge | |
| 58 | +fast-time mean correction. Here we combine these results with the | |
| 59 | +other stages of a correction cycle. | |
| 57 | 60 | -/ |
| 58 | 61 | |
| 59 | 62 | noncomputable section |
| @@ -65,18 +68,6 @@ open scoped ContDiff BigOperators | ||
| 65 | 68 | |
| 66 | 69 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 67 | 70 | |
| 68 | -section TemporalComposition | |
| 69 | - | |
| 70 | -open CorrectionState | |
| 71 | - | |
| 72 | -variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 73 | - | |
| 74 | -noncomputable def meanBar (f : ScalarField (PressureStream.Lift S)) : | |
| 75 | - ScalarField (PressureStream.Lift S) := | |
| 76 | - fun n x => PressureStream.torusAverage (f n) (x.1, x.2.1) | |
| 77 | - | |
| 78 | -end TemporalComposition | |
| 79 | - | |
| 80 | 71 | section TemporalAngularGain |
| 81 | 72 | |
| 82 | 73 | open CorrectionState |
| @@ -337,24 +328,6 @@ variable [FiniteDimensional ℝ S] | ||
| 337 | 328 | |
| 338 | 329 | end MeanDivergencePreservation |
| 339 | 330 | |
| 340 | -section CommonTemporalConstruction | |
| 341 | - | |
| 342 | -open CorrectionState | |
| 343 | - | |
| 344 | -variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 345 | - | |
| 346 | -theorem common_fastTime (h : ℝ) (index : ℕ → ℕ) (c : Context (PressureStream.Lift S)) | |
| 347 | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 348 | - (hf : ∀ n, c.operators.fastCoefficient n = | |
| 349 | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 350 | - (f : ScalarField (PressureStream.Lift S)) (n : ℕ) (x : PressureStream.Lift S) : | |
| 351 | - c.operators.fastTime f n x = MeanChartCompatibility.fastAtIndex h n (index n) (f n) x := by | |
| 352 | - simp only [Operators.fastTime, hv, hf, MeanChartCompatibility.fastAtIndex, PressureStream.graphDz] | |
| 353 | - | |
| 354 | -variable [FiniteDimensional ℝ S] | |
| 355 | - | |
| 356 | -end CommonTemporalConstruction | |
| 357 | - | |
| 358 | 331 | section CommonTemporalScale |
| 359 | 332 | |
| 360 | 333 | open CorrectionState |
| @@ -560,63 +533,17 @@ theorem twoWaveUpdates_band {old particular signed : HarmonicBlock D} {N M K : | ||
| 560 | 533 | |
| 561 | 534 | end CumulativeWaveUpdates |
| 562 | 535 | |
| 563 | -section LocalCommonClock | |
| 564 | - | |
| 565 | -open CorrectionState PhysicalMeanDomain | |
| 566 | - | |
| 567 | -variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 568 | - | |
| 569 | -theorem temporalAtIndex_local_smooth (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) | |
| 570 | - {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) | |
| 571 | - (hp : PeriodicOn V f) : | |
| 572 | - ContDiffOn ℝ ∞ (MeanChartCompatibility.temporalAtIndex h n i f) (slowDomain V) := by | |
| 573 | - rw [MeanChartCompatibility.temporalAtIndex_eq_native] | |
| 574 | - exact contDiffOn_const.mul (PhysicalMeanDomain.desiredIncrement_contDiffOn h n hV hf hp) | |
| 575 | - | |
| 576 | -/-- The common clock cancels the actual local residual. Localization is | |
| 577 | -used only to prove a germ identity for the same torus inverse. -/ | |
| 578 | -theorem temporalAtIndex_local_fast (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) | |
| 579 | - {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) | |
| 580 | - (hp : PeriodicOn V f) {x : PressureStream.Lift S} (hx : x.2.1 ∈ V) : | |
| 581 | - MeanChartCompatibility.fastAtIndex h n i (MeanChartCompatibility.temporalAtIndex h n i f) x = | |
| 582 | - -TemporalMeanUpdate.centered f x := by | |
| 583 | - obtain ⟨cutoff, _, hsupport, hglobal, he⟩ := exists_fiber_localization hV hx hf | |
| 584 | - have hd := ((desiredIncrement_fiberLocal h n).germ he).eventuallyEq x.1 x.2.2 | |
| 585 | - have hc := ((centered_fiberLocal.germ he).eventuallyEq x.1 x.2.2).self_of_nhds | |
| 586 | - have hi : MeanChartCompatibility.temporalAtIndex h n i (localize cutoff f) =ᶠ[nhds x] | |
| 587 | - MeanChartCompatibility.temporalAtIndex h n i f := by | |
| 588 | - rw [MeanChartCompatibility.temporalAtIndex_eq_native, | |
| 589 | - MeanChartCompatibility.temporalAtIndex_eq_native] | |
| 590 | - exact hd.mono fun y hy => congrArg (MeanChartCompatibility.commonRatio h n i * ·) hy | |
| 591 | - have hsolve := MeanChartCompatibility.temporalAtIndex_fast_cancellation h n i hglobal | |
| 592 | - (localize_periodic hsupport hp) x | |
| 593 | - simpa only [MeanChartCompatibility.fastAtIndex, PressureStream.graphDz, hi.fderiv_eq, hc] using hsolve | |
| 594 | - | |
| 595 | -end LocalCommonClock | |
| 596 | - | |
| 597 | 536 | section GaugeMeanBookkeeping |
| 598 | 537 | |
| 599 | 538 | open CorrectionState VariableGaugeMean |
| 600 | 539 | |
| 601 | 540 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 602 | 541 | |
| 603 | -noncomputable def gaugeTemporalPressureChange (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) | |
| 604 | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) | |
| 605 | - (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := | |
| 606 | - (temporalStageState g h index axial c u).pressure - u.pressure | |
| 607 | - | |
| 608 | 542 | noncomputable def gaugeRankPressureChange (g : GaugeData S) (r : RankData S) |
| 609 | 543 | (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 610 | 544 | (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := |
| 611 | 545 | (rankStageState g r axial c u).pressure - u.pressure |
| 612 | 546 | |
| 613 | -theorem gaugeTemporalStage_covariance (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) | |
| 614 | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) | |
| 615 | - (u : State (PressureStream.Lift S)) : | |
| 616 | - (temporalStageState g h index axial c u).covariance = u.covariance := by | |
| 617 | - simp only [temporalStageState, reconstructState, State.addIncrement, add_zero] | |
| 618 | - rfl | |
| 619 | - | |
| 620 | 547 | theorem gaugeRankStage_covariance (g : GaugeData S) (r : RankData S) |
| 621 | 548 | (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 622 | 549 | (u : State (PressureStream.Lift S)) : |
| @@ -624,21 +551,6 @@ theorem gaugeRankStage_covariance (g : GaugeData S) (r : RankData S) | ||
| 624 | 551 | simp only [rankStageState, reconstructState, State.addIncrement, add_zero] |
| 625 | 552 | rfl |
| 626 | 553 | |
| 627 | -theorem gaugeTemporalStage_cumulative {s : StripData (PressureStream.Lift S)} | |
| 628 | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 629 | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} | |
| 630 | - (hu : CorrectionState.CumulativeBounds s u) | |
| 631 | - (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) | |
| 632 | - (hp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) (hH : 9 / 10 ≤ H) : | |
| 633 | - CorrectionState.CumulativeBounds s (temporalStageState g h index axial c u) := by | |
| 634 | - refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ | |
| 635 | - have he : (temporalStageState g h index axial c u).pressure = | |
| 636 | - u.pressure + gaugeTemporalPressureChange g h index axial c u := by | |
| 637 | - unfold gaugeTemporalPressureChange | |
| 638 | - abel | |
| 639 | - rw [he] | |
| 640 | - exact hu.pressure.add (hp.mono_exponent hH) | |
| 641 | - | |
| 642 | 554 | theorem gaugeRankStage_cumulative {s : StripData (PressureStream.Lift S)} |
| 643 | 555 | (g : GaugeData S) (r : RankData S) (axial : S × PressureStream.Plane) |
| 644 | 556 | (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} |
| @@ -656,192 +568,6 @@ theorem gaugeRankStage_cumulative {s : StripData (PressureStream.Lift S)} | ||
| 656 | 568 | |
| 657 | 569 | end GaugeMeanBookkeeping |
| 658 | 570 | |
| 659 | -section GaugeTemporalResidual | |
| 660 | - | |
| 661 | -open CorrectionState VariableGaugeMean PhysicalMeanDomain | |
| 662 | - | |
| 663 | -variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 664 | - | |
| 665 | -/-- The actual gauge stream may differ from the desired axial inverse; | |
| 666 | -its entire fast derivative is retained as the named axial alias. -/ | |
| 667 | -theorem gaugeTemporal_fastCancellation {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 668 | - {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 669 | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 670 | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 671 | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 672 | - (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 673 | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 674 | - (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 675 | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 676 | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 677 | - (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 678 | - (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) | |
| 679 | - (n : ℕ) {x : PressureStream.Lift S} (hx : x ∈ U) : | |
| 680 | - c.operators.fastTime (temporalIncrementState g h index axial c u).angular n x + | |
| 681 | - (u.thetaResidual c n x - meanBar (u.thetaResidual c) n x) = 0 ∧ | |
| 682 | - c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x + | |
| 683 | - (u.axialResidual c n x - meanBar (u.axialResidual c) n x) = | |
| 684 | - temporalAliasState g h index c u n (x, 0) 2 := by | |
| 685 | - have hθf := temporalAtIndex_local_fast h n (index n) hV (hθ n) (hpθ n) (hUV x hx) | |
| 686 | - have hzf := temporalAtIndex_local_fast h n (index n) hV (hz n) (hpz n) (hUV x hx) | |
| 687 | - let desired : ScalarField (PressureStream.Lift S) := fun m => | |
| 688 | - MeanChartCompatibility.temporalAtIndex h m (index m) (u.axialResidual c m) | |
| 689 | - have hdes : DifferentiableAt ℝ (desired n) x := | |
| 690 | - ((temporalAtIndex_local_smooth h n (index n) hV (hz n) (hpz n)).contDiffAt | |
| 691 | - ((slowDomain_open hV).mem_nhds (hUV x hx))).differentiableAt (by simp) | |
| 692 | - have hinc : DifferentiableAt ℝ ((temporalIncrementState g h index axial c u).axial n) x := | |
| 693 | - ((hi.axial n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) | |
| 694 | - have hd : HasFDerivAt (temporalAxialDifference g h index c u n) | |
| 695 | - (fderiv ℝ (desired n) x - | |
| 696 | - fderiv ℝ ((temporalIncrementState g h index axial c u).axial n) x) x := | |
| 697 | - hdes.hasFDerivAt.sub hinc.hasFDerivAt | |
| 698 | - have he : c.operators.fastTime (temporalAxialDifference g h index c u) n x = | |
| 699 | - c.operators.fastTime desired n x - | |
| 700 | - c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x := by | |
| 701 | - simp only [Operators.fastTime, hd.fderiv, _root_.sub_apply, mul_sub] | |
| 702 | - constructor | |
| 703 | - · rw [common_fastTime h index c hv hfast] | |
| 704 | - change MeanChartCompatibility.fastAtIndex h n (index n) | |
| 705 | - (MeanChartCompatibility.temporalAtIndex h n (index n) (u.thetaResidual c n)) x + _ = 0 | |
| 706 | - rw [hθf] | |
| 707 | - simp only [TemporalMeanUpdate.centered, meanBar] | |
| 708 | - ring | |
| 709 | - · have hdesired : c.operators.fastTime desired n x = | |
| 710 | - -(u.axialResidual c n x - meanBar (u.axialResidual c) n x) := by | |
| 711 | - rw [common_fastTime h index c hv hfast] | |
| 712 | - exact hzf | |
| 713 | - change _ = -c.operators.fastTime (temporalAxialDifference g h index c u) n x | |
| 714 | - rw [he, hdesired] | |
| 715 | - ring | |
| 716 | - | |
| 717 | -theorem gaugeTemporalStage_theta_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 718 | - {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 719 | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 720 | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 721 | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 722 | - (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 723 | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 724 | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) | |
| 725 | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) | |
| 726 | - (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 727 | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) | |
| 728 | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 729 | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 730 | - (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 731 | - (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : | |
| 732 | - Agree U ((temporalStageState g h index axial c u).thetaResidual c) | |
| 733 | - (meanBar (u.thetaResidual c) + thetaRemainder c.operators c.base u.mean | |
| 734 | - (temporalIncrementState g h index axial c u)) := by | |
| 735 | - have he := thetaResidual_change hU c.operators hprofile hb hm hi u.covariance hW c.virtualTheta | |
| 736 | - have hnew : (temporalStageState g h index axial c u).thetaResidual c = | |
| 737 | - MeanIncrementBounds.thetaResidual c.operators c.base | |
| 738 | - (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance c.virtualTheta := by | |
| 739 | - simp [State.thetaResidual, temporalStageState, | |
| 740 | - reconstructState, State.addIncrement] | |
| 741 | - rfl | |
| 742 | - intro n x hx | |
| 743 | - have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast | |
| 744 | - hi hθ hz hpθ hpz n hx).1 | |
| 745 | - have he' := he n hx | |
| 746 | - rw [hnew] | |
| 747 | - simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ | |
| 748 | - change _ - u.thetaResidual c n x = _ at he' | |
| 749 | - linarith | |
| 750 | - | |
| 751 | -theorem gaugeTemporalStage_axial_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 752 | - {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 753 | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 754 | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 755 | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 756 | - (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 757 | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 758 | - (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) | |
| 759 | - (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) | |
| 760 | - (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 761 | - (hW : ∀ i j, SmoothOn U (u.covariance i j)) | |
| 762 | - (hp : SmoothOn U u.pressure) | |
| 763 | - (hnp : SmoothOn U (temporalStageState g h index axial c u).pressure) | |
| 764 | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 765 | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 766 | - (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 767 | - (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : | |
| 768 | - Agree U (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - | |
| 769 | - temporalAliasState g h index c u n (x, 0) 2) | |
| 770 | - (meanBar (u.axialResidual c) + axialRemainder c.operators c.base u.mean | |
| 771 | - (temporalIncrementState g h index axial c u) (gaugeTemporalPressureChange g h index axial c u)) := by | |
| 772 | - have he := axialResidual_change hU c.operators hprofile hb hm hi u.covariance hW u.pressure | |
| 773 | - (gaugeTemporalPressureChange g h index axial c u) c.virtualAxial hp (hnp.sub hp) | |
| 774 | - have hpressure : u.pressure + gaugeTemporalPressureChange g h index axial c u = | |
| 775 | - (temporalStageState g h index axial c u).pressure := by | |
| 776 | - unfold gaugeTemporalPressureChange | |
| 777 | - abel | |
| 778 | - have hnew : (temporalStageState g h index axial c u).axialResidual c = | |
| 779 | - MeanIncrementBounds.axialResidual c.operators c.base | |
| 780 | - (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance | |
| 781 | - (u.pressure + gaugeTemporalPressureChange g h index axial c u) c.virtualAxial := by | |
| 782 | - rw [hpressure] | |
| 783 | - simp [State.axialResidual, temporalStageState, | |
| 784 | - reconstructState, State.addIncrement] | |
| 785 | - rfl | |
| 786 | - intro n x hx | |
| 787 | - have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast | |
| 788 | - hi hθ hz hpθ hpz n hx).2 | |
| 789 | - have he' := he n hx | |
| 790 | - rw [hnew] | |
| 791 | - simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ | |
| 792 | - change _ - u.axialResidual c n x = _ at he' | |
| 793 | - linarith | |
| 794 | - | |
| 795 | -end GaugeTemporalResidual | |
| 796 | - | |
| 797 | -section GaugeTemporalGain | |
| 798 | - | |
| 799 | -open CorrectionState VariableGaugeMean PhysicalMeanDomain | |
| 800 | - | |
| 801 | -variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 802 | - | |
| 803 | -/-- The actual variable-gauge temporal update has the same differentiated | |
| 804 | -mean remainder as the fixed-gauge update. Its axial alias remains explicit. -/ | |
| 805 | -theorem gaugeTemporalStage_mean_gain {s : StripData (PressureStream.Lift S)} | |
| 806 | - {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ s.domain, x.2.1 ∈ V) | |
| 807 | - (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 808 | - (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H κ β : ℝ} | |
| 809 | - (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 810 | - (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 811 | - ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 812 | - (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) | |
| 813 | - (hu : CorrectionState.CumulativeBounds s u) | |
| 814 | - (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) | |
| 815 | - (hdp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) | |
| 816 | - (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) | |
| 817 | - (hbarθ : MeanClass s β (meanBar (u.thetaResidual c))) | |
| 818 | - (hbarz : MeanClass s β (meanBar (u.axialResidual c))) | |
| 819 | - (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 820 | - (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 821 | - (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 822 | - (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) | |
| 823 | - (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : | |
| 824 | - MeanClass s β ((temporalStageState g h index axial c u).thetaResidual c) ∧ | |
| 825 | - MeanClass s β (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - | |
| 826 | - temporalAliasState g h index c u n (x, 0) 2) := by | |
| 827 | - have hnp : SmoothOn s.domain (temporalStageState g h index axial c u).pressure := by | |
| 828 | - have he : (temporalStageState g h index axial c u).pressure = | |
| 829 | - u.pressure + gaugeTemporalPressureChange g h index axial c u := by | |
| 830 | - unfold gaugeTemporalPressureChange | |
| 831 | - abel | |
| 832 | - rw [he] | |
| 833 | - exact fun n => (hu.pressure.smooth n).add (hdp.smooth n) | |
| 834 | - constructor | |
| 835 | - · apply class_congr (hbarθ.add ((thetaRemainder_mem ho hb hu.velocity hi hH).mono_exponent hβ)) | |
| 836 | - exact gaugeTemporalStage_theta_exact s.isOpen_domain hV hUV g h index axial c u hv hfast | |
| 837 | - (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hθ hz hpθ hpz | |
| 838 | - · apply class_congr (hbarz.add ((axialRemainder_mem ho hb hu.velocity hi hH hdp).mono_exponent hβ)) | |
| 839 | - exact gaugeTemporalStage_axial_exact s.isOpen_domain hV hUV g h index axial c u hv hfast | |
| 840 | - (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hu.pressure.smooth hnp | |
| 841 | - hθ hz hpθ hpz | |
| 842 | - | |
| 843 | -end GaugeTemporalGain | |
| 844 | - | |
| 845 | 571 | section GaugeAliasBookkeeping |
| 846 | 572 | |
| 847 | 573 | open CorrectionState VariableGaugeMean |
+314 −0 NavierStokes/CorrectionStepTemporalMean.lean added View file
| @@ -0,0 +1,314 @@ | ||
| 1 | +import NavierStokes.CorrectionStepCovariance | |
| 2 | +import NavierStokes.VariableGaugeMean | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# The variable-gauge temporal mean correction | |
| 6 | + | |
| 7 | +Section 8.5 of the 166-page Navier–Stokes paper, equations (8.20)–(8.23), | |
| 8 | +inverts the fast-time derivative on the zero-auxiliary-mean part of the | |
| 9 | +angular and axial residuals. `meanBar` averages the auxiliary torus, not | |
| 10 | +the physical angle. The local inverse uses the same clock as the | |
| 11 | +common-torus inverse; localization only establishes the germ identity. | |
| 12 | + | |
| 13 | +The exact angular cancellation and the axial identity with a retained | |
| 14 | +fast-time remainder correspond to (8.22) and §9.3, Proposition 9.6, | |
| 15 | +Step 3. The axial remainder is the fast derivative of the actual axial | |
| 16 | +increment minus the desired one. The pressure is reconstructed on the | |
| 17 | +updated state as in §8.3, Proposition 8.3(i), equation (8.12); the gain | |
| 18 | +lemma assumes an order-`H` pressure change and bounds the residual after | |
| 19 | +subtracting the axial alias. It does not establish flatness of that alias. | |
| 20 | +-/ | |
| 21 | + | |
| 22 | +noncomputable section | |
| 23 | + | |
| 24 | +namespace NavierStokes.CorrectionStep | |
| 25 | + | |
| 26 | +open Set WeightedClasses MeanIncrementBounds | |
| 27 | +open scoped ContDiff BigOperators | |
| 28 | + | |
| 29 | +section TemporalComposition | |
| 30 | + | |
| 31 | +open CorrectionState | |
| 32 | + | |
| 33 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 34 | + | |
| 35 | +noncomputable def meanBar (f : ScalarField (PressureStream.Lift S)) : | |
| 36 | + ScalarField (PressureStream.Lift S) := | |
| 37 | + fun n x => PressureStream.torusAverage (f n) (x.1, x.2.1) | |
| 38 | + | |
| 39 | +end TemporalComposition | |
| 40 | + | |
| 41 | +section CommonTemporalConstruction | |
| 42 | + | |
| 43 | +open CorrectionState | |
| 44 | + | |
| 45 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 46 | + | |
| 47 | +theorem common_fastTime (h : ℝ) (index : ℕ → ℕ) (c : Context (PressureStream.Lift S)) | |
| 48 | + (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 49 | + (hf : ∀ n, c.operators.fastCoefficient n = | |
| 50 | + ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 51 | + (f : ScalarField (PressureStream.Lift S)) (n : ℕ) (x : PressureStream.Lift S) : | |
| 52 | + c.operators.fastTime f n x = MeanChartCompatibility.fastAtIndex h n (index n) (f n) x := by | |
| 53 | + simp only [Operators.fastTime, hv, hf, MeanChartCompatibility.fastAtIndex, PressureStream.graphDz] | |
| 54 | + | |
| 55 | +variable [FiniteDimensional ℝ S] | |
| 56 | + | |
| 57 | +end CommonTemporalConstruction | |
| 58 | + | |
| 59 | +section LocalCommonClock | |
| 60 | + | |
| 61 | +open CorrectionState PhysicalMeanDomain | |
| 62 | + | |
| 63 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 64 | + | |
| 65 | +theorem temporalAtIndex_local_smooth (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) | |
| 66 | + {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) | |
| 67 | + (hp : PeriodicOn V f) : | |
| 68 | + ContDiffOn ℝ ∞ (MeanChartCompatibility.temporalAtIndex h n i f) (slowDomain V) := by | |
| 69 | + rw [MeanChartCompatibility.temporalAtIndex_eq_native] | |
| 70 | + exact contDiffOn_const.mul (PhysicalMeanDomain.desiredIncrement_contDiffOn h n hV hf hp) | |
| 71 | + | |
| 72 | +/-- The common clock cancels the actual local residual. Localization is | |
| 73 | +used only to prove a germ identity for the same torus inverse. -/ | |
| 74 | +theorem temporalAtIndex_local_fast (h : ℝ) (n i : ℕ) {V : Set S} (hV : IsOpen V) | |
| 75 | + {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain V)) | |
| 76 | + (hp : PeriodicOn V f) {x : PressureStream.Lift S} (hx : x.2.1 ∈ V) : | |
| 77 | + MeanChartCompatibility.fastAtIndex h n i (MeanChartCompatibility.temporalAtIndex h n i f) x = | |
| 78 | + -TemporalMeanUpdate.centered f x := by | |
| 79 | + obtain ⟨cutoff, _, hsupport, hglobal, he⟩ := exists_fiber_localization hV hx hf | |
| 80 | + have hd := ((desiredIncrement_fiberLocal h n).germ he).eventuallyEq x.1 x.2.2 | |
| 81 | + have hc := ((centered_fiberLocal.germ he).eventuallyEq x.1 x.2.2).self_of_nhds | |
| 82 | + have hi : MeanChartCompatibility.temporalAtIndex h n i (localize cutoff f) =ᶠ[nhds x] | |
| 83 | + MeanChartCompatibility.temporalAtIndex h n i f := by | |
| 84 | + rw [MeanChartCompatibility.temporalAtIndex_eq_native, | |
| 85 | + MeanChartCompatibility.temporalAtIndex_eq_native] | |
| 86 | + exact hd.mono fun y hy => congrArg (MeanChartCompatibility.commonRatio h n i * ·) hy | |
| 87 | + have hsolve := MeanChartCompatibility.temporalAtIndex_fast_cancellation h n i hglobal | |
| 88 | + (localize_periodic hsupport hp) x | |
| 89 | + simpa only [MeanChartCompatibility.fastAtIndex, PressureStream.graphDz, hi.fderiv_eq, hc] using hsolve | |
| 90 | + | |
| 91 | +end LocalCommonClock | |
| 92 | + | |
| 93 | +section GaugeTemporalBookkeeping | |
| 94 | + | |
| 95 | +open CorrectionState VariableGaugeMean | |
| 96 | + | |
| 97 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 98 | + | |
| 99 | +noncomputable def gaugeTemporalPressureChange (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) | |
| 100 | + (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) | |
| 101 | + (u : State (PressureStream.Lift S)) : ScalarField (PressureStream.Lift S) := | |
| 102 | + (temporalStageState g h index axial c u).pressure - u.pressure | |
| 103 | + | |
| 104 | +theorem gaugeTemporalStage_covariance (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) | |
| 105 | + (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) | |
| 106 | + (u : State (PressureStream.Lift S)) : | |
| 107 | + (temporalStageState g h index axial c u).covariance = u.covariance := by | |
| 108 | + simp only [temporalStageState, reconstructState, State.addIncrement, add_zero] | |
| 109 | + rfl | |
| 110 | + | |
| 111 | +theorem gaugeTemporalStage_cumulative {s : StripData (PressureStream.Lift S)} | |
| 112 | + (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 113 | + (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H : ℝ} | |
| 114 | + (hu : CorrectionState.CumulativeBounds s u) | |
| 115 | + (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) | |
| 116 | + (hp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) (hH : 9 / 10 ≤ H) : | |
| 117 | + CorrectionState.CumulativeBounds s (temporalStageState g h index axial c u) := by | |
| 118 | + refine ⟨cumulative_updated hu.velocity hi hH, ?_⟩ | |
| 119 | + have he : (temporalStageState g h index axial c u).pressure = | |
| 120 | + u.pressure + gaugeTemporalPressureChange g h index axial c u := by | |
| 121 | + unfold gaugeTemporalPressureChange | |
| 122 | + abel | |
| 123 | + rw [he] | |
| 124 | + exact hu.pressure.add (hp.mono_exponent hH) | |
| 125 | + | |
| 126 | +end GaugeTemporalBookkeeping | |
| 127 | + | |
| 128 | +section GaugeTemporalResidual | |
| 129 | + | |
| 130 | +open CorrectionState VariableGaugeMean PhysicalMeanDomain | |
| 131 | + | |
| 132 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 133 | + | |
| 134 | +/-- The actual gauge stream may differ from the desired axial inverse; | |
| 135 | +its entire fast derivative is retained as the named axial alias. -/ | |
| 136 | +theorem gaugeTemporal_fastCancellation {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 137 | + {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 138 | + (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 139 | + (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 140 | + (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 141 | + (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 142 | + ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 143 | + (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 144 | + (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 145 | + (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 146 | + (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 147 | + (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) | |
| 148 | + (n : ℕ) {x : PressureStream.Lift S} (hx : x ∈ U) : | |
| 149 | + c.operators.fastTime (temporalIncrementState g h index axial c u).angular n x + | |
| 150 | + (u.thetaResidual c n x - meanBar (u.thetaResidual c) n x) = 0 ∧ | |
| 151 | + c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x + | |
| 152 | + (u.axialResidual c n x - meanBar (u.axialResidual c) n x) = | |
| 153 | + temporalAliasState g h index c u n (x, 0) 2 := by | |
| 154 | + have hθf := temporalAtIndex_local_fast h n (index n) hV (hθ n) (hpθ n) (hUV x hx) | |
| 155 | + have hzf := temporalAtIndex_local_fast h n (index n) hV (hz n) (hpz n) (hUV x hx) | |
| 156 | + let desired : ScalarField (PressureStream.Lift S) := fun m => | |
| 157 | + MeanChartCompatibility.temporalAtIndex h m (index m) (u.axialResidual c m) | |
| 158 | + have hdes : DifferentiableAt ℝ (desired n) x := | |
| 159 | + ((temporalAtIndex_local_smooth h n (index n) hV (hz n) (hpz n)).contDiffAt | |
| 160 | + ((slowDomain_open hV).mem_nhds (hUV x hx))).differentiableAt (by simp) | |
| 161 | + have hinc : DifferentiableAt ℝ ((temporalIncrementState g h index axial c u).axial n) x := | |
| 162 | + ((hi.axial n).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp) | |
| 163 | + have hd : HasFDerivAt (temporalAxialDifference g h index c u n) | |
| 164 | + (fderiv ℝ (desired n) x - | |
| 165 | + fderiv ℝ ((temporalIncrementState g h index axial c u).axial n) x) x := | |
| 166 | + hdes.hasFDerivAt.sub hinc.hasFDerivAt | |
| 167 | + have he : c.operators.fastTime (temporalAxialDifference g h index c u) n x = | |
| 168 | + c.operators.fastTime desired n x - | |
| 169 | + c.operators.fastTime (temporalIncrementState g h index axial c u).axial n x := by | |
| 170 | + simp only [Operators.fastTime, hd.fderiv, _root_.sub_apply, mul_sub] | |
| 171 | + constructor | |
| 172 | + · rw [common_fastTime h index c hv hfast] | |
| 173 | + change MeanChartCompatibility.fastAtIndex h n (index n) | |
| 174 | + (MeanChartCompatibility.temporalAtIndex h n (index n) (u.thetaResidual c n)) x + _ = 0 | |
| 175 | + rw [hθf] | |
| 176 | + simp only [TemporalMeanUpdate.centered, meanBar] | |
| 177 | + ring | |
| 178 | + · have hdesired : c.operators.fastTime desired n x = | |
| 179 | + -(u.axialResidual c n x - meanBar (u.axialResidual c) n x) := by | |
| 180 | + rw [common_fastTime h index c hv hfast] | |
| 181 | + exact hzf | |
| 182 | + change _ = -c.operators.fastTime (temporalAxialDifference g h index c u) n x | |
| 183 | + rw [he, hdesired] | |
| 184 | + ring | |
| 185 | + | |
| 186 | +theorem gaugeTemporalStage_theta_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 187 | + {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 188 | + (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 189 | + (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 190 | + (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 191 | + (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 192 | + ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 193 | + (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) | |
| 194 | + (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) | |
| 195 | + (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 196 | + (hW : ∀ i j, SmoothOn U (u.covariance i j)) | |
| 197 | + (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 198 | + (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 199 | + (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 200 | + (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : | |
| 201 | + Agree U ((temporalStageState g h index axial c u).thetaResidual c) | |
| 202 | + (meanBar (u.thetaResidual c) + thetaRemainder c.operators c.base u.mean | |
| 203 | + (temporalIncrementState g h index axial c u)) := by | |
| 204 | + have he := thetaResidual_change hU c.operators hprofile hb hm hi u.covariance hW c.virtualTheta | |
| 205 | + have hnew : (temporalStageState g h index axial c u).thetaResidual c = | |
| 206 | + MeanIncrementBounds.thetaResidual c.operators c.base | |
| 207 | + (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance c.virtualTheta := by | |
| 208 | + simp [State.thetaResidual, temporalStageState, | |
| 209 | + reconstructState, State.addIncrement] | |
| 210 | + rfl | |
| 211 | + intro n x hx | |
| 212 | + have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast | |
| 213 | + hi hθ hz hpθ hpz n hx).1 | |
| 214 | + have he' := he n hx | |
| 215 | + rw [hnew] | |
| 216 | + simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ | |
| 217 | + change _ - u.thetaResidual c n x = _ at he' | |
| 218 | + linarith | |
| 219 | + | |
| 220 | +theorem gaugeTemporalStage_axial_exact {U : Set (PressureStream.Lift S)} (hU : IsOpen U) | |
| 221 | + {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ U, x.2.1 ∈ V) | |
| 222 | + (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 223 | + (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) | |
| 224 | + (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 225 | + (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 226 | + ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 227 | + (hprofile : ContDiffOn ℝ ∞ c.operators.radialProfile U) | |
| 228 | + (hb : SmoothTriple U c.base) (hm : SmoothTriple U u.mean) | |
| 229 | + (hi : SmoothTriple U (temporalIncrementState g h index axial c u)) | |
| 230 | + (hW : ∀ i j, SmoothOn U (u.covariance i j)) | |
| 231 | + (hp : SmoothOn U u.pressure) | |
| 232 | + (hnp : SmoothOn U (temporalStageState g h index axial c u).pressure) | |
| 233 | + (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 234 | + (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 235 | + (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 236 | + (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) : | |
| 237 | + Agree U (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - | |
| 238 | + temporalAliasState g h index c u n (x, 0) 2) | |
| 239 | + (meanBar (u.axialResidual c) + axialRemainder c.operators c.base u.mean | |
| 240 | + (temporalIncrementState g h index axial c u) (gaugeTemporalPressureChange g h index axial c u)) := by | |
| 241 | + have he := axialResidual_change hU c.operators hprofile hb hm hi u.covariance hW u.pressure | |
| 242 | + (gaugeTemporalPressureChange g h index axial c u) c.virtualAxial hp (hnp.sub hp) | |
| 243 | + have hpressure : u.pressure + gaugeTemporalPressureChange g h index axial c u = | |
| 244 | + (temporalStageState g h index axial c u).pressure := by | |
| 245 | + unfold gaugeTemporalPressureChange | |
| 246 | + abel | |
| 247 | + have hnew : (temporalStageState g h index axial c u).axialResidual c = | |
| 248 | + MeanIncrementBounds.axialResidual c.operators c.base | |
| 249 | + (updated u.mean (temporalIncrementState g h index axial c u)) u.covariance | |
| 250 | + (u.pressure + gaugeTemporalPressureChange g h index axial c u) c.virtualAxial := by | |
| 251 | + rw [hpressure] | |
| 252 | + simp [State.axialResidual, temporalStageState, | |
| 253 | + reconstructState, State.addIncrement] | |
| 254 | + rfl | |
| 255 | + intro n x hx | |
| 256 | + have hc := (gaugeTemporal_fastCancellation hU hV hUV g h index axial c u hv hfast | |
| 257 | + hi hθ hz hpθ hpz n hx).2 | |
| 258 | + have he' := he n hx | |
| 259 | + rw [hnew] | |
| 260 | + simp only [Pi.add_apply, Pi.sub_apply] at he' ⊢ | |
| 261 | + change _ - u.axialResidual c n x = _ at he' | |
| 262 | + linarith | |
| 263 | + | |
| 264 | +end GaugeTemporalResidual | |
| 265 | + | |
| 266 | +section GaugeTemporalGain | |
| 267 | + | |
| 268 | +open CorrectionState VariableGaugeMean PhysicalMeanDomain | |
| 269 | + | |
| 270 | +variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] | |
| 271 | + | |
| 272 | +/-- The actual variable-gauge temporal update has the same differentiated | |
| 273 | +mean remainder as the fixed-gauge update. Its axial alias remains explicit. -/ | |
| 274 | +theorem gaugeTemporalStage_mean_gain {s : StripData (PressureStream.Lift S)} | |
| 275 | + {V : Set S} (hV : IsOpen V) (hUV : ∀ x ∈ s.domain, x.2.1 ∈ V) | |
| 276 | + (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ) (axial : S × PressureStream.Plane) | |
| 277 | + (c : Context (PressureStream.Lift S)) (u : State (PressureStream.Lift S)) {H κ β : ℝ} | |
| 278 | + (hv : c.operators.vT = (0, (0, TorusInverse.vector .temporal))) | |
| 279 | + (hfast : ∀ n, c.operators.fastCoefficient n = | |
| 280 | + ChartScales.Tg ^ index n * ChartScales.Q n ^ (1 + h)) | |
| 281 | + (ho : OperatorBounds s c.operators κ) (hb : BaseBounds s c.base) | |
| 282 | + (hu : CorrectionState.CumulativeBounds s u) | |
| 283 | + (hi : IncrementBounds s H (temporalIncrementState g h index axial c u)) | |
| 284 | + (hdp : MeanClass s H (gaugeTemporalPressureChange g h index axial c u)) | |
| 285 | + (hW : ∀ i j, SmoothOn s.domain (u.covariance i j)) | |
| 286 | + (hbarθ : MeanClass s β (meanBar (u.thetaResidual c))) | |
| 287 | + (hbarz : MeanClass s β (meanBar (u.axialResidual c))) | |
| 288 | + (hθ : ∀ n, ContDiffOn ℝ ∞ (u.thetaResidual c n) (slowDomain V)) | |
| 289 | + (hz : ∀ n, ContDiffOn ℝ ∞ (u.axialResidual c n) (slowDomain V)) | |
| 290 | + (hpθ : ∀ n, PeriodicOn V (u.thetaResidual c n)) | |
| 291 | + (hpz : ∀ n, PeriodicOn V (u.axialResidual c n)) | |
| 292 | + (hH : 9 / 10 ≤ H) (hβ : β ≤ H + 1 - 2 * κ) : | |
| 293 | + MeanClass s β ((temporalStageState g h index axial c u).thetaResidual c) ∧ | |
| 294 | + MeanClass s β (fun n x => (temporalStageState g h index axial c u).axialResidual c n x - | |
| 295 | + temporalAliasState g h index c u n (x, 0) 2) := by | |
| 296 | + have hnp : SmoothOn s.domain (temporalStageState g h index axial c u).pressure := by | |
| 297 | + have he : (temporalStageState g h index axial c u).pressure = | |
| 298 | + u.pressure + gaugeTemporalPressureChange g h index axial c u := by | |
| 299 | + unfold gaugeTemporalPressureChange | |
| 300 | + abel | |
| 301 | + rw [he] | |
| 302 | + exact fun n => (hu.pressure.smooth n).add (hdp.smooth n) | |
| 303 | + constructor | |
| 304 | + · apply class_congr (hbarθ.add ((thetaRemainder_mem ho hb hu.velocity hi hH).mono_exponent hβ)) | |
| 305 | + exact gaugeTemporalStage_theta_exact s.isOpen_domain hV hUV g h index axial c u hv hfast | |
| 306 | + (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hθ hz hpθ hpz | |
| 307 | + · apply class_congr (hbarz.add ((axialRemainder_mem ho hb hu.velocity hi hH hdp).mono_exponent hβ)) | |
| 308 | + exact gaugeTemporalStage_axial_exact s.isOpen_domain hV hUV g h index axial c u hv hfast | |
| 309 | + (ho.radialProfile.smooth 0) hb.smooth hu.velocity.smooth hi.smooth hW hu.pressure.smooth hnp | |
| 310 | + hθ hz hpθ hpz | |
| 311 | + | |
| 312 | +end GaugeTemporalGain | |
| 313 | + | |
| 314 | +end NavierStokes.CorrectionStep | |
+20 −0 routes/p2-correction-temporal-mean/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 3 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | + | |
| 6 | +# P-2: Extract the temporal mean correction | |
| 7 | + | |
| 8 | +Third slice after [PR #31](https://shoal.club/shoal/navier-stokes/pull/31). The intervening [S-1 cleanup](https://shoal.club/shoal/navier-stokes/commit/0bc629bf) left only `meanBar` in the previously planned fixed-gauge block. This slice moves it with the live variable-gauge temporal residual identities to [`NavierStokes/CorrectionStepTemporalMean.lean`](../../NavierStokes/CorrectionStepTemporalMean.lean), without restoring any removed declarations. The namespace and the `NavierStokes.CorrectionStep` import entry point stay the same; rank bookkeeping and the downstream constructed-stage theorem stay in `CorrectionStep.lean`. | |
| 9 | + | |
| 10 | +| Entry | [166-page paper](https://cdn.openai.com/pdf/32d9f210-8b73-45e0-91bc-82a30aef8a9a/navier-stokes.pdf) | | |
| 11 | +| --- | --- | | |
| 12 | +| `meanBar`, `common_fastTime`, `temporalAtIndex_local_fast` | §8.5 (8.20), (8.23), pp. 95–96: take the auxiliary Haar mean, not the physical angular mean. The localization establishes a germ identity for the same common-clock inverse. | | |
| 13 | +| `gaugeTemporal_fastCancellation`, `gaugeTemporalStage_theta_exact`, `gaugeTemporalStage_axial_exact` | §8.5 (8.21)–(8.22) and §9.3, Proposition 9.6, Step 3, p. 110: exact angular fast-time cancellation; retain the fast derivative of the actual-minus-desired axial increment separately. | | |
| 14 | +| `gaugeTemporalPressureChange`, `gaugeTemporalStage_mean_gain` | §8.3, Proposition 8.3(i), (8.12) and §9.3, Step 3: recompute pressure on the updated radial source. The residual gain assumes the pressure-change bound of order `H`, uses the exponent `H + 1 - 2κ`, and does not prove the separately retained axial alias is flat. | | |
| 15 | + | |
| 16 | +To reproduce the move check, compare the five whole sections (`TemporalComposition`, `CommonTemporalConstruction`, `LocalCommonClock`, `GaugeTemporalResidual`, `GaugeTemporalGain`) and the three temporal declarations from `GaugeMeanBookkeeping` to [`948cd1d`](https://shoal.club/shoal/navier-stokes/blob/948cd1d00eac1fecba091ab698b945df4d498d9e/NavierStokes/CorrectionStep.lean). All 11 declaration bodies and statements are byte-identical in Git; the remaining declarations are unchanged. Run `python3 checks/challenge.py .` from an LF checkout and `lake build NavierStokes.CorrectionStepTemporalMean NavierStokes.CorrectionStep` with the pinned toolchain. This checkout has no matching local toolchain; the remote `build` is the compilation check. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Read `challenge` and `build` on the pull request's head. For a later split, use fresh `main`: the divergence of actual updates is a separate candidate, and the downstream temporal construction still depends on the pressure/support estimates. | |