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.ReferenceFamily.Affine.OverMorphismAlgebra |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Open.ImmersionLiftFibers |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Rational Point Chart -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.RationalPointChart |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A rational point over a field has an actual affine neighborhood |
| 12 | over the original base, and the point factors through that neighborhood. |
| 13 | Smoothness is inherited from the original family. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 18 | |
| 19 | variable (k : Type) [Field k] (A : Over (Spec (.of k))) (p : EtaleSplittingAt.EtaleSplitting.affineOver k k ⟶ A) |
| 20 | |
| 21 | structure AffineOverPointChart where |
| 22 | source : Over (Spec (.of k)) |
| 23 | affine : IsAffine source.left |
| 24 | inclusion : source ⟶ A |
| 25 | openImmersion : IsOpenImmersion inclusion.left |
| 26 | point : EtaleSplittingAt.EtaleSplitting.affineOver k k ⟶ source |
| 27 | commutes : point ≫ inclusion = p |
| 28 | |
| 29 | attribute [instance] AffineOverPointChart.affine AffineOverPointChart.openImmersion |
| 30 | |
| 31 | theorem exists_affineOverPointChart : Nonempty (AffineOverPointChart k A p) := by |
| 32 | let x : (EtaleSplittingAt.EtaleSplitting.affineOver k k).left := IsLocalRing.closedPoint k |
| 33 | let : Subsingleton (EtaleSplittingAt.EtaleSplitting.affineOver k k).left := inferInstanceAs (Subsingleton (PrimeSpectrum k)) |
| 34 | obtain ⟨V, hV, hx, _⟩ := exists_isAffineOpen_mem_and_subset (X := A.left) |
| 35 | (x := p.left x) (U := ⊤) (show p.left x ∈ (⊤ : A.left.Opens) from trivial) |
| 36 | let U : Over (Spec (.of k)) := Over.mk (V.ι ≫ A.hom) |
| 37 | let i : U ⟶ A := Over.homMk V.ι |
| 38 | have hopen : IsOpenImmersion i.left := inferInstanceAs (IsOpenImmersion V.ι) |
| 39 | have hr : Set.range p.left ⊆ Set.range i.left := by |
| 40 | rintro _ ⟨t, rfl⟩ |
| 41 | have ht : t = x := Subsingleton.elim _ _ |
| 42 | exact ⟨⟨p.left t, ht.symm ▸ hx⟩, rfl⟩ |
| 43 | exact ⟨⟨U, hV, i, hopen, DualOpen.Lifts.overOpenLift i p hr, DualOpen.Lifts.overOpenLift_fac i p hr⟩⟩ |
| 44 | |
| 45 | instance affineOverPointChart_smooth [Smooth A.hom] (D : AffineOverPointChart k A p) : |
| 46 | Smooth D.source.hom := by |
| 47 | have h : Smooth (D.inclusion.left ≫ A.hom) := inferInstance |
| 48 | exact D.inclusion.w ▸ h |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.RationalPointChart |