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.GeometricSource |
| 2 | |
| 3 | /-! # Quadratic Conjugation -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field |
| 10 | |
| 11 | /-! Present the original CM coefficient field as a quadratic algebra |
| 12 | over its maximal real subfield, using the source's actual imaginary |
| 13 | symplectic coefficient. This supplies AdelicTheta's concrete field coordinates. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.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 | abbrev RealField := NumberField.maximalRealSubfield E |
| 22 | |
| 23 | def discriminant : RealField E := |
| 24 | ⟨C.delta ^ 2, (NumberField.IsCMField.complexConj_eq_self_iff _ _).mp (by |
| 25 | change ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (C.delta ^ 2) = C.delta ^ 2 |
| 26 | rw [map_pow, C.delta_imaginary, neg_sq])⟩ |
| 27 | |
| 28 | theorem delta_not_real : C.delta ∉ RealField E := by |
| 29 | intro h |
| 30 | have he := (NumberField.IsCMField.complexConj_eq_self_iff E C.delta).mpr h |
| 31 | change ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E C.delta = C.delta at he |
| 32 | rw [C.delta_imaginary] at he |
| 33 | exact C.delta_ne_zero (CharZero.neg_eq_self_iff.mp he) |
| 34 | |
| 35 | theorem discriminant_ne_zero : discriminant E C ≠ 0 := by |
| 36 | intro h |
| 37 | have he := congrArg (fun x : RealField E => (x : E)) h |
| 38 | exact (pow_ne_zero 2 C.delta_ne_zero) he |
| 39 | |
| 40 | theorem discriminant_not_square : ¬ IsSquare (discriminant E C) := by |
| 41 | rintro ⟨r, hr⟩ |
| 42 | have he : C.delta ^ 2 = (r : E) ^ 2 := by |
| 43 | simpa only [discriminant, pow_two, Subfield.coe_mul] using congrArg (fun x : RealField E => (x : E)) hr |
| 44 | rcases sq_eq_sq_iff_eq_or_eq_neg.mp he with h | h |
| 45 | · exact delta_not_real E C (h ▸ r.property) |
| 46 | · exact delta_not_real E C (h ▸ (RealField E).neg_mem r.property) |
| 47 | |
| 48 | def realPart (x : E) : RealField E := |
| 49 | ⟨(x + ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / 2, (NumberField.IsCMField.complexConj_eq_self_iff E _).mp (by |
| 50 | change ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E ((x + ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / 2) = _ |
| 51 | rw [map_div₀, map_add, map_ofNat, ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply] |
| 52 | rw [add_comm])⟩ |
| 53 | |
| 54 | def imaginaryPart (x : E) : RealField E := |
| 55 | ⟨(x - ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / (2 * C.delta), |
| 56 | (NumberField.IsCMField.complexConj_eq_self_iff E _).mp (by |
| 57 | change ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E ((x - ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / (2 * C.delta)) = _ |
| 58 | rw [map_div₀, map_sub, map_mul, map_ofNat, |
| 59 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply, C.delta_imaginary] |
| 60 | field_simp |
| 61 | ring)⟩ |
| 62 | |
| 63 | def toOriginal : QuadraticAlgebra (RealField E) (discriminant E C) 0 →ₐ[RealField E] E := |
| 64 | QuadraticAlgebra.lift ⟨C.delta, by |
| 65 | change C.delta * C.delta = C.delta ^ 2 * 1 + (0 : E) * C.delta |
| 66 | ring⟩ |
| 67 | |
| 68 | theorem toOriginal_apply (x : QuadraticAlgebra (RealField E) (discriminant E C) 0) : |
| 69 | toOriginal E C x = (x.re : E) + (x.im : E) * C.delta := by |
| 70 | change (x.re : E) * 1 + (x.im : E) * C.delta = _ |
| 71 | rw [mul_one] |
| 72 | |
| 73 | theorem toOriginal_surjective : Function.Surjective (toOriginal E C) := by |
| 74 | intro x |
| 75 | refine ⟨⟨realPart E x, imaginaryPart E C x⟩, ?_⟩ |
| 76 | rw [toOriginal_apply] |
| 77 | change (x + ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / 2 + (x - ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) / (2 * C.delta) * C.delta = x |
| 78 | field_simp [C.delta_ne_zero] |
| 79 | ring |
| 80 | |
| 81 | def fieldEquiv : QuadraticAlgebra (RealField E) (discriminant E C) 0 ≃ₐ[RealField E] E := |
| 82 | AlgEquiv.ofBijective (toOriginal E C) ⟨ |
| 83 | (LinearMap.injective_iff_surjective_of_finrank_eq_finrank |
| 84 | (f := (toOriginal E C).toLinearMap) |
| 85 | (show Module.finrank (RealField E) (QuadraticAlgebra (RealField E) (discriminant E C) 0) = |
| 86 | Module.finrank (RealField E) E by |
| 87 | rw [QuadraticAlgebra.finrank_eq_two, Algebra.IsQuadraticExtension.finrank_eq_two])).mpr |
| 88 | (toOriginal_surjective E C), |
| 89 | toOriginal_surjective E C⟩ |
| 90 | |
| 91 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field |
| 92 | |
| 93 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM |
| 94 | |
| 95 | /-! The quadratic presentation preserves the original CM involution. |
| 96 | Consequently the original real Hermitian coefficients and imaginary |
| 97 | symplectic coefficient retain their actual signs under this presentation. -/ |
| 98 | |
| 99 | open scoped Classical |
| 100 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 101 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field |
| 102 | |
| 103 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 104 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (C : GeometricSource.CM.SymplecticCoordinates E B places) |
| 105 | |
| 106 | theorem real_fixed (r : Field.RealField E) : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (r : E) = (r : E) := |
| 107 | NumberField.IsCMField.complexConj_apply_eq_self E r |
| 108 | |
| 109 | theorem fieldEquiv_star (x : QuadraticAlgebra (Field.RealField E) (Field.discriminant E C) 0) : |
| 110 | Field.fieldEquiv E C (star x) = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (Field.fieldEquiv E C x) := by |
| 111 | change Field.toOriginal E C (star x) = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (Field.toOriginal E C x) |
| 112 | rw [Field.toOriginal_apply, Field.toOriginal_apply, map_add, map_mul, real_fixed, real_fixed, |
| 113 | C.delta_imaginary] |
| 114 | simp only [QuadraticAlgebra.re_star, QuadraticAlgebra.im_star, zero_mul, add_zero, |
| 115 | Subfield.coe_neg, neg_mul, mul_neg] |
| 116 | |
| 117 | theorem fieldEquiv_symm_conjugation (x : E) : |
| 118 | (Field.fieldEquiv E C).symm (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E x) = star ((Field.fieldEquiv E C).symm x) := by |
| 119 | apply (Field.fieldEquiv E C).injective |
| 120 | rw [AlgEquiv.apply_symm_apply, fieldEquiv_star, AlgEquiv.apply_symm_apply] |
| 121 | |
| 122 | theorem hermitian_coefficient_real : star ((Field.fieldEquiv E C).symm B.b) = (Field.fieldEquiv E C).symm B.b := by |
| 123 | rw [← fieldEquiv_symm_conjugation, B.conjugate_b] |
| 124 | |
| 125 | theorem multiplicity_coefficient_real : star ((Field.fieldEquiv E C).symm C.a) = (Field.fieldEquiv E C).symm C.a := by |
| 126 | rw [← fieldEquiv_symm_conjugation, C.a_real] |
| 127 | |
| 128 | theorem symplectic_coefficient_imaginary : |
| 129 | star ((Field.fieldEquiv E C).symm C.delta) = -((Field.fieldEquiv E C).symm C.delta) := by |
| 130 | rw [← fieldEquiv_symm_conjugation, C.delta_imaginary, map_neg] |
| 131 | |
| 132 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI |