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.QuadraticTrace |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.TensorSpace |
| 3 | |
| 4 | /-! # Quadratic Forms -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticForms.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original Hermitian space and multiplicity line as actual invertible |
| 11 | quadratic-algebra forms. The skew coefficient is -2 delta a: conjugating |
| 12 | the source's linear-first convention changes the sign, and AdelicSplitting divides its |
| 13 | quadratic trace by two. -/ |
| 14 | |
| 15 | open scoped Classical _root_.Matrix Kronecker |
| 16 | open _root_.Matrix OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM.Field OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticConjugation.CM |
| 18 | |
| 19 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 20 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} (C : GeometricSource.CM.SymplecticCoordinates E B places) |
| 21 | |
| 22 | abbrev Coefficients := QuadraticAlgebra (QuadraticConjugation.CM.Field.RealField E) (QuadraticConjugation.CM.Field.discriminant E C) 0 |
| 23 | |
| 24 | theorem b_ne_zero : B.b ≠ 0 := by |
| 25 | intro hb |
| 26 | have h := B.negative |
| 27 | rw [hb] at h |
| 28 | simp at h |
| 29 | |
| 30 | def coefficient (j : Fin 3) : E := if j = 2 then B.b else 1 |
| 31 | |
| 32 | theorem coefficient_ne_zero (j : Fin 3) : coefficient E (B := B) j ≠ 0 := by |
| 33 | by_cases hj : j = 2 |
| 34 | · simpa only [coefficient, hj, ite_true] using b_ne_zero E (B := B) |
| 35 | · simp only [coefficient, hj, ite_false, ne_eq, one_ne_zero, not_false_eq_true] |
| 36 | |
| 37 | def skewCoefficient : E := -2 * C.delta * C.a |
| 38 | |
| 39 | theorem skewCoefficient_ne_zero : skewCoefficient E C ≠ 0 := |
| 40 | mul_ne_zero (mul_ne_zero (neg_ne_zero.mpr (by norm_num)) C.delta_ne_zero) C.a_ne_zero |
| 41 | |
| 42 | def diagonalUnit {I R : Type*} [Fintype I] [DecidableEq I] [CommRing R] (u : I → Rˣ) : |
| 43 | (Matrix I I R)ˣ where |
| 44 | val := Matrix.diagonal (fun i => (u i).val) |
| 45 | inv := Matrix.diagonal (fun i => ((u i)⁻¹).val) |
| 46 | val_inv := by |
| 47 | rw [Matrix.diagonal_mul_diagonal] |
| 48 | have hm : (fun i => (u i).val * ((u i)⁻¹).val) = fun _ => 1 := |
| 49 | funext (fun i => (u i).val_inv) |
| 50 | rw [hm, Matrix.diagonal_one] |
| 51 | inv_val := by |
| 52 | rw [Matrix.diagonal_mul_diagonal] |
| 53 | have hm : (fun i => ((u i)⁻¹).val * (u i).val) = fun _ => 1 := |
| 54 | funext (fun i => (u i).inv_val) |
| 55 | rw [hm, Matrix.diagonal_one] |
| 56 | |
| 57 | def hermitianForm : (Matrix (Fin 3) (Fin 3) (Coefficients E C))ˣ := |
| 58 | diagonalUnit (fun j => Units.map (QuadraticConjugation.CM.Field.fieldEquiv E C).symm.toMonoidHom |
| 59 | (Units.mk0 (coefficient E (B := B) j) (coefficient_ne_zero E j))) |
| 60 | |
| 61 | def skewForm : (Matrix (Fin 1) (Fin 1) (Coefficients E C))ˣ := |
| 62 | diagonalUnit (fun _ => Units.map (QuadraticConjugation.CM.Field.fieldEquiv E C).symm.toMonoidHom |
| 63 | (Units.mk0 (skewCoefficient E C) (skewCoefficient_ne_zero E C))) |
| 64 | |
| 65 | theorem hermitianForm_val : (hermitianForm E C).val = |
| 66 | Matrix.diagonal (fun j => (QuadraticConjugation.CM.Field.fieldEquiv E C).symm (coefficient E (B := B) j)) := rfl |
| 67 | |
| 68 | theorem skewForm_val : (skewForm E C).val = |
| 69 | Matrix.diagonal (fun _ => (QuadraticConjugation.CM.Field.fieldEquiv E C).symm (skewCoefficient E C)) := rfl |
| 70 | |
| 71 | theorem coefficient_real (j : Fin 3) : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (coefficient E (B := B) j) = coefficient E (B := B) j := by |
| 72 | by_cases hj : j = 2 |
| 73 | · simpa only [coefficient, hj, ite_true] using B.conjugate_b |
| 74 | · simp only [coefficient, hj, ite_false, map_one] |
| 75 | |
| 76 | theorem skewCoefficient_imaginary : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (skewCoefficient E C) = -skewCoefficient E C := by |
| 77 | simp only [skewCoefficient, map_mul, map_neg, map_ofNat, C.delta_imaginary, C.a_real] |
| 78 | ring |
| 79 | |
| 80 | theorem hermitianForm_hermitian : (hermitianForm E C).val.conjTranspose = (hermitianForm E C).val := by |
| 81 | rw [hermitianForm_val, Matrix.diagonal_conjTranspose] |
| 82 | congr 1 |
| 83 | funext j |
| 84 | change star ((QuadraticConjugation.CM.Field.fieldEquiv E C).symm (coefficient E (B := B) j)) = _ |
| 85 | rw [← QuadraticConjugation.CM.fieldEquiv_symm_conjugation, coefficient_real] |
| 86 | |
| 87 | theorem skewForm_skewHermitian : (skewForm E C).val.conjTranspose = -(skewForm E C).val := by |
| 88 | rw [skewForm_val, Matrix.diagonal_conjTranspose, Matrix.diagonal_neg] |
| 89 | congr 1 |
| 90 | funext j |
| 91 | change star ((QuadraticConjugation.CM.Field.fieldEquiv E C).symm (skewCoefficient E C)) = -((QuadraticConjugation.CM.Field.fieldEquiv E C).symm (skewCoefficient E C)) |
| 92 | rw [← QuadraticConjugation.CM.fieldEquiv_symm_conjugation, skewCoefficient_imaginary, map_neg] |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.QuadraticForms.CM |