| @@ -115,9 +115,6 @@ theorem correction_tsupport (P : Patch) (c : Fin n → ℝ) : |
| 115 | 115 | obtain ⟨j, hj⟩ := mem_iUnion.mp hm |
| 116 | 116 | exact ⟨(lower_gt_left P j).trans hj.1, hj.2.trans (upper_lt_right P j)⟩ |
| 117 | 117 | |
| 118 | | -theorem correction_hasCompactSupport (P : Patch) (c : Fin n → ℝ) : HasCompactSupport (correction P c) := |
| 119 | | - HasCompactSupport.of_support_subset_isCompact isCompact_Icc (correction_support P c) |
| 120 | | - |
| 121 | 118 | theorem weighted_integrable (P : Patch) (s : ℝ) (g : ℝ → ℝ) |
| 122 | 119 | (hg : Continuous g) (hs : support g ⊆ Icc P.left P.right) : |
| 123 | 120 | Integrable (fun x => x ^ s * g x) := by |
| @@ -653,21 +650,6 @@ were proved nonzero above. -/ |
| 653 | 650 | noncomputable def actualLinearEquiv (P : Patch) (b A G : ℝ) (hb : GoodExponent b) |
| 654 | 651 | (hA : A ≠ 0) : Coeff ≃L[ℝ] Debt := (linearEquiv P b hb).trans (physicalEquiv A G hA) |
| 655 | 652 | |
| 656 | | -theorem physicalMoments_hasFDerivAt_zero (P : Patch) (b A G : ℝ) (hb : GoodExponent b) |
| 657 | | - (hA : A ≠ 0) : HasFDerivAt (physicalMoments P b A G) |
| 658 | | - (actualLinearEquiv P b A G hb hA).toContinuousLinearMap 0 := by |
| 659 | | - have hn : normalizedMap P b = |
| 660 | | - UniformAngularReset.quadraticMap (linearEquiv P b hb) (quadraticCLM P) := |
| 661 | | - funext (fun c => (normalizedMap_identity P b hb c).symm) |
| 662 | | - have hd : HasFDerivAt (normalizedMap P b) (linearEquiv P b hb).toContinuousLinearMap 0 := by |
| 663 | | - rw [hn] |
| 664 | | - simpa [UniformAngularReset.tangent] using |
| 665 | | - UniformAngularReset.quadraticMap_hasFDerivAt (linearEquiv P b hb) (quadraticCLM P) 0 |
| 666 | | - have hp : physicalMoments P b A G = fun c => physicalEquiv A G hA (normalizedMap P b c) := |
| 667 | | - funext (physicalMoments_eq P b A G hA) |
| 668 | | - rw [hp] |
| 669 | | - exact (physicalEquiv A G hA).hasFDerivAt.comp 0 hd |
| 670 | | - |
| 671 | 653 | theorem physicalDensity_zero_outside (P : Patch) (b A G : ℝ) (c : Coeff) {x : ℝ} |
| 672 | 654 | (hx : x ∉ Ioo P.left P.right) : physicalDensity P b A G c x = 0 := by |
| 673 | 655 | have hu : u P c x = 0 := by |
| @@ -687,14 +669,6 @@ theorem physicalDensity_zero_outside (P : Patch) (b A G : ℝ) (c : Coeff) {x : |
| 687 | 669 | ext i |
| 688 | 670 | fin_cases i <;> simp [physicalDebt, normalizedDensity, hu, he] |
| 689 | 671 | |
| 690 | | -theorem physicalMoments_positive_axis (P : Patch) (b A G : ℝ) (c : Coeff) (i : Fin 5) : |
| 691 | | - (∫ x in Ioi (0 : ℝ), physicalDensity P b A G c x i) = physicalMoments P b A G c i := by |
| 692 | | - apply setIntegral_eq_integral_of_forall_compl_eq_zero |
| 693 | | - intro x hx |
| 694 | | - have hout : x ∉ Ioo P.left P.right := fun h => hx (P.left_pos.trans h.1) |
| 695 | | - rw [physicalDensity_zero_outside P b A G c hout] |
| 696 | | - rfl |
| 697 | | - |
| 698 | 672 | theorem physicalDensity_integrable (P : Patch) (b A G : ℝ) (hA : A ≠ 0) (c : Coeff) (i : Fin 5) : |
| 699 | 673 | Integrable (fun x => physicalDensity P b A G c x i) := by |
| 700 | 674 | have hi := (physicalEquiv A G hA).toContinuousLinearMap.integrable_comp |
| @@ -749,141 +723,6 @@ theorem normalizedDebt_eq_sum (A G : ℝ) (d : Debt) : |
| 749 | 723 | simp only [map_smul] at he |
| 750 | 724 | exact he.symm |
| 751 | 725 | |
| 752 | | -theorem compact_normalization_bound (S : Set ℝ) (hS : IsCompact S) {A G : ℝ → ℝ} |
| 753 | | - (hA : ContDiffOn ℝ ∞ A S) (hG : ContDiffOn ℝ ∞ G S) (hAn : ∀ p ∈ S, A p ≠ 0) : |
| 754 | | - ∃ K : ℝ, 0 < K ∧ ∀ p ∈ S, ∀ d : Debt, ‖normalizedDebt (A p) (G p) d‖ ≤ K * ‖d‖ := by |
| 755 | | - have hi : ∀ i : Fin 5, ∃ B : ℝ, 0 ≤ B ∧ ∀ p ∈ S, |
| 756 | | - ‖normalizedDebt (A p) (G p) (Pi.single i 1)‖ ≤ B := by |
| 757 | | - intro i |
| 758 | | - obtain ⟨B, hB⟩ := hS.exists_bound_of_continuousOn |
| 759 | | - (normalizedDebt_contDiffOn hA hG (d := fun _ => Pi.single i 1) contDiffOn_const hAn).continuousOn |
| 760 | | - exact ⟨max B 0, le_max_right _ _, fun p hp => (hB p hp).trans (le_max_left _ _)⟩ |
| 761 | | - choose B hB hbound using hi |
| 762 | | - let K : ℝ := 1 + ∑ i, B i |
| 763 | | - have hK : 0 < K := by |
| 764 | | - have hs := Finset.sum_nonneg (s := Finset.univ) (fun i _ => hB i) |
| 765 | | - dsimp [K] |
| 766 | | - linarith |
| 767 | | - refine ⟨K, hK, ?_⟩ |
| 768 | | - intro p hp d |
| 769 | | - rw [normalizedDebt_eq_sum] |
| 770 | | - calc |
| 771 | | - _ ≤ ∑ i, ‖d i • normalizedDebt (A p) (G p) (Pi.single i 1)‖ := norm_sum_le _ _ |
| 772 | | - _ ≤ ∑ i, ‖d‖ * B i := by |
| 773 | | - apply Finset.sum_le_sum |
| 774 | | - intro i _ |
| 775 | | - rw [norm_smul] |
| 776 | | - exact mul_le_mul (norm_le_pi_norm d i) (hbound i p hp) (norm_nonneg _) (norm_nonneg _) |
| 777 | | - _ = (∑ i, B i) * ‖d‖ := by rw [← Finset.mul_sum, mul_comm] |
| 778 | | - _ ≤ K * ‖d‖ := mul_le_mul_of_nonneg_right (by dsimp [K]; linarith) (norm_nonneg d) |
| 779 | | - |
| 780 | | -theorem correction_family_contDiffOn {n : ℕ} (P : Patch) {S : Set ℝ} {c : ℝ → Fin n → ℝ} |
| 781 | | - (hc : ContDiffOn ℝ ∞ c S) : |
| 782 | | - ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => correction P (c z.1) z.2) (S ×ˢ univ) := by |
| 783 | | - apply ContDiffOn.sum |
| 784 | | - intro j _ |
| 785 | | - exact ((contDiffOn_pi.mp hc j).comp contDiffOn_fst (fun z hz => hz.1)).mul |
| 786 | | - ((bump_contDiff P j).comp contDiff_snd).contDiffOn |
| 787 | | - |
| 788 | | -theorem physicalU_family_contDiffOn (P : Patch) {S : Set ℝ} {A G : ℝ → ℝ} {c : ℝ → Coeff} |
| 789 | | - (hA : ContDiffOn ℝ ∞ A S) (hG : ContDiffOn ℝ ∞ G S) (hc : ContDiffOn ℝ ∞ c S) : |
| 790 | | - ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => physicalU P (A z.1) (G z.1) (c z.1) z.2) (S ×ˢ univ) := |
| 791 | | - (hG.comp contDiffOn_fst (fun _ hz => hz.1)).add |
| 792 | | - ((hA.comp contDiffOn_fst (fun _ hz => hz.1)).mul (correction_family_contDiffOn P.leftHalf hc.fst)) |
| 793 | | - |
| 794 | | -theorem physicalE_family_contDiffOn (P : Patch) (b : ℝ) {S : Set ℝ} {A : ℝ → ℝ} {c : ℝ → Coeff} |
| 795 | | - (hA : ContDiffOn ℝ ∞ A S) (hc : ContDiffOn ℝ ∞ c S) : |
| 796 | | - ContDiffOn ℝ ∞ (fun z : ℝ × ℝ => physicalE P b (A z.1) (c z.1) z.2) (S ×ˢ Ioi 0) := by |
| 797 | | - apply (hA.comp contDiffOn_fst (fun z hz => hz.1)).mul |
| 798 | | - apply ContDiffOn.add |
| 799 | | - · exact contDiffOn_snd.rpow_const_of_ne (fun z hz => ne_of_gt hz.2) |
| 800 | | - · exact (correction_family_contDiffOn P.rightHalf hc.snd).mono (fun z hz => ⟨hz.1, mem_univ _⟩) |
| 801 | | - |
| 802 | | -/-- Every fixed finite spatial jet of the physical edits is small with the |
| 803 | | -physical debt, uniformly on compact parameter sets. The actual coefficient |
| 804 | | -branch is smooth on an open neighborhood of the compact set. -/ |
| 805 | | -theorem compact_parameter_repair (P : Patch) (b : ℝ) (hb : GoodExponent b) |
| 806 | | - (S : Set ℝ) (hS : IsCompact S) (A G : ℝ → ℝ) |
| 807 | | - (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ p, 0 < A p) (N : ℕ) : |
| 808 | | - ∃ ε K : ℝ, 0 < ε ∧ 0 < K ∧ ∀ d : ℝ → Debt, |
| 809 | | - ContDiff ℝ ∞ d → (∀ p ∈ S, ‖d p‖ < ε) → |
| 810 | | - ∃ (c : ℝ → Coeff) (V : Set ℝ), IsOpen V ∧ S ⊆ V ∧ ContDiffOn ℝ ∞ c V ∧ |
| 811 | | - (∀ p ∈ V, physicalMoments P b (A p) (G p) (c p) = d p ∧ |
| 812 | | - ∀ x : ℝ, 0 < x → 0 < physicalE P b (A p) (c p) x) ∧ |
| 813 | | - ∀ p ∈ S, ‖c p‖ ≤ K * ‖d p‖ ∧ ∀ k ≤ N, ∀ x : ℝ, |
| 814 | | - |iteratedDeriv k (fun y => A p * u P (c p) y) x| ≤ K * ‖d p‖ ∧ |
| 815 | | - |iteratedDeriv k (fun y => A p * e P (c p) y) x| ≤ K * ‖d p‖ := by |
| 816 | | - obtain ⟨g, ε₀, C, hε₀, hC, hg, _, hgeq⟩ := exists_normalized_repair P b hb |
| 817 | | - obtain ⟨D, hD, hnorm⟩ := compact_normalization_bound S hS hA.contDiffOn hG.contDiffOn |
| 818 | | - (fun p _ => (hApos p).ne') |
| 819 | | - obtain ⟨J, hJ, hjets⟩ := finite_spatial_jet_bound P N |
| 820 | | - obtain ⟨L₀, hL₀⟩ := hS.exists_bound_of_continuousOn hA.continuous.continuousOn |
| 821 | | - let L : ℝ := 1 + |L₀| |
| 822 | | - have hL : 0 < L := by dsimp [L]; positivity |
| 823 | | - have hAbound : ∀ p ∈ S, |A p| ≤ L := by |
| 824 | | - intro p hp |
| 825 | | - exact (hL₀ p hp).trans (by dsimp [L]; linarith [le_abs_self L₀]) |
| 826 | | - let K : ℝ := (1 + L) * (1 + J) * (C * D) |
| 827 | | - have hK : 0 < K := by dsimp [K]; positivity |
| 828 | | - have hKC : C * D ≤ K := by |
| 829 | | - dsimp [K] |
| 830 | | - nlinarith [mul_pos hC hD, mul_pos hL hJ] |
| 831 | | - have hKJ : L * J * (C * D) ≤ K := by |
| 832 | | - dsimp [K] |
| 833 | | - nlinarith [mul_pos hC hD, mul_pos hL (mul_pos hC hD), mul_pos hJ (mul_pos hC hD)] |
| 834 | | - refine ⟨ε₀ / D, K, div_pos hε₀ hD, hK, ?_⟩ |
| 835 | | - intro d hd hsmall |
| 836 | | - let f : ℝ → Coeff := fun p => normalizedDebt (A p) (G p) (d p) |
| 837 | | - have hf : ContDiff ℝ ∞ f := normalizedDebt_contDiff hA hG hd (fun p => (hApos p).ne') |
| 838 | | - let V : Set ℝ := f ⁻¹' Metric.ball 0 ε₀ |
| 839 | | - have hV : IsOpen V := Metric.isOpen_ball.preimage hf.continuous |
| 840 | | - have hSV : S ⊆ V := by |
| 841 | | - intro p hp |
| 842 | | - change ‖f p - 0‖ < ε₀ |
| 843 | | - rw [sub_zero] |
| 844 | | - calc |
| 845 | | - ‖f p‖ ≤ D * ‖d p‖ := hnorm p hp (d p) |
| 846 | | - _ < D * (ε₀ / D) := mul_lt_mul_of_pos_left (hsmall p hp) hD |
| 847 | | - _ = ε₀ := by field_simp |
| 848 | | - let c : ℝ → Coeff := g ∘ f |
| 849 | | - have hc : ContDiffOn ℝ ∞ c V := hg.comp hf.contDiffOn (fun p hp => hp) |
| 850 | | - refine ⟨c, V, hV, hSV, hc, ?_, ?_⟩ |
| 851 | | - · intro p hp |
| 852 | | - have hs := hgeq (f p) hp |
| 853 | | - constructor |
| 854 | | - · rw [physicalMoments_eq P b (A p) (G p) (hApos p).ne'] |
| 855 | | - change physicalDebt (A p) (G p) (normalizedMap P b (g (f p))) = _ |
| 856 | | - rw [hs.1] |
| 857 | | - exact physical_normalized_debt (A p) (G p) (hApos p).ne' (d p) |
| 858 | | - · intro x hx |
| 859 | | - exact mul_pos (hApos p) (hs.2.2.2 x hx) |
| 860 | | - · intro p hp |
| 861 | | - have hcp : ‖c p‖ ≤ C * D * ‖d p‖ := by |
| 862 | | - calc |
| 863 | | - _ ≤ C * ‖f p‖ := (hgeq (f p) (hSV hp)).2.1 |
| 864 | | - _ ≤ C * (D * ‖d p‖) := mul_le_mul_of_nonneg_left (hnorm p hp (d p)) hC.le |
| 865 | | - _ = _ := by ring |
| 866 | | - refine ⟨hcp.trans (mul_le_mul_of_nonneg_right hKC (norm_nonneg _)), ?_⟩ |
| 867 | | - intro k hk x |
| 868 | | - have hu := (hjets k hk (c p) x).1 |
| 869 | | - have he := (hjets k hk (c p) x).2 |
| 870 | | - have hbound : |A p| * (J * ‖c p‖) ≤ K * ‖d p‖ := by |
| 871 | | - calc |
| 872 | | - _ ≤ L * (J * ‖c p‖) := mul_le_mul_of_nonneg_right (hAbound p hp) (by positivity) |
| 873 | | - _ ≤ L * (J * (C * D * ‖d p‖)) := |
| 874 | | - mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hcp hJ.le) hL.le |
| 875 | | - _ = (L * J * (C * D)) * ‖d p‖ := by ring |
| 876 | | - _ ≤ _ := mul_le_mul_of_nonneg_right hKJ (norm_nonneg _) |
| 877 | | - constructor |
| 878 | | - · unfold u |
| 879 | | - rw [iteratedDeriv_const_mul _ ((correction_contDiff P.leftHalf (c p).1).of_le |
| 880 | | - (by exact_mod_cast (le_top : (k : ℕ∞) ≤ ⊤))).contDiffAt, abs_mul] |
| 881 | | - exact (mul_le_mul_of_nonneg_left hu (abs_nonneg _)).trans hbound |
| 882 | | - · unfold e |
| 883 | | - rw [iteratedDeriv_const_mul _ ((correction_contDiff P.rightHalf (c p).2).of_le |
| 884 | | - (by exact_mod_cast (le_top : (k : ℕ∞) ≤ ⊤))).contDiffAt, abs_mul] |
| 885 | | - exact (mul_le_mul_of_nonneg_left he (abs_nonneg _)).trans hbound |
| 886 | | - |
| 887 | 726 | theorem smooth_solver_jet_bound {g : Coeff → Coeff} {r : ℝ} (hr : 0 < r) |
| 888 | 727 | (hg : ContDiffOn ℝ ∞ g (Metric.ball 0 r)) (N : ℕ) : |
| 889 | 728 | ∃ B : ℝ, 0 < B ∧ ∀ k ≤ N, ∀ z ∈ Metric.closedBall (0 : Coeff) (r / 2), |
| @@ -1014,69 +853,6 @@ theorem mixed_jet_bound (P : Patch) (N : ℕ) : |
| 1014 | 853 | exact ⟨(linear_parameter_jet_bound _ hv m).trans (mul_le_mul_of_nonneg_right hU (norm_nonneg _)), |
| 1015 | 854 | (linear_parameter_jet_bound _ hv m).trans (mul_le_mul_of_nonneg_right hE (norm_nonneg _))⟩ |
| 1016 | 855 | |
| 1017 | | -/-- Full mixed jets of both physical edits tend to zero with finite jets of |
| 1018 | | -the normalized debt. Bounds on the fixed smooth amplitude are kept explicit. |
| 1019 | | -This applies directly to the solver constructed in `exists_normalized_repair`. -/ |
| 1020 | | -theorem physical_mixed_jets_small (P : Patch) {g : Coeff → Coeff} {r C : ℝ} |
| 1021 | | - (hr : 0 < r) (hC : 0 < C) (hg : ContDiffOn ℝ ∞ g (Metric.ball 0 r)) |
| 1022 | | - (hvalue : ∀ z ∈ Metric.ball (0 : Coeff) r, ‖g z‖ ≤ C * ‖z‖) (N : ℕ) : |
| 1023 | | - ∃ K : ℝ, 0 < K ∧ ∀ (V : Set ℝ), IsOpen V → ∀ (f : ℝ → Coeff) (A : ℝ → ℝ), |
| 1024 | | - ContDiff ℝ ∞ f → ContDiffOn ℝ ∞ A V → ∀ B tau : ℝ, |
| 1025 | | - 0 ≤ B → 0 < tau → tau ≤ min 1 (r / 2) → |
| 1026 | | - JetBounds.FiniteJetBound N A V B → |
| 1027 | | - JetBounds.FiniteJetBound N f V (tau ^ (N + 1)) → |
| 1028 | | - ∀ eta ∈ V, ∀ k ≤ N, ∀ m ≤ N, ∀ x : ℝ, |
| 1029 | | - ‖iteratedFDeriv ℝ m (fun p => iteratedDeriv k (fun y => A p * u P (g (f p)) y) x) eta‖ ≤ K * B * tau ∧ |
| 1030 | | - ‖iteratedFDeriv ℝ m (fun p => iteratedDeriv k (fun y => A p * e P (g (f p)) y) x) eta‖ ≤ K * B * tau := by |
| 1031 | | - obtain ⟨J, hJ, hjets⟩ := mixed_jet_bound P N |
| 1032 | | - obtain ⟨D, hD, hparam⟩ := smooth_solver_parameter_jets hr hC hg hvalue N |
| 1033 | | - let L : ℝ →L[ℝ] Coeff →L[ℝ] Coeff := ContinuousLinearMap.lsmul ℝ ℝ |
| 1034 | | - let K : ℝ := J * (‖L‖ + 1) * (2 : ℝ) ^ N * D |
| 1035 | | - have hK : 0 < K := by dsimp [K]; positivity |
| 1036 | | - refine ⟨K, hK, ?_⟩ |
| 1037 | | - intro V hV f A hf hA B tau hB htau hmax hAb hfb eta heta k hk m hm x |
| 1038 | | - have hmap : MapsTo f V (Metric.ball (0 : Coeff) r) := by |
| 1039 | | - intro p hp |
| 1040 | | - have hz := hfb 0 (Nat.zero_le N) p hp |
| 1041 | | - rw [norm_iteratedFDeriv_zero] at hz |
| 1042 | | - have ht1 := hmax.trans (min_le_left _ _) |
| 1043 | | - have htr := hmax.trans (min_le_right _ _) |
| 1044 | | - have hpow : tau ^ (N + 1) ≤ tau := by |
| 1045 | | - simpa only [pow_one] using pow_le_pow_of_le_one htau.le ht1 (show 1 ≤ N + 1 by omega) |
| 1046 | | - simpa only [Metric.mem_ball, dist_zero_right] using |
| 1047 | | - (hz.trans hpow).trans_lt (lt_of_le_of_lt htr (by linarith : r / 2 < r)) |
| 1048 | | - let c : ℝ → Coeff := g ∘ f |
| 1049 | | - have hc : ContDiffOn ℝ ∞ c V := hg.comp hf.contDiffOn hmap |
| 1050 | | - have hcb : JetBounds.FiniteJetBound N c V (D * tau) := by |
| 1051 | | - intro j hj p hp |
| 1052 | | - exact hparam f hf tau p htau hmax (fun i hi => hfb i hi p hp) j hj |
| 1053 | | - let v : ℝ → Coeff := fun p => A p • c p |
| 1054 | | - have hv : ContDiffOn ℝ ∞ v V := hA.smul hc |
| 1055 | | - have hvb : JetBounds.FiniteJetBound N v V (‖L‖ * (2 : ℝ) ^ N * B * (D * tau)) := |
| 1056 | | - JetBounds.FiniteJetBound.bilinear L hV |
| 1057 | | - (hA.of_le (by exact_mod_cast (le_top : (N : ℕ∞) ≤ ⊤))) |
| 1058 | | - (hc.of_le (by exact_mod_cast (le_top : (N : ℕ∞) ≤ ⊤))) hAb hcb |
| 1059 | | - have hcost : J * (‖L‖ * (2 : ℝ) ^ N * B * (D * tau)) ≤ K * B * tau := by |
| 1060 | | - dsimp [K] |
| 1061 | | - nlinarith [show 0 ≤ J * (2 : ℝ) ^ N * B * D * tau by positivity] |
| 1062 | | - have huFun : (fun p => iteratedDeriv k (fun y => A p * u P (g (f p)) y) x) = |
| 1063 | | - fun p => iteratedDeriv k (u P (v p)) x := by |
| 1064 | | - funext p |
| 1065 | | - congr 1 |
| 1066 | | - funext y |
| 1067 | | - simp [v, c, u, correction, Pi.smul_apply, smul_eq_mul, mul_assoc] |
| 1068 | | - ring |
| 1069 | | - have heFun : (fun p => iteratedDeriv k (fun y => A p * e P (g (f p)) y) x) = |
| 1070 | | - fun p => iteratedDeriv k (e P (v p)) x := by |
| 1071 | | - funext p |
| 1072 | | - congr 1 |
| 1073 | | - funext y |
| 1074 | | - simp [v, c, e, correction, Pi.smul_apply, smul_eq_mul, Finset.mul_sum, mul_assoc] |
| 1075 | | - rw [huFun, heFun] |
| 1076 | | - have hjet := hjets k hk m v eta (hv.contDiffAt (hV.mem_nhds heta)) x |
| 1077 | | - exact ⟨hjet.1.trans ((mul_le_mul_of_nonneg_left (hvb m hm eta heta) hJ.le).trans hcost), |
| 1078 | | - hjet.2.trans ((mul_le_mul_of_nonneg_left (hvb m hm eta heta) hJ.le).trans hcost)⟩ |
| 1079 | | - |
| 1080 | 856 | theorem u_tsupport_patch (P : Patch) (c : Coeff) : tsupport (u P c) ⊆ Ioo P.left P.right := by |
| 1081 | 857 | intro x hx |
| 1082 | 858 | have hs := correction_tsupport P.leftHalf c.1 hx |
| @@ -1095,10 +871,6 @@ theorem u_zero_outside (P : Patch) (c : Coeff) {x : ℝ} (hx : x ∉ Ioo P.left |
| 1095 | 871 | theorem e_zero_outside (P : Patch) (c : Coeff) {x : ℝ} (hx : x ∉ Ioo P.left P.right) : e P c x = 0 := |
| 1096 | 872 | Classical.byContradiction (fun hn => hx (e_tsupport_patch P c (subset_tsupport _ hn))) |
| 1097 | 873 | |
| 1098 | | -theorem physical_profiles_unchanged (P : Patch) (b A G : ℝ) (c : Coeff) {x : ℝ} |
| 1099 | | - (hx : x ∉ Ioo P.left P.right) : physicalU P A G c x = G ∧ physicalE P b A c x = A * x ^ b := by |
| 1100 | | - simp [physicalU, physicalE, u_zero_outside P c hx, e_zero_outside P c hx] |
| 1101 | | - |
| 1102 | 874 | theorem physical_edits_tsupport (P : Patch) (A : ℝ) (c : Coeff) : |
| 1103 | 875 | tsupport (fun x => A * u P c x) ⊆ Ioo P.left P.right ∧ |
| 1104 | 876 | tsupport (fun x => A * e P c x) ⊆ Ioo P.left P.right := by |
| @@ -1134,14 +906,6 @@ theorem local_profile_change (P : Patch) (b A G : ℝ) (c : Coeff) (U E : ℝ |
| 1134 | 906 | ext i |
| 1135 | 907 | fin_cases i <;> simp [profileChangeDensity, u_zero_outside P c hx, e_zero_outside P c hx] |
| 1136 | 908 | |
| 1137 | | -theorem local_profile_moments (P : Patch) (b A G : ℝ) (c : Coeff) (U E : ℝ → ℝ) |
| 1138 | | - (hU : ∀ x ∈ Ioo P.left P.right, U x = G) |
| 1139 | | - (hE : ∀ x ∈ Ioo P.left P.right, E x = A * x ^ b) (i : Fin 5) : |
| 1140 | | - (∫ x in Ioi (0 : ℝ), profileChangeDensity U E (fun y => A * u P c y) (fun y => A * e P c y) x i) = |
| 1141 | | - physicalMoments P b A G c i := by |
| 1142 | | - simp_rw [local_profile_change P b A G c U E hU hE] |
| 1143 | | - exact physicalMoments_positive_axis P b A G c i |
| 1144 | | - |
| 1145 | 909 | noncomputable def normalizationCLM (A G : ℝ) : Debt →L[ℝ] Coeff := |
| 1146 | 910 | ∑ i : Fin 5, ContinuousLinearMap.smulRightL ℝ Debt Coeff |
| 1147 | 911 | (ContinuousLinearMap.proj i) (normalizedDebt A G (Pi.single i 1)) |