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.IntersectionTheory.ProjectionFormula.GlobalProjective |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LinearFormAutomorphism |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.ConeSupport |
| 4 | |
| 5 | /-! # Square Iso -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SquareIso |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An independent square tuple of homogeneous linear coordinates |
| 12 | defines an actual projective automorphism. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | namespace Projection |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.ConeSupport OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LinearFormBasis.GradedMap |
| 22 | |
| 23 | theorem exists_equiv {n : ℕ} (L : Fin (n + 1) → Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) (hL : LinearIndependent ℂ L) : |
| 24 | ∃ e : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 ≃ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1, |
| 25 | Projective.ConeSupport.coordinates L = LinearFormBasis.GradedMap.gradedHom e.toLinearMap := by |
| 26 | obtain ⟨e, he⟩ := LinearFormBasis.extend L hL id Function.injective_id |
| 27 | refine ⟨e, ?_⟩ |
| 28 | have ha : MvPolynomial.aeval (fun a => (L a).val) = LinearFormBasis.GradedMap.algebraHom e.toLinearMap := by |
| 29 | apply MvPolynomial.algHom_ext |
| 30 | intro a |
| 31 | rw [MvPolynomial.aeval_X, LinearFormBasis.GradedMap.algebraHom_X] |
| 32 | exact (congrArg Subtype.val (he a)).symm |
| 33 | apply GradedRingHom.ext |
| 34 | intro p |
| 35 | exact DFunLike.congr_fun ha p |
| 36 | |
| 37 | theorem map_isIso_of_eq {n : ℕ} (f : Foundations.Scheme.ProjectiveSpace.projectiveGrading n →+*ᵍ Foundations.Scheme.ProjectiveSpace.projectiveGrading n) |
| 38 | (e : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 ≃ₗ[ℂ] Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) (he : f = LinearFormBasis.GradedMap.gradedHom e.toLinearMap) |
| 39 | (hf : HomogeneousIdeal.irrelevant (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) ≤ |
| 40 | (HomogeneousIdeal.irrelevant (Foundations.Scheme.ProjectiveSpace.projectiveGrading n)).map f) : IsIso (Proj.map f hf) := by |
| 41 | subst f |
| 42 | exact (inferInstanceAs (IsIso (LinearFormAutomorphism.iso e).hom)) |
| 43 | |
| 44 | theorem isIso {n : ℕ} (L : Fin (n + 1) → Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) (hL : LinearIndependent ℂ L) |
| 45 | (h : ∀ x : Foundations.Scheme.ProjectiveSpace.projectiveSpace n, (𝟙 (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)) x ∈ Projective.BasicOpen.RationalProjection.domain (Projective.ConeSupport.coordinates L)) : |
| 46 | IsIso (Projective.ProjectionRestriction.projection (Projective.ConeSupport.coordinates L) (𝟙 (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)) h) := by |
| 47 | obtain ⟨e, he⟩ := exists_equiv L hL |
| 48 | have hf : HomogeneousIdeal.irrelevant (Foundations.Scheme.ProjectiveSpace.projectiveGrading n) ≤ |
| 49 | (HomogeneousIdeal.irrelevant (Foundations.Scheme.ProjectiveSpace.projectiveGrading n)).map (Projective.ConeSupport.coordinates L) := by |
| 50 | rw [he] |
| 51 | exact LinearFormAutomorphism.irrelevant_le e |
| 52 | rw [GlobalProjective.Projection.restriction (Projective.ConeSupport.coordinates L) hf, Category.id_comp] |
| 53 | exact map_isIso_of_eq (Projective.ConeSupport.coordinates L) e he hf |
| 54 | |
| 55 | end Projection |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SquareIso |