math / data /lean /OAI /Geometry /EinsteinFour /CP2UnitGeometry.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.86 kB
import OAI.Geometry.EinsteinFour.CP2PairUniqueness
namespace OAI
/-! The unit representatives needed for the projective fixed-point argument. -/
namespace PositiveEinsteinFour
open EinsteinFour
noncomputable section
theorem cp2Overlap_of_unit_representatives (p q : ComplexProjective2)
(x y : CP2Vector) (hx : x β‰  0) (hy : y β‰  0)
(hnx : β€–xβ€– = 1) (hny : β€–yβ€– = 1)
(hpx : Projectivization.mk β„‚ x hx = p) (hqy : Projectivization.mk β„‚ y hy = q) :
cp2Overlap p q = β€–inner β„‚ x yβ€– := by
rw [← hpx, ← hqy, cp2Overlap_mk, hnx, hny, one_mul, div_one]
theorem cp2Overlap_eq_one_iff (p q : ComplexProjective2) :
cp2Overlap p q = 1 ↔ p = q := by
constructor
Β· intro h
have hCS : β€–inner β„‚ (cp2UnitRep p) (cp2UnitRep q)β€– =
β€–cp2UnitRep pβ€– * β€–cp2UnitRep qβ€– := by
simpa only [cp2Overlap, cp2UnitRep_norm, one_mul] using h
obtain ⟨a, _, ha⟩ :=
(norm_inner_eq_norm_iff (cp2UnitRep_ne_zero p) (cp2UnitRep_ne_zero q)).mp hCS
rw [← cp2UnitRep_mk p, ← cp2UnitRep_mk q]
apply (Projectivization.mk_eq_mk_iff' β„‚ _ _ _ _).mpr
exact ⟨a⁻¹, by rw [ha, smul_smul]; simp_all⟩
Β· rintro rfl
exact cp2Overlap_self p
theorem cp2_unit_aligned (p q : ComplexProjective2) (h : 0 < cp2Overlap p q) :
βˆƒ v : CP2Vector, βˆƒ hv : v β‰  0,
β€–vβ€– = 1 ∧ Projectivization.mk β„‚ v hv = q ∧
inner β„‚ (cp2UnitRep p) v = (cp2Overlap p q : β„‚) := by
let z := inner β„‚ (cp2UnitRep p) (cp2UnitRep q)
have hz : z β‰  0 := by
intro hz
change 0 < β€–zβ€– at h
rw [hz, norm_zero] at h
exact (lt_irrefl 0) h
let a : β„‚ := (β€–zβ€– : β„‚) / z
have ha : a β‰  0 := div_ne_zero (by exact_mod_cast (norm_ne_zero_iff.mpr hz)) hz
have han : β€–aβ€– = 1 := by
simp [a, Complex.norm_real, norm_ne_zero_iff.mpr hz]
let v : CP2Vector := a β€’ cp2UnitRep q
have hv : v β‰  0 := smul_ne_zero ha (cp2UnitRep_ne_zero q)
refine ⟨v, hv, ?_, ?_, ?_⟩
Β· simp only [v, norm_smul, han, cp2UnitRep_norm, mul_one]
Β· rw [← cp2UnitRep_mk q]
exact (Projectivization.mk_eq_mk_iff' β„‚ _ _ _ _).mpr ⟨a, rfl⟩
Β· change inner β„‚ (cp2UnitRep p) (a β€’ cp2UnitRep q) = (β€–zβ€– : β„‚)
rw [inner_smul_right]
change ((β€–zβ€– : β„‚) / z) * z = _
exact div_mul_cancelβ‚€ _ hz
theorem cp2_aligned_center (p q : CP2Vector) (c : ℝ)
(hp : β€–pβ€– = 1) (hq : β€–qβ€– = 1) (hc : inner β„‚ p q = (c : β„‚))
(hc0 : 0 < c) :
βˆƒ u : CP2Vector, β€–uβ€– = 1 ∧
β€–inner β„‚ p uβ€– ^ 2 + β€–inner β„‚ q uβ€– ^ 2 = 1 + c := by
have hqp : inner β„‚ q p = (c : β„‚) := by rw [← inner_conj_symm, hc]; simp
have hs : β€–p + qβ€– ^ 2 = 2 + 2 * c := by
rw [norm_add_sq (π•œ := β„‚), hp, hq, hc]
simp
ring
have hn : β€–p + qβ€– β‰  0 := by intro h; rw [h] at hs; nlinarith
let u : CP2Vector := ((β€–p + q‖⁻¹ : ℝ) : β„‚) β€’ (p + q)
have hpi : inner β„‚ p (p + q) = ((1 + c : ℝ) : β„‚) := by
simp [inner_self_eq_norm_sq_to_K, hp, hc]
have hqi : inner β„‚ q (p + q) = ((1 + c : ℝ) : β„‚) := by
simp [inner_self_eq_norm_sq_to_K, hq, hqp, add_comm]
have hpn : β€–inner β„‚ p uβ€– = β€–p + q‖⁻¹ * (1 + c) := by
simp only [u, inner_smul_right, hpi, norm_mul, Complex.norm_real]
rw [Real.norm_of_nonneg (inv_nonneg.mpr (norm_nonneg _)),
Real.norm_of_nonneg (by linarith)]
have hqn : β€–inner β„‚ q uβ€– = β€–p + q‖⁻¹ * (1 + c) := by
simp only [u, inner_smul_right, hqi, norm_mul, Complex.norm_real]
rw [Real.norm_of_nonneg (inv_nonneg.mpr (norm_nonneg _)),
Real.norm_of_nonneg (by linarith)]
refine ⟨u, ?_, ?_⟩
Β· simp only [u, norm_smul, Complex.norm_real,
Real.norm_of_nonneg (inv_nonneg.mpr (norm_nonneg _)), inv_mul_cancelβ‚€ hn]
Β· rw [hpn, hqn]
field_simp
nlinarith
end
end PositiveEinsteinFour
end OAI