Download data/lean/OAI/Geometry/EinsteinFour/CP2UnitGeometry.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.86 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/CP2UnitGeometry.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/EinsteinFour/CP2UnitGeometry.lean
-
curl -L -o CP2UnitGeometry.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/CP2UnitGeometry.lean
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 | |