| @@ -1657,13 +1657,6 @@ theorem concrete_rank_stream_meanClass (coord qlo qhi rlo rhi cL cR A B lam a b |
| 1657 | 1657 | (normalizedStrip_weight_margin coord qlo qhi rlo rhi cL cR a b hc hc1 hrlo hcL hcR |
| 1658 | 1658 | ε S hε hεone hS hleft hright) w hd |
| 1659 | 1659 | |
| 1660 | | -theorem radial_physical_scale_gain (s : WeightedClasses.StripData ChartPoint) {α : ℝ} |
| 1661 | | - {β : ℕ → ChartPoint → ℝ} (hβ : WeightedClasses.MeanClass s α β) : |
| 1662 | | - WeightedClasses.MeanClass s (α + 1) (fun n p => s.epsilon n * β n p) := by |
| 1663 | | - have he : WeightedClasses.BandBound s 1 (fun n => s.epsilon n) := by |
| 1664 | | - simpa only [Real.rpow_one] using WeightedClasses.bandBound_rpow s 1 |
| 1665 | | - simpa only [smul_eq_mul] using hβ.band_smul he |
| 1666 | | - |
| 1667 | 1660 | end PrimitiveClass |
| 1668 | 1661 | |
| 1669 | 1662 | section ExactPrimitive |
| @@ -1684,41 +1677,6 @@ theorem scaledPrimitive_zero_below {l r : ℝ} (hl : 0 ≤ l) {f : ℝ → ℝ} |
| 1684 | 1677 | _ = 0 := by simp |
| 1685 | 1678 | rw [he, mul_zero] |
| 1686 | 1679 | |
| 1687 | | -theorem scaledPrimitive_sum (f : Fin 3 → ℝ → ℝ) (hf : ∀ i, Continuous (f i)) (d : Debt) (r : ℝ) : |
| 1688 | | - scaledPrimitive (fun x => ∑ i : Fin 3, d i * f i x) r = |
| 1689 | | - ∑ i : Fin 3, d i * scaledPrimitive (f i) r := by |
| 1690 | | - unfold scaledPrimitive |
| 1691 | | - have he : (fun t => t * ∑ i : Fin 3, d i * f i (r * t)) = |
| 1692 | | - (fun t => ∑ i : Fin 3, d i * (t * f i (r * t))) := by |
| 1693 | | - funext t |
| 1694 | | - rw [Finset.mul_sum] |
| 1695 | | - apply Finset.sum_congr rfl |
| 1696 | | - intro i _ |
| 1697 | | - ring |
| 1698 | | - rw [he, intervalIntegral.integral_finsetSum] |
| 1699 | | - · rw [Finset.mul_sum] |
| 1700 | | - apply Finset.sum_congr rfl |
| 1701 | | - intro i _ |
| 1702 | | - rw [intervalIntegral.integral_const_mul] |
| 1703 | | - ring |
| 1704 | | - · intro i _ |
| 1705 | | - exact (continuous_const.mul (continuous_id.mul ((hf i).comp |
| 1706 | | - (continuous_const.mul continuous_id)))).intervalIntegrable 0 1 |
| 1707 | | - |
| 1708 | | -theorem chartPotential_eq_scaledPrimitive (coord A B lam a b : ℝ) (d : ChartPoint → Debt) |
| 1709 | | - (p : ChartPoint) : |
| 1710 | | - chartPotential coord A B lam a b d p = |
| 1711 | | - scaledPrimitive (desiredAxialIncrement lam (shapedAmplitude B (chartEta coord p)) a b |
| 1712 | | - (Real.sqrt (chartQ coord p)) (chartQ coord p ^ (-A)) (d p)) p.1 := by |
| 1713 | | - have he : desiredAxialIncrement lam (shapedAmplitude B (chartEta coord p)) a b |
| 1714 | | - (Real.sqrt (chartQ coord p)) (chartQ coord p ^ (-A)) (d p) = |
| 1715 | | - (fun r => ∑ i : Fin 3, d p i * desiredAxialIncrement lam (shapedAmplitude B (chartEta coord p)) a b |
| 1716 | | - (Real.sqrt (chartQ coord p)) (chartQ coord p ^ (-A)) (Pi.single i 1) r) := by |
| 1717 | | - funext r |
| 1718 | | - exact desiredAxialIncrement_eq_sum _ _ _ _ _ _ _ _ |
| 1719 | | - rw [he, scaledPrimitive_sum _ (fun i => (desiredAxialIncrement_smooth _ _ _ _ _ _ _).continuous)] |
| 1720 | | - rfl |
| 1721 | | - |
| 1722 | 1680 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1723 | 1681 | |
| 1724 | 1682 | /-- The stream is the ordinary zero-axis primitive for a slow zero-mass |
| @@ -1790,74 +1748,6 @@ end ExactPrimitive |
| 1790 | 1748 | |
| 1791 | 1749 | section ActualChartStream |
| 1792 | 1750 | |
| 1793 | | -noncomputable def slowChartDesired (coord A B lam a b : ℝ) (d : PressureStream.Plane → Debt) : |
| 1794 | | - ℝ × PressureStream.Plane → ℝ := |
| 1795 | | - fun p => chartAxial coord A B lam a b (fun z => d z.2.1) (p.1, p.2, 0) |
| 1796 | | - |
| 1797 | | -noncomputable def actualChartPotential (coord A B lam a b power lo hi M : ℝ) |
| 1798 | | - (v : PressureStream.Plane) (d : PressureStream.Plane → Debt) : ChartPoint → ℝ := |
| 1799 | | - PressureStream.streamPotential power lo hi M ((0 : PressureStream.Plane), v) |
| 1800 | | - (slowLift (slowChartDesired coord A B lam a b d)) |
| 1801 | | - |
| 1802 | | -noncomputable def actualChartRadial (coord A B lam a b power lo hi M : ℝ) |
| 1803 | | - (v : PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) |
| 1804 | | - (d : PressureStream.Plane → Debt) : ChartPoint → ℝ := |
| 1805 | | - PressureStream.streamBeta w (actualChartPotential coord A B lam a b power lo hi M v d) |
| 1806 | | - |
| 1807 | | -theorem actualChartPotential_eq_chartPotential {coord A B lam a b power lo hi M qlo qhi : ℝ} |
| 1808 | | - (hlam : 0 < lam) (hB : B ≠ 0) (ha : 0 < a) (hab : a < b) |
| 1809 | | - (hp : 0 < power) (hlo : 0 < lo) (horder : lo < hi) (hqlo : 0 < qlo) |
| 1810 | | - (hleft : lo ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ hi) |
| 1811 | | - (v : PressureStream.Plane) (d : PressureStream.Plane → Debt) {p : ChartPoint} |
| 1812 | | - (hq : chartQ coord p ∈ Icc qlo qhi) : |
| 1813 | | - actualChartPotential coord A B lam a b power lo hi M v d p = |
| 1814 | | - chartPotential coord A B lam a b (fun z => d z.2.1) p := by |
| 1815 | | - have hqp : 0 < chartQ coord p := hqlo.trans_le hq.1 |
| 1816 | | - have hf : ContDiff ℝ ∞ (fun r => slowChartDesired coord A B lam a b d (r, p.2.1)) := |
| 1817 | | - desiredAxialIncrement_smooth lam (shapedAmplitude B (chartEta coord p)) a b |
| 1818 | | - (Real.sqrt (chartQ coord p)) (chartQ coord p ^ (-A)) (d p.2.1) |
| 1819 | | - have hs : support (fun r => slowChartDesired coord A B lam a b d (r, p.2.1)) ⊆ Icc lo hi := by |
| 1820 | | - intro r hr |
| 1821 | | - have ht := desiredAxialIncrement_tsupport lam (shapedAmplitude B (chartEta coord p)) a b |
| 1822 | | - (chartQ coord p ^ (-A)) (Real.sqrt_pos.mpr hqp) hab (d p.2.1) (subset_closure hr) |
| 1823 | | - exact ⟨(hleft.trans (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hq.1) ha.le)).trans ht.1.le, |
| 1824 | | - ht.2.le.trans ((mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hq.2) (ha.trans hab).le).trans hright)⟩ |
| 1825 | | - have hm : (∫ r, r * slowChartDesired coord A B lam a b d (r, p.2.1)) = 0 := |
| 1826 | | - (physical_five_rows (C := shapedAmplitude B (chartEta coord p)) (ell := Real.sqrt (chartQ coord p)) |
| 1827 | | - (U := chartQ coord p ^ (-A)) hlam (shapedAmplitude_ne_zero hB _) ha hab |
| 1828 | | - (Real.sqrt_pos.mpr hqp) (Real.rpow_pos_of_pos hqp _).ne' (d p.2.1)).2.1 |
| 1829 | | - have he := slow_streamPotential_eq_scaledPrimitive_slice (M := M) hlo horder hp v |
| 1830 | | - (slowChartDesired coord A B lam a b d) p hf hs hm |
| 1831 | | - exact he.trans (chartPotential_eq_scaledPrimitive coord A B lam a b (fun z => d z.2.1) p).symm |
| 1832 | | - |
| 1833 | | -/-- The full slow stream estimate is for the actual `PressureStream` |
| 1834 | | -operator. The proof does not extend data outside the positive-time domain. -/ |
| 1835 | | -theorem actual_rank_stream_meanClass (s : WeightedClasses.StripData ChartPoint) |
| 1836 | | - {coord A B lam a b power lo hi qlo qhi α : ℝ} |
| 1837 | | - (hc : 0 < coord) (hc1 : coord < 1) (hlam : 0 < lam) (ha : 0 < a) (hab : a < b) |
| 1838 | | - (hB : B ≠ 0) (hp : 0 < power) (hlo : 0 < lo) (horder : lo < hi) (hqlo : 0 < qlo) |
| 1839 | | - (hleft : lo ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ hi) |
| 1840 | | - (hT : ∀ p ∈ s.domain, chartInput p ∈ PhysicalCoordinateBounds.positiveTime) |
| 1841 | | - (hq : ∀ p ∈ s.domain, chartQ coord p ∈ Icc qlo qhi) |
| 1842 | | - (hR : ∀ p ∈ s.domain, p.1 ∈ Icc lo hi) |
| 1843 | | - (hz : ∃ δ : ℝ, 0 < δ ∧ ∀ p ∈ s.domain, p ∈ supportBand a b qlo qhi → δ ≤ s.zeta p) |
| 1844 | | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) |
| 1845 | | - {d : ℕ → PressureStream.Plane → Debt} |
| 1846 | | - (hd : WeightedClasses.UnweightedClass s α (fun n p => d n p.2.1)) : |
| 1847 | | - WeightedClasses.MeanClass s α (fun n => actualChartPotential coord A B lam a b power lo hi (M n) (v n) (d n)) ∧ |
| 1848 | | - WeightedClasses.MeanClass s α (fun n => actualChartRadial coord A B lam a b power lo hi (M n) (v n) w (d n)) := by |
| 1849 | | - have h := (rank_stream_meanClass (A := A) (B := B) (lam := lam) s hc hc1 hlam ha hab hB hqlo |
| 1850 | | - hT hq hR hz w hd).1 |
| 1851 | | - have hpot : WeightedClasses.MeanClass s α |
| 1852 | | - (fun n => actualChartPotential coord A B lam a b power lo hi (M n) (v n) (d n)) := |
| 1853 | | - meanClass_congr_on h (fun n p hps => actualChartPotential_eq_chartPotential |
| 1854 | | - hlam hB ha hab hp hlo horder hqlo hleft hright (v n) (d n) (hq p hps)) |
| 1855 | | - refine ⟨hpot, ?_⟩ |
| 1856 | | - have hder := (hpot.directional (0, w)).map (-ContinuousLinearMap.id ℝ ℝ) |
| 1857 | | - simp only [actualChartRadial, |
| 1858 | | - _root_.neg_apply, ContinuousLinearMap.id_apply] at hder ⊢ |
| 1859 | | - exact hder |
| 1860 | | - |
| 1861 | 1751 | end ActualChartStream |
| 1862 | 1752 | |
| 1863 | 1753 | section LocalSlowStream |
| @@ -1910,94 +1800,10 @@ end LocalSlowStream |
| 1910 | 1800 | |
| 1911 | 1801 | section ActualChartIdentities |
| 1912 | 1802 | |
| 1913 | | -noncomputable def actualChartAxial (coord A B lam a b power lo hi M : ℝ) |
| 1914 | | - (v : PressureStream.Plane) (d : PressureStream.Plane → Debt) : ChartPoint → ℝ := |
| 1915 | | - PressureStream.streamGamma (PressureStream.physicalSpeed power M) ((0 : PressureStream.Plane), v) |
| 1916 | | - (actualChartPotential coord A B lam a b power lo hi M v d) |
| 1917 | | - |
| 1918 | | -theorem actualChartAxial_eq_desired {coord A B lam a b power lo hi M qlo qhi : ℝ} |
| 1919 | | - (hlam : 0 < lam) (hB : B ≠ 0) (ha : 0 < a) (hab : a < b) |
| 1920 | | - (hp : 0 < power) (hlo : 0 < lo) (horder : lo < hi) (hqlo : 0 < qlo) |
| 1921 | | - (hleft : lo ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ hi) |
| 1922 | | - (v : PressureStream.Plane) (d : PressureStream.Plane → Debt) {p : ChartPoint} |
| 1923 | | - (hq : chartQ coord p ∈ Icc qlo qhi) |
| 1924 | | - (hΨ : DifferentiableAt ℝ (actualChartPotential coord A B lam a b power lo hi M v d) p) : |
| 1925 | | - actualChartAxial coord A B lam a b power lo hi M v d p = slowChartDesired coord A B lam a b d (p.1, p.2.1) := by |
| 1926 | | - have hqp : 0 < chartQ coord p := hqlo.trans_le hq.1 |
| 1927 | | - have hf : ContDiff ℝ ∞ (fun r => slowChartDesired coord A B lam a b d (r, p.2.1)) := |
| 1928 | | - desiredAxialIncrement_smooth lam (shapedAmplitude B (chartEta coord p)) a b |
| 1929 | | - (Real.sqrt (chartQ coord p)) (chartQ coord p ^ (-A)) (d p.2.1) |
| 1930 | | - have hs : support (fun r => slowChartDesired coord A B lam a b d (r, p.2.1)) ⊆ Icc lo hi := by |
| 1931 | | - intro r hr |
| 1932 | | - have ht := desiredAxialIncrement_tsupport lam (shapedAmplitude B (chartEta coord p)) a b |
| 1933 | | - (chartQ coord p ^ (-A)) (Real.sqrt_pos.mpr hqp) hab (d p.2.1) (subset_closure hr) |
| 1934 | | - exact ⟨(hleft.trans (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hq.1) ha.le)).trans ht.1.le, |
| 1935 | | - ht.2.le.trans ((mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt hq.2) (ha.trans hab).le).trans hright)⟩ |
| 1936 | | - have hm : (∫ r, r * slowChartDesired coord A B lam a b d (r, p.2.1)) = 0 := |
| 1937 | | - (physical_five_rows (C := shapedAmplitude B (chartEta coord p)) (ell := Real.sqrt (chartQ coord p)) |
| 1938 | | - (U := chartQ coord p ^ (-A)) hlam (shapedAmplitude_ne_zero hB _) ha hab |
| 1939 | | - (Real.sqrt_pos.mpr hqp) (Real.rpow_pos_of_pos hqp _).ne' (d p.2.1)).2.1 |
| 1940 | | - exact slow_streamGamma_eq_desired_slice hlo horder hp v |
| 1941 | | - (slowChartDesired coord A B lam a b d) p hf hs hm hΨ |
| 1942 | | - |
| 1943 | | -/-- Exact slow realization and divergence on the actual normalized physical |
| 1944 | | -domain, derived from the input defect class rather than assumed regularity. -/ |
| 1945 | | -theorem actual_rank_stream_identities (s : WeightedClasses.StripData ChartPoint) |
| 1946 | | - {coord A B lam a b power lo hi qlo qhi α : ℝ} |
| 1947 | | - (hc : 0 < coord) (hc1 : coord < 1) (hlam : 0 < lam) (ha : 0 < a) (hab : a < b) |
| 1948 | | - (hB : B ≠ 0) (hp : 0 < power) (hlo : 0 < lo) (horder : lo < hi) (hqlo : 0 < qlo) |
| 1949 | | - (hleft : lo ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ hi) |
| 1950 | | - (hT : ∀ p ∈ s.domain, chartInput p ∈ PhysicalCoordinateBounds.positiveTime) |
| 1951 | | - (hq : ∀ p ∈ s.domain, chartQ coord p ∈ Icc qlo qhi) |
| 1952 | | - (hR : ∀ p ∈ s.domain, p.1 ∈ Icc lo hi) |
| 1953 | | - (hz : ∃ δ : ℝ, 0 < δ ∧ ∀ p ∈ s.domain, p ∈ supportBand a b qlo qhi → δ ≤ s.zeta p) |
| 1954 | | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) |
| 1955 | | - {d : ℕ → PressureStream.Plane → Debt} |
| 1956 | | - (hd : WeightedClasses.UnweightedClass s α (fun n p => d n p.2.1)) : |
| 1957 | | - ∀ n p, p ∈ s.domain → |
| 1958 | | - actualChartAxial coord A B lam a b power lo hi (M n) (v n) (d n) p = |
| 1959 | | - slowChartDesired coord A B lam a b (d n) (p.1, p.2.1) ∧ |
| 1960 | | - PressureStream.graphDivergence (PressureStream.physicalSpeed power (M n)) ((0 : PressureStream.Plane), v n) w |
| 1961 | | - (actualChartRadial coord A B lam a b power lo hi (M n) (v n) w (d n)) |
| 1962 | | - (actualChartAxial coord A B lam a b power lo hi (M n) (v n) (d n)) p = 0 := by |
| 1963 | | - have hclass := (actual_rank_stream_meanClass (A := A) s hc hc1 hlam ha hab hB hp hlo horder hqlo |
| 1964 | | - hleft hright hT hq hR hz M v w hd).1 |
| 1965 | | - intro n p hps |
| 1966 | | - have hΨ := (hclass.smooth n).contDiffAt (s.isOpen_domain.mem_nhds hps) |
| 1967 | | - have hΨ2 : ContDiffAt ℝ 2 (actualChartPotential coord A B lam a b power lo hi (M n) (v n) (d n)) p := |
| 1968 | | - hΨ.of_le (ENat.natCast_lt_of_coe_top_le_withTop le_rfl 2).le |
| 1969 | | - have hr : p.1 ≠ 0 := (hlo.trans_le (hR p hps).1).ne' |
| 1970 | | - refine ⟨actualChartAxial_eq_desired hlam hB ha hab hp hlo horder hqlo hleft hright |
| 1971 | | - (v n) (d n) (hq p hps) (hΨ.differentiableAt (by simp)), ?_⟩ |
| 1972 | | - exact PressureStream.stream_divergence_zero ((0 : PressureStream.Plane), v n) w |
| 1973 | | - hΨ2 ((PressureStream.physicalSpeed_smooth power (M n) hr).differentiableAt (by simp)) hr |
| 1974 | | - |
| 1975 | 1803 | end ActualChartIdentities |
| 1976 | 1804 | |
| 1977 | 1805 | section AllVelocityClasses |
| 1978 | 1806 | |
| 1979 | | -theorem actual_rank_velocity_meanClass (s : WeightedClasses.StripData ChartPoint) |
| 1980 | | - {coord A B lam a b power lo hi qlo qhi α : ℝ} |
| 1981 | | - (hc : 0 < coord) (hc1 : coord < 1) (hlam : 0 < lam) (ha : 0 < a) (hab : a < b) |
| 1982 | | - (hB : B ≠ 0) (hp : 0 < power) (hlo : 0 < lo) (horder : lo < hi) (hqlo : 0 < qlo) |
| 1983 | | - (hleft : lo ≤ Real.sqrt qlo * a) (hright : Real.sqrt qhi * b ≤ hi) |
| 1984 | | - (hT : ∀ p ∈ s.domain, chartInput p ∈ PhysicalCoordinateBounds.positiveTime) |
| 1985 | | - (hq : ∀ p ∈ s.domain, chartQ coord p ∈ Icc qlo qhi) |
| 1986 | | - (hR : ∀ p ∈ s.domain, p.1 ∈ Icc lo hi) |
| 1987 | | - (hz : ∃ δ : ℝ, 0 < δ ∧ ∀ p ∈ s.domain, p ∈ supportBand a b qlo qhi → δ ≤ s.zeta p) |
| 1988 | | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : PressureStream.Plane × PressureStream.Plane) |
| 1989 | | - {d : ℕ → PressureStream.Plane → Debt} |
| 1990 | | - (hd : WeightedClasses.UnweightedClass s α (fun n p => d n p.2.1)) : |
| 1991 | | - WeightedClasses.MeanClass s α (fun n => chartAngular coord A B lam a b (fun p => d n p.2.1)) ∧ |
| 1992 | | - WeightedClasses.MeanClass s α (fun n => actualChartAxial coord A B lam a b power lo hi (M n) (v n) (d n)) ∧ |
| 1993 | | - WeightedClasses.MeanClass s α (fun n => actualChartRadial coord A B lam a b power lo hi (M n) (v n) w (d n)) := by |
| 1994 | | - have hfields := rank_update_meanClass (A := A) (B := B) (lam := lam) s hc hc1 ha hab hB hqlo hT hq hR hz hd |
| 1995 | | - have hstream := actual_rank_stream_meanClass (A := A) s hc hc1 hlam ha hab hB hp hlo horder hqlo |
| 1996 | | - hleft hright hT hq hR hz M v w hd |
| 1997 | | - have he := actual_rank_stream_identities (A := A) s hc hc1 hlam ha hab hB hp hlo horder hqlo |
| 1998 | | - hleft hright hT hq hR hz M v w hd |
| 1999 | | - exact ⟨hfields.1, meanClass_congr_on hfields.2 (fun n p hps => (he n p hps).1), hstream.2⟩ |
| 2000 | | - |
| 2001 | 1807 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 2002 | 1808 | |
| 2003 | 1809 | theorem slow_streamPotential_phase_independent (lo hi power M : ℝ) (v : PressureStream.Plane) |