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.Closed.FiberPoints |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | |
| 4 | /-! # Equalizer -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.Equalizer |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The scheme equalizer of maps over the complex base detects |
| 11 | equality of their values at every closed point. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | variable {X Y : Over (Spec (.of ℂ))} (f g : X ⟶ Y) [IsSeparated Y.hom] |
| 19 | |
| 20 | def locus : Closeds X.left := |
| 21 | ⟨Set.range (equalizer.ι f g).left, (equalizer.ι f g).left.isClosedEmbedding.isClosed_range⟩ |
| 22 | |
| 23 | theorem eq_of_mem (x : X.left) (hx : x ∈ locus f g) : f.left x = g.left x := by |
| 24 | obtain ⟨z, rfl⟩ := hx |
| 25 | exact congrArg (fun a : equalizer f g ⟶ Y => a.left z) (equalizer.condition f g) |
| 26 | |
| 27 | theorem mem_of_closed [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] |
| 28 | (x : X.left) (hx : IsClosed ({x} : Set _)) (he : f.left x = g.left x) : x ∈ locus f g := by |
| 29 | let p := pointOfClosedPoint X.hom x hx |
| 30 | have hp : p ≫ X.hom = 𝟙 _ := pointOfClosedPoint_comp _ _ _ |
| 31 | let p' : Over.mk (𝟙 (Spec (.of ℂ))) ⟶ X := Over.homMk p hp |
| 32 | have heq : p' ≫ f = p' ≫ g := by |
| 33 | apply Over.OverMorphism.ext |
| 34 | apply ext_of_apply_closedPoint_eq Y.hom |
| 35 | (show (p ≫ f.left) ≫ Y.hom = 𝟙 _ by rw [Category.assoc, f.w]; exact hp) |
| 36 | (show (p ≫ g.left) ≫ Y.hom = 𝟙 _ by rw [Category.assoc, g.w]; exact hp) |
| 37 | simpa only [Scheme.Hom.comp_apply, p, pointOfClosedPoint_apply] using he |
| 38 | refine ⟨(equalizer.lift p' heq).left (IsLocalRing.closedPoint ℂ), ?_⟩ |
| 39 | have h := congrArg (fun a : Over.mk (𝟙 (Spec (.of ℂ))) ⟶ X => |
| 40 | a.left (IsLocalRing.closedPoint ℂ)) (equalizer.lift_ι p' heq) |
| 41 | exact h.trans (pointOfClosedPoint_apply _ _ _ _) |
| 42 | |
| 43 | theorem mem_iff_closed [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] |
| 44 | (x : X.left) (hx : IsClosed ({x} : Set _)) : |
| 45 | x ∈ locus f g ↔ f.left x = g.left x := |
| 46 | ⟨eq_of_mem f g x, mem_of_closed f g x hx⟩ |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.Equalizer |