File size: 4,472 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | import OAI.Analysis.Calculus.Current.Physical.Inverse
/-! A fixed compact parameter ball for the physical fibers. -/
noncomputable section
namespace OAI.Analysis.Calculus.Current
def fiberParameterBall (d : β) : Set (Option (Fin d) β β) :=
{u | (β i, βu iβ ^ 2) β€ (1 / 100 : β)}
theorem fiberParameterBall_coordinate {d : β} {u : Option (Fin d) β β}
(hu : u β fiberParameterBall d) (i : Option (Fin d)) : βu iβ β€ (1 / 10 : β) := by
have hi : βu iβ ^ 2 β€ β j, βu jβ ^ 2 :=
Finset.single_le_sum (fun j _ => sq_nonneg βu jβ) (Finset.mem_univ i)
change (β j, βu jβ ^ 2) β€ (1 / 100 : β) at hu
nlinarith [norm_nonneg (u i)]
theorem fiberParameterBall_denominator {d : β} {u : Option (Fin d) β β}
(hu : u β fiberParameterBall d) : fiberDenominator (fun i => u (some i)) β 0 := by
apply fiberDenominator_ne_zero
change (β j, βu jβ ^ 2) β€ (1 / 100 : β) at hu
rw [Fintype.sum_option] at hu
nlinarith [sq_nonneg βu noneβ]
theorem fiberParameterBall_numerator {d : β} (a : β) (Ο : β) (ha : 0 < a)
(ht : a β€ βΟβ) {u : Option (Fin d) β β} (hu : u β fiberParameterBall d) :
Real.sqrt 2 β’ Ο + a β’ u none β 0 := by
have hs : 1 β€ Real.sqrt 2 := by rw [Real.le_sqrt (by norm_num) (by norm_num)]; norm_num
intro hz
have he : Real.sqrt 2 β’ Ο = -(a β’ u none) := eq_neg_of_add_eq_zero_left hz
have hn := congrArg norm he
rw [norm_smul, norm_neg, norm_smul, Real.norm_eq_abs, Real.norm_eq_abs,
abs_of_nonneg (Real.sqrt_nonneg _), abs_of_pos ha] at hn
have hc := fiberParameterBall_coordinate hu none
nlinarith [mul_le_mul_of_nonneg_right hs (norm_nonneg Ο)]
theorem isCompact_fiberParameterBall (d : β) : IsCompact (fiberParameterBall d) := by
have hp : Continuous (fun u : Option (Fin d) β β => β i, βu iβ ^ 2) := by fun_prop
have hc : IsClosed (fiberParameterBall d) := isClosed_le hp continuous_const
apply (isCompact_closedBall (0 : Option (Fin d) β β) 1).of_isClosed_subset hc
intro u hu
simp only [Metric.mem_closedBall, dist_zero_right]
apply (pi_norm_le_iff_of_nonneg zero_le_one).mpr
exact fun i => (fiberParameterBall_coordinate hu i).trans (by norm_num)
theorem fiberParameterBall_nonempty (d : β) : (fiberParameterBall d).Nonempty :=
β¨0, by simp [fiberParameterBall]β©
theorem physical_inverse_defining {d : β} (a : β) (Ο : β)
(u : Option (Fin d) β β) (ha : a β 0)
(hN : Real.sqrt 2 β’ Ο + a β’ u none β 0)
(hD : fiberDenominator (fun i => u (some i)) β 0) :
physicalFiberDefining (1 / 10) a Ο (physicalFiberInverse a Ο u) =
100 * (β i, βu iβ ^ 2) - 1 := by
have he := physicalCoordinates_right_inverse a Ο u ha hN hD
have h0 := congrFun he none
have hW (i : Fin d) := congrFun he (some i)
change phi (physicalEmbedding Ο (physicalFiberInverse a Ο u)) / (a : β) = u none at h0
change β i : Fin d, ratio (physicalEmbedding Ο (physicalFiberInverse a Ο u)) i = u (some i) at hW
unfold physicalFiberDefining fiberDefining
simp only [Fintype.sum_option, fiberMap, hW]
have hc : 10 * phi (physicalEmbedding Ο (physicalFiberInverse a Ο u)) / (a : β) = 10 * u none := by
rw [mul_div_assoc, h0]
rw [hc]
simp only [norm_mul, norm_div, Complex.norm_real, Real.norm_eq_abs, mul_pow, div_pow]
norm_num
rw [β Finset.sum_div]
ring
theorem contDiffAt_physicalFiberInverse_joint {d : β} (a : β) (Ο : β)
(u : Option (Fin d) β β) (hD : fiberDenominator (fun i => u (some i)) β 0) :
ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => physicalFiberInverse a p.1 p.2) (Ο, u) := by
have hH : ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => inverseHeight a p.1 p.2) (Ο, u) := by
unfold inverseHeight fiberDenominator fiberQuadratic
simp only [Complex.real_smul]
fun_prop (disch := exact hD)
apply contDiffAt_pi.mpr
intro b
cases b with
| none =>
change ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => Real.sqrt 2 β’ inverseHeight a p.1 p.2 - p.1) (Ο, u)
exact (hH.const_smul (Real.sqrt 2)).sub contDiffAt_fst
| some i =>
change ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => p.2 (some i) * inverseHeight a p.1 p.2) (Ο, u)
exact (by fun_prop : ContDiffAt β β€ (fun p : β Γ (Option (Fin d) β β) => p.2 (some i)) (Ο, u)).mul hH
end OAI.Analysis.Calculus.Current
|