cfahlgren1/math / lean /OAI /Analysis /Mahler /ConformalInjectivity.lean
cfahlgren1's picture
download
raw
5.26 kB
import OAI.Analysis.Mahler.AngularGeometry
namespace OAI
noncomputable section
open Complex Set Metric
open scoped Topology
namespace MahlerConformal
lemma norm_add_sub_sq (w : ℂ) : ‖1+w‖^2 - ‖1-w‖^2 = 4*w.re := by
simp only [← Complex.normSq_eq_norm_sq, Complex.normSq_apply,
Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im,
Complex.one_re, Complex.one_im]
ring
lemma re_mul_log_cayley_pos {w : ℂ} (hw : ‖w‖ < 1) (hx : w.re ≠ 0) :
0 < w.re * (Complex.log (cayley w)).re := by
have hnum : 0 < ‖1+w‖ := norm_pos_iff.mpr (one_add_ne hw)
have hden : 0 < ‖1-w‖ := norm_pos_iff.mpr (one_sub_ne hw)
have hn := norm_add_sub_sq w
rw [Complex.log_re, cayley, norm_div]
rcases lt_or_gt_of_ne hx with hx | hx
· have hc : ‖1+w‖/‖1-w‖ < 1 := (div_lt_one hden).mpr (by nlinarith)
exact mul_pos_of_neg_of_neg hx (Real.log_neg (div_pos hnum hden) hc)
· have hc : 1 < ‖1+w‖/‖1-w‖ := (one_lt_div hden).mpr (by nlinarith)
exact mul_pos hx (Real.log_pos hc)
lemma re_mul_log_cayley_nonneg {w : ℂ} (hw : ‖w‖ < 1) :
0 ≤ w.re * (Complex.log (cayley w)).re := by
by_cases hx : w.re = 0
· simp [hx]
· exact (re_mul_log_cayley_pos hw hx).le
lemma im_mul_arg_cayley_pos {w : ℂ} (hw : ‖w‖ < 1) (hy : w.im ≠ 0) :
0 < w.im * (cayley w).arg := by
have hd : 0 < 1-‖w‖^2 := by nlinarith [norm_nonneg w]
rw [arg_eq_arctan_of_re_pos (cayley_re_pos hw), cayley_im_div_re hw]
rcases lt_or_gt_of_ne hy with hy | hy
· exact mul_pos_of_neg_of_neg hy
(Real.arctan_lt_zero.mpr (div_neg_of_neg_of_pos (by linarith) hd))
· exact mul_pos hy (Real.arctan_pos.mpr (div_pos (by linarith) hd))
lemma im_mul_arg_cayley_nonneg {w : ℂ} (hw : ‖w‖ < 1) :
0 ≤ w.im * (cayley w).arg := by
by_cases hy : w.im = 0
· simp [hy]
· exact (im_mul_arg_cayley_pos hw hy).le
/-- A consequence of the derivative formula on the full disk, used for injectivity.
This is not a formula for M'(r), nor does it assume univalence. -/
theorem deriv_F_re_pos {w : ℂ} (hw : ‖w‖ < 1) : 0 < (deriv F w).re := by
have hc : (4/(Real.pi : ℂ)^2) = ((4/Real.pi^2 : ℝ) : ℂ) := by push_cast; rfl
by_cases hw0 : w = 0
· subst w
rw [hasDerivAt_F_zero.deriv]
have he : (8/(Real.pi : ℂ)^2) = ((8/Real.pi^2 : ℝ) : ℂ) := by push_cast; rfl
rw [he, Complex.ofReal_re]
positivity
have he : deriv F w = (4/(Real.pi : ℂ)^2)*(Complex.log (cayley w)/w) := by
rw [(hasDerivAt_F_log hw hw0).deriv]
dsimp [cayley]
field_simp
rw [he, hc, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero]
apply mul_pos (by positivity)
rw [Complex.div_re, ← add_div]
apply div_pos _ (Complex.normSq_pos.mpr hw0)
have hx := re_mul_log_cayley_nonneg hw
have hy := im_mul_arg_cayley_nonneg hw
rw [Complex.log_im]
by_cases hx0 : w.re = 0
· have hy0 : w.im ≠ 0 := by
intro hy0
apply hw0
apply Complex.ext <;> simp [hx0, hy0]
have hp := im_mul_arg_cayley_pos hw hy0
nlinarith
· have hp := re_mul_log_cayley_pos hw hx0
nlinarith
lemma segment_mem_disk {a b : ℂ} (ha : ‖a‖ < 1) (hb : ‖b‖ < 1)
{t : ℝ} (ht : t ∈ Icc 0 1) : ‖a+(t : ℂ)*(b-a)‖ < 1 := by
have hc := (convex_ball (0 : ℂ) (1 : ℝ)) (by simpa using ha) (by simpa using hb)
(sub_nonneg.mpr ht.2) ht.1 (sub_add_cancel 1 t)
have he : (1-t) • a + t • b = a+(t : ℂ)*(b-a) := by
simp only [Complex.real_smul, Complex.ofReal_sub, Complex.ofReal_one]
ring
rw [he] at hc
simpa using hc
/-- Injectivity on the exact open unit disk, with no assumed inverse or central
univalence theorem. Positive real derivative makes the segment projection strict. -/
theorem F_injOn_disk : Set.InjOn F (ball (0 : ℂ) 1) := by
intro a ha b hb hab
by_contra hne
have ha' : ‖a‖ < 1 := by simpa using ha
have hb' : ‖b‖ < 1 := by simpa using hb
have hd : b-a ≠ 0 := sub_ne_zero.mpr (Ne.symm hne)
let g : ℝ → ℝ := fun t => (F (a+(t : ℂ)*(b-a))/(b-a)).re
have hg : ∀ t ∈ Icc (0 : ℝ) 1,
HasDerivAt g (deriv F (a+(t : ℂ)*(b-a))).re t := by
intro t ht
have hw := segment_mem_disk ha' hb' ht
have hf := (hasDerivAt_F_series hw).differentiableAt.hasDerivAt
have hline : HasDerivAt (fun z : ℂ => a+z*(b-a)) (b-a) (t : ℂ) := by
simpa using ((hasDerivAt_id (t : ℂ)).mul_const (b-a)).const_add a
have hs := ((hf.comp (t : ℂ) hline).div_const (b-a)).real_of_complex
have he : (deriv F (a+(t : ℂ)*(b-a))*(b-a))/(b-a) =
deriv F (a+(t : ℂ)*(b-a)) := mul_div_cancel_right₀ _ hd
change HasDerivAt g _ t at hs
rwa [he] at hs
have hm : StrictMonoOn g (Icc (0 : ℝ) 1) := by
apply strictMonoOn_of_deriv_pos (convex_Icc _ _)
(fun t ht => (hg t ht).continuousAt.continuousWithinAt)
intro t ht
have ht' : t ∈ Icc (0 : ℝ) 1 := interior_subset ht
rw [(hg t ht').deriv]
exact deriv_F_re_pos (segment_mem_disk ha' hb' ht')
have hlt := hm (left_mem_Icc.mpr zero_le_one) (right_mem_Icc.mpr zero_le_one) zero_lt_one
dsimp [g] at hlt
simp only [zero_mul, add_zero, one_mul, add_sub_cancel] at hlt
rw [hab] at hlt
exact lt_irrefl _ hlt
end MahlerConformal
end
end OAI

Xet Storage Details

Size:
5.26 kB
·
Xet hash:
9f7e813d57a5ef0483cb808f3d4e600101473595a8dbe3e70ad816cc26837914

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.