Download data/lean/OAI/Geometry/EinsteinFour/ComplexProjectiveTriangle.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/ComplexProjectiveTriangle.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/EinsteinFour/ComplexProjectiveTriangle.lean
-
curl -L -o ComplexProjectiveTriangle.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/EinsteinFour/ComplexProjectiveTriangle.lean
2.08 kB
| import OAI.Geometry.EinsteinFour.ComplexPairAlignment | |
| import Mathlib.Geometry.Euclidean.Angle.Unoriented.TriangleInequality | |
| namespace OAI | |
| /-! The triangle inequality for the actual Fubini--Study distance on CP2. -/ | |
| namespace PositiveEinsteinFour.Geometry | |
| open EinsteinFour | |
| noncomputable section | |
| theorem complex_unit_angle (u v : CP2Vector) (hu : βuβ = 1) (hv : βvβ = 1) : | |
| InnerProductGeometry.angle u v = Real.arccos (inner β u v) := by | |
| simp only [InnerProductGeometry.angle,hu,hv,one_mul,div_one] | |
| theorem fubiniStudyDistance_triangle (P Q R : ComplexProjective2) : | |
| fubiniStudyDistance P R β€ fubiniStudyDistance P Q + fubiniStudyDistance Q R := by | |
| obtain β¨p,hp,hpn,hpP,hqpβ© := cp2_aligned_unit_representative Q P | |
| obtain β¨r,hr,hrn,hrR,hqrβ© := cp2_aligned_unit_representative Q R | |
| let q := cp2UnitRep Q | |
| have hpqR : inner β q p = cp2Overlap Q P := by | |
| simpa only [Complex.ofReal_re,β real_inner_eq_re_inner β] using! congrArg Complex.re hqp | |
| have hqrR : inner β q r = cp2Overlap Q R := by | |
| simpa only [Complex.ofReal_re,β real_inner_eq_re_inner β] using! congrArg Complex.re hqr | |
| have hreal : inner β p r β€ βinner β p rβ := by | |
| simpa only [β real_inner_eq_re_inner β] using! Complex.re_le_norm (inner β p r) | |
| calc | |
| fubiniStudyDistance P R = Real.arccos βinner β p rβ := by | |
| rw [fubiniStudyDistance_eq_arccos,cp2Overlap_of_unit_representatives P R p r hp hr hpn hrn hpP hrR] | |
| _ β€ InnerProductGeometry.angle p r := by | |
| rw [complex_unit_angle p r hpn hrn] | |
| exact Real.antitone_arccos hreal | |
| _ β€ InnerProductGeometry.angle p q + InnerProductGeometry.angle q r := | |
| InnerProductGeometry.angle_le_angle_add_angle p q r | |
| _ = fubiniStudyDistance P Q + fubiniStudyDistance Q R := by | |
| rw [complex_unit_angle p q hpn (cp2UnitRep_norm Q), | |
| complex_unit_angle q r (cp2UnitRep_norm Q) hrn, | |
| real_inner_comm q p,hpqR,hqrR,cp2Overlap_comm Q P, | |
| fubiniStudyDistance_eq_arccos,fubiniStudyDistance_eq_arccos] | |
| end | |
| end PositiveEinsteinFour.Geometry | |
| end OAI | |