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.AbelianModuli.HilbertConstruction.Graph.EulerSquareNormalization |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShearEulerDeterminant |
| 3 | |
| 4 | /-! # Square Euler Determinant -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The determinant formula applies to actual polarization bundle classes |
| 11 | on the square. The normalized polarization isomorphism supplies the shear |
| 12 | law, and genuine external-product cohomology supplies the diagonal values. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | variable {k : Type u} [Field k] {g N : ℕ} {δ : Fin g → ℕ} |
| 20 | variable (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N (Spec (.of k))) |
| 21 | |
| 22 | theorem PolarizationData.PolarizedAbelianWithFullLevel.polarizationSquareClass_euler_determinant_of_normalized_formula |
| 23 | (hN : 3 ≤ N) (hNk : (N : k) ≠ 0) |
| 24 | (L : Line.Bundles.LineBundle A.abelian.scheme.left) |
| 25 | (e : (((A.dual.poincareAt A.polarization.isogeny.hom).tensor |
| 26 | (L.pullback (fst A.abelian.scheme A.abelian.scheme).left)).tensor |
| 27 | (L.pullback (snd A.abelian.scheme A.abelian.scheme).left)).sheaf ≅ |
| 28 | (L.pullback μ[A.abelian.scheme].left).sheaf) |
| 29 | (a b c : ℤ) : |
| 30 | (4 : ℚ) ^ g * (LineBundle.EulerShifts.lineBundleClassEuler (A.abelian.scheme ⊗ A.abelian.scheme).hom |
| 31 | (Polarization.ShearClasses.polarizationSquareClass A.dual A.polarization.isogeny.hom a b c) : ℚ) = |
| 32 | (CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.abelian.scheme.hom A.graphBundle.sheaf : ℚ) ^ 2 * |
| 33 | (4 * (a : ℚ) * (b : ℚ) - (c : ℚ) ^ 2) ^ g := by |
| 34 | let p := (A.abelian.scheme ⊗ A.abelian.scheme).hom |
| 35 | let : IsProper p := inferInstanceAs |
| 36 | (IsProper (pullback.fst A.abelian.scheme.hom A.abelian.scheme.hom ≫ A.abelian.scheme.hom)) |
| 37 | let : Flat p := inferInstanceAs |
| 38 | (Flat (pullback.fst A.abelian.scheme.hom A.abelian.scheme.hom ≫ A.abelian.scheme.hom)) |
| 39 | let : LocallyOfFinitePresentation p := inferInstanceAs |
| 40 | (LocallyOfFinitePresentation (pullback.fst A.abelian.scheme.hom A.abelian.scheme.hom ≫ A.abelian.scheme.hom)) |
| 41 | let : (A.abelian.scheme ⊗ A.abelian.scheme).left.IsSeparated := by |
| 42 | constructor |
| 43 | rw [← terminal.comp_from p] |
| 44 | infer_instance |
| 45 | let E := Ample.ExternalSquareEmbedding.ampleExternalSquarePowerEmbedding A.graphBundle A.graphBundle_isAmple_overField |
| 46 | let B : Line.Bundles.LineBundle (A.abelian.scheme ⊗ A.abelian.scheme).left := |
| 47 | A.dual.poincareAt A.polarization.isogeny.hom |
| 48 | let L₁ := A.graphBundle.pullback (fst A.abelian.scheme A.abelian.scheme).left |
| 49 | let L₂ := A.graphBundle.pullback (snd A.abelian.scheme A.abelian.scheme).left |
| 50 | let F : ℤ → ℤ → ℤ → ℚ := fun a b c => |
| 51 | (LineBundle.EulerShifts.lineBundleClassEuler p (Polarization.ShearClasses.polarizationSquareClass A.dual A.polarization.isogeny.hom a b c) : ℚ) |
| 52 | let d : ℚ := (CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.abelian.scheme.hom A.graphBundle.sheaf : ℚ) ^ 2 |
| 53 | have hA (b c : ℤ) : ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = F a b c := by |
| 54 | obtain ⟨P, hP⟩ := E.lineBundleClass_integerEulerPolynomial p L₁ |
| 55 | (Line.Bundles.LineBundle.classOf L₂ ^ b * Line.Bundles.LineBundle.classOf B ^ c) |
| 56 | refine ⟨P, fun a => ?_⟩ |
| 57 | have he : (Line.Bundles.LineBundle.classOf L₂ ^ b * Line.Bundles.LineBundle.classOf B ^ c) * Line.Bundles.LineBundle.classOf L₁ ^ a = |
| 58 | Line.Bundles.LineBundle.classOf L₁ ^ a * Line.Bundles.LineBundle.classOf L₂ ^ b * Line.Bundles.LineBundle.classOf B ^ c := |
| 59 | (mul_comm _ _).trans (mul_assoc _ _ _).symm |
| 60 | have h := (hP a).trans (congrArg (fun z : Line.Bundles.LineBundle.IsoClass (A.abelian.scheme ⊗ A.abelian.scheme).left => |
| 61 | (LineBundle.EulerShifts.lineBundleClassEuler p z : ℚ)) he) |
| 62 | dsimp only [F] |
| 63 | rw [Polarization.ShearClasses.polarizationSquareClass_as_bundles] |
| 64 | exact h |
| 65 | have hC (a b : ℤ) : ∃ P : Polynomial ℚ, ∀ c : ℤ, P.eval (c : ℚ) = F a b c := by |
| 66 | obtain ⟨P, hP⟩ := E.lineBundleClass_integerEulerPolynomial p B |
| 67 | (Line.Bundles.LineBundle.classOf L₁ ^ a * Line.Bundles.LineBundle.classOf L₂ ^ b) |
| 68 | refine ⟨P, fun c => ?_⟩ |
| 69 | dsimp only [F] |
| 70 | rw [Polarization.ShearClasses.polarizationSquareClass_as_bundles] |
| 71 | exact hP c |
| 72 | have hshear (a b c t : ℤ) : F a b c = F a (b + t * c + t ^ 2 * a) (c + 2 * t * a) := by |
| 73 | have h := LineBundle.ClassEulerIsomorphism.lineBundleClassEuler_pullback_overIso (Product.ShearIsomorphisms.productShearIso A.abelian.scheme t) |
| 74 | (Polarization.ShearClasses.polarizationSquareClass A.dual A.polarization.isogeny.hom a b c) |
| 75 | rw [Polarization.ShearClasses.polarizationSquareClass_pullback_shear A.dual A.polarization.isogeny.hom L e] at h |
| 76 | exact congrArg (fun z : ℤ => (z : ℚ)) h.symm |
| 77 | have hdiag (a b : ℤ) : F a b 0 = d * (a : ℚ) ^ g * (b : ℚ) ^ g := by |
| 78 | dsimp only [F] |
| 79 | rw [Polarization.ShearClasses.polarizationSquareClass_as_bundles, zpow_zero, mul_one] |
| 80 | have h := A.graphBundle_external_integerClasses_euler hN hNk a b |
| 81 | have hq : (LineBundle.EulerShifts.lineBundleClassEuler (A.abelian.scheme ⊗ A.abelian.scheme).hom |
| 82 | (Line.Bundles.LineBundle.classOf L₁ ^ a * Line.Bundles.LineBundle.classOf L₂ ^ b) : ℚ) = |
| 83 | (CohomologyEulerCharacteristic.coefficientEulerCharacteristic A.abelian.scheme.hom A.graphBundle.sheaf : ℚ) ^ 2 * |
| 84 | (a : ℚ) ^ g * (b : ℚ) ^ g := by |
| 85 | exact_mod_cast h |
| 86 | exact hq |
| 87 | exact ShearEulerDeterminant.shear_euler_determinant_formula F g d hA hC hshear hdiag a b c |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |