Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation |
| 2 | import OAI.RepresentationTheory.Weil.UnitarySplitting.QuadraticNorm |
| 3 | |
| 4 | /-! # Quadratic Trace -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticTrace.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The quadratic-algebra trace is the original CM field trace. The |
| 11 | linear-first and conjugate-first Hermitian conventions are compared |
| 12 | explicitly, including the sign of the imaginary coefficient. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM |
| 17 | |
| 18 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 19 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (C : GeometricSource.CM.SymplecticCoordinates E B places) |
| 20 | |
| 21 | theorem quadratic_trace (x : QuadraticAlgebra (QuadraticConjugation.CM.Field.RealField E) (QuadraticConjugation.CM.Field.discriminant E C) 0) : |
| 22 | Algebra.trace (QuadraticConjugation.CM.Field.RealField E) E (QuadraticConjugation.CM.Field.fieldEquiv E C x) = QuadraticAlgebra.trace x := by |
| 23 | have hn : ∃ z : E, NumberField.IsCMField.complexConj E z ≠ z := by |
| 24 | refine ⟨C.delta, ?_⟩ |
| 25 | intro h |
| 26 | exact QuadraticConjugation.CM.Field.delta_not_real E C ((NumberField.IsCMField.complexConj_eq_self_iff E _).mp h) |
| 27 | have h := RepresentationTheory.Weil.UnitarySplitting.QuadraticNorm.Construction.quadratic_trace_formula |
| 28 | (Algebra.IsQuadraticExtension.finrank_eq_two (QuadraticConjugation.CM.Field.RealField E) E) |
| 29 | (NumberField.IsCMField.complexConj E) hn (QuadraticConjugation.CM.Field.fieldEquiv E C x) |
| 30 | apply (algebraMap (QuadraticConjugation.CM.Field.RealField E) E).injective |
| 31 | rw [h, ← (QuadraticConjugation.CM.Field.fieldEquiv E C).commutes (QuadraticAlgebra.trace x), |
| 32 | QuadraticAlgebra.algebraMap_trace_eq_add_star, map_add, QuadraticConjugation.CM.fieldEquiv_star] |
| 33 | rfl |
| 34 | |
| 35 | theorem rational_trace (x : QuadraticAlgebra (QuadraticConjugation.CM.Field.RealField E) (QuadraticConjugation.CM.Field.discriminant E C) 0) : |
| 36 | Algebra.trace ℚ (QuadraticConjugation.CM.Field.RealField E) (QuadraticAlgebra.trace x) = |
| 37 | Algebra.trace ℚ E (QuadraticConjugation.CM.Field.fieldEquiv E C x) := by |
| 38 | rw [← quadratic_trace E C x, Algebra.trace_trace] |
| 39 | |
| 40 | theorem conjugate_hermitian (x y : GeometricSource.CM.Vec E) : |
| 41 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (GeometricSource.CM.hermitian E B.b x y) = GeometricSource.CM.hermitian E B.b y x := by |
| 42 | simp only [GeometricSource.CM.hermitian, map_sum, map_mul] |
| 43 | apply Finset.sum_congr rfl |
| 44 | intro j _ |
| 45 | by_cases hj : j = 2 <;> |
| 46 | simp only [hj, ite_true, ite_false, B.conjugate_b, map_one, ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply] |
| 47 | <;> ring |
| 48 | |
| 49 | theorem trace_conjugation (x : E) : |
| 50 | Algebra.trace ℚ E (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) = Algebra.trace ℚ E x := |
| 51 | Algebra.trace_eq_of_algEquiv (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E) x |
| 52 | |
| 53 | theorem source_trace_as_conjugate_first (x y : GeometricSource.CM.Vec E) : |
| 54 | Algebra.trace ℚ E (C.delta * C.a * GeometricSource.CM.hermitian E B.b x y) = |
| 55 | Algebra.trace ℚ E (-C.delta * C.a * GeometricSource.CM.hermitian E B.b y x) := by |
| 56 | rw [← trace_conjugation E (C.delta * C.a * GeometricSource.CM.hermitian E B.b x y)] |
| 57 | congr 1 |
| 58 | rw [map_mul, map_mul, C.delta_imaginary, C.a_real, conjugate_hermitian] |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticTrace.CM |