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.Projective.PointJets |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.Fields |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.Dimension |
| 4 | |
| 5 | /-! # Line Parameter -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.LineParameter |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Ratios of homogeneous coordinates give actual rational |
| 14 | functions, and their regular stalk representatives agree with them. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | namespace RationalFractions |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.PointJets.StalkFractions |
| 24 | |
| 25 | instance integral (n : ℕ) : IsIntegral (Foundations.Scheme.ProjectiveSpace.projectiveSpace n) := |
| 26 | Dimension.projective_integral n |
| 27 | |
| 28 | def coordinate (n : ℕ) (i : Fin (n + 1)) : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1 := |
| 29 | ⟨MvPolynomial.X i, Foundations.Scheme.ProjectiveChartToPolynomial.projectiveVariable_homogeneous n i⟩ |
| 30 | |
| 31 | theorem generic_coordinate (n : ℕ) (i : Fin (n + 1)) : |
| 32 | (coordinate n i).val ∉ (genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)).asHomogeneousIdeal := by |
| 33 | have hn : Nonempty (Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen n i) := |
| 34 | ⟨(Foundations.Scheme.ProjectiveChart.projectiveCoordinateIsoSpec n i).inv |
| 35 | (genericPoint (Spec (.of (Foundations.Scheme.ProjectiveChartToPolynomial.projectiveChartPolynomial n i))))⟩ |
| 36 | exact ((genericPoint_spec (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)).mem_open_set_iff |
| 37 | (Foundations.Scheme.ProjectiveCoordinateCover.projectiveCoordinateOpen n i).isOpen).mpr ⟨hn.some.val, trivial, hn.some.property⟩ |
| 38 | |
| 39 | def ratio (n : ℕ) (i j : Fin (n + 1)) : (Foundations.Scheme.ProjectiveSpace.projectiveSpace n).functionField := |
| 40 | PointJets.StalkFractions.fraction n (genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)) (coordinate n i) (coordinate n j) |
| 41 | (generic_coordinate n j) |
| 42 | |
| 43 | theorem fraction_field (n : ℕ) (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace n) |
| 44 | (a s : Foundations.Scheme.ProjectiveSpace.projectiveGrading n 1) (hs : s.val ∉ x.asHomogeneousIdeal) |
| 45 | (hη : s.val ∉ (genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)).asHomogeneousIdeal) : |
| 46 | algebraMap ((Foundations.Scheme.ProjectiveSpace.projectiveSpace n).presheaf.stalk x) (Foundations.Scheme.ProjectiveSpace.projectiveSpace n).functionField |
| 47 | (PointJets.StalkFractions.fraction n x a s hs) = PointJets.StalkFractions.fraction n (genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)) a s hη := by |
| 48 | rw [← PointJets.StalkFractions.germ n x a s hs, ← PointJets.StalkFractions.germ n (genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)) a s hη] |
| 49 | change ((Foundations.Scheme.ProjectiveSpace.projectiveSpace n).presheaf.germ _ x hs ≫ |
| 50 | (Foundations.Scheme.ProjectiveSpace.projectiveSpace n).presheaf.stalkSpecializes |
| 51 | ((genericPoint_spec (Foundations.Scheme.ProjectiveSpace.projectiveSpace n)).specializes trivial)) _ = _ |
| 52 | rw [TopCat.Presheaf.germ_stalkSpecializes] |
| 53 | |
| 54 | theorem ratio_mul_reverse (n : ℕ) (i j : Fin (n + 1)) : |
| 55 | ratio n i j * ratio n j i = 1 := by |
| 56 | unfold ratio |
| 57 | rw [PointJets.StalkFractions.mul, PointJets.StalkFractions.self] |
| 58 | |
| 59 | theorem ratio_reverse (n : ℕ) (i j : Fin (n + 1)) : ratio n j i = (ratio n i j)⁻¹ := |
| 60 | (inv_eq_of_mul_eq_one_right (ratio_mul_reverse n i j)).symm |
| 61 | |
| 62 | end RationalFractions |
| 63 | |
| 64 | end |
| 65 | |
| 66 | /-! The standard projective-line coordinate and its inverse are |
| 67 | regular on the two coordinate charts. Dominant pullback gives the |
| 68 | same two-chart condition on any integral parameter scheme. -/ |
| 69 | |
| 70 | set_option backward.isDefEq.respectTransparency false |
| 71 | |
| 72 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 73 | |
| 74 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.LineParameter.RationalFractions OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.PointJets.StalkFractions |
| 75 | |
| 76 | def coordinate : (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).functionField := RationalFractions.ratio 1 1 0 |
| 77 | |
| 78 | theorem charts (x : Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) : |
| 79 | (∃ u : (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x, |
| 80 | algebraMap ((Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x) (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).functionField u = coordinate) ∨ |
| 81 | (∃ u : (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x, |
| 82 | algebraMap ((Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).presheaf.stalk x) (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1).functionField u = coordinate⁻¹) := by |
| 83 | obtain ⟨i, hi⟩ := Foundations.Scheme.ProjectiveCoordinateCover.exists_mem_projectiveCoordinateOpen 1 x |
| 84 | fin_cases i |
| 85 | · exact Or.inl ⟨PointJets.StalkFractions.fraction 1 x (RationalFractions.coordinate 1 1) |
| 86 | (RationalFractions.coordinate 1 0) hi, |
| 87 | RationalFractions.fraction_field 1 x (RationalFractions.coordinate 1 1) |
| 88 | (RationalFractions.coordinate 1 0) hi (RationalFractions.generic_coordinate 1 0)⟩ |
| 89 | · refine Or.inr ⟨PointJets.StalkFractions.fraction 1 x (RationalFractions.coordinate 1 0) |
| 90 | (RationalFractions.coordinate 1 1) hi, ?_⟩ |
| 91 | exact (RationalFractions.fraction_field 1 x (RationalFractions.coordinate 1 0) |
| 92 | (RationalFractions.coordinate 1 1) hi (RationalFractions.generic_coordinate 1 1)).trans |
| 93 | (RationalFractions.ratio_reverse 1 1 0) |
| 94 | |
| 95 | variable {Z : Scheme} [IsIntegral Z] (f : Z ⟶ Foundations.Scheme.ProjectiveSpace.projectiveSpace 1) |
| 96 | (hη : f (genericPoint Z) = genericPoint (Foundations.Scheme.ProjectiveSpace.projectiveSpace 1)) |
| 97 | |
| 98 | def pullback : Z.functionField := Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη coordinate |
| 99 | |
| 100 | theorem pullback_charts (x : Z) : |
| 101 | (∃ u : Z.presheaf.stalk x, algebraMap (Z.presheaf.stalk x) Z.functionField u = pullback f hη) ∨ |
| 102 | (∃ u : Z.presheaf.stalk x, algebraMap (Z.presheaf.stalk x) Z.functionField u = (pullback f hη)⁻¹) := by |
| 103 | rcases charts (f x) with ⟨u, hu⟩ | ⟨u, hu⟩ |
| 104 | · exact Or.inl ⟨f.stalkMap x u, |
| 105 | (Divisor.DivisorRestriction.genericFieldMap_stalk f hη x u).symm.trans |
| 106 | (congrArg (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη) hu)⟩ |
| 107 | · refine Or.inr ⟨f.stalkMap x u, ?_⟩ |
| 108 | rw [← Divisor.DivisorRestriction.genericFieldMap_stalk f hη x u, hu] |
| 109 | exact map_inv₀ (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom coordinate |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.LineParameter |