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 Mathlib.AlgebraicGeometry.Morphisms.QuasiFinite |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 3 | import Mathlib.AlgebraicGeometry.AlgClosed.Basic |
| 4 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 5 | |
| 6 | /-! # Fiber Points -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.FiberPoints |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Closed points in finite fibers and uniqueness of rational points |
| 13 | in a scheme fiber product from their two projections. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | theorem closed {X Y : Scheme} (f : X ⟶ Y) [LocallyQuasiFinite f] |
| 21 | [LocallyOfFiniteType f] (x : X) (hx : IsClosed ({f x} : Set _)) : IsClosed ({x} : Set _) := by |
| 22 | let : IsClosedImmersion (Y.fromSpecResidueField (f x)) := |
| 23 | isClosed_singleton_iff_isClosedImmersion.mp hx |
| 24 | have hi : IsClosedImmersion (f.fiberι (f x)) := |
| 25 | MorphismProperty.pullback_fst (P := @IsClosedImmersion) _ _ inferInstance |
| 26 | let := hi |
| 27 | have hs := (f.quasiFiniteAt x).isClopen_singleton_asFiber.isClosed |
| 28 | simpa only [Set.image_singleton, Scheme.Hom.fiberι_asFiber] using |
| 29 | (f.fiberι (f x)).isClosedEmbedding.isClosedMap _ hs |
| 30 | |
| 31 | theorem pullback_ext {X Y S : Scheme} (f : X ⟶ S) (g : Y ⟶ S) |
| 32 | (t : S ⟶ Spec (.of ℂ)) |
| 33 | [LocallyOfFiniteType (f ≫ t)] [LocallyOfFiniteType (g ≫ t)] |
| 34 | [LocallyOfFiniteType (pullback.fst f g ≫ f ≫ t)] |
| 35 | (z w : ↥(pullback f g)) (hz : IsClosed ({z} : Set _)) (hw : IsClosed ({w} : Set _)) |
| 36 | (hfst : pullback.fst f g z = pullback.fst f g w) |
| 37 | (hsnd : pullback.snd f g z = pullback.snd f g w) : z = w := by |
| 38 | let F := pullback.fst f g ≫ f ≫ t |
| 39 | let p := pointOfClosedPoint F z hz |
| 40 | let q := pointOfClosedPoint F w hw |
| 41 | have hp : p ≫ F = 𝟙 _ := pointOfClosedPoint_comp _ _ _ |
| 42 | have hq : q ≫ F = 𝟙 _ := pointOfClosedPoint_comp _ _ _ |
| 43 | have hpx : (p ≫ pullback.fst f g) ≫ (f ≫ t) = 𝟙 _ := by simpa [F] using hp |
| 44 | have hqx : (q ≫ pullback.fst f g) ≫ (f ≫ t) = 𝟙 _ := by simpa [F] using hq |
| 45 | have hpy : (p ≫ pullback.snd f g) ≫ (g ≫ t) = 𝟙 _ := by |
| 46 | rw [Category.assoc, ← Category.assoc (pullback.snd f g), ← pullback.condition, Category.assoc] |
| 47 | exact hp |
| 48 | have hqy : (q ≫ pullback.snd f g) ≫ (g ≫ t) = 𝟙 _ := by |
| 49 | rw [Category.assoc, ← Category.assoc (pullback.snd f g), ← pullback.condition, Category.assoc] |
| 50 | exact hq |
| 51 | have he : p = q := by |
| 52 | apply pullback.hom_ext |
| 53 | · apply ext_of_apply_closedPoint_eq (f ≫ t) hpx hqx |
| 54 | simpa only [Scheme.Hom.comp_apply, p, q, pointOfClosedPoint_apply] using hfst |
| 55 | · apply ext_of_apply_closedPoint_eq (g ≫ t) hpy hqy |
| 56 | simpa only [Scheme.Hom.comp_apply, p, q, pointOfClosedPoint_apply] using hsnd |
| 57 | have he' := congrArg (fun a => a (IsLocalRing.closedPoint ℂ)) he |
| 58 | simpa only [p, q, pointOfClosedPoint_apply] using he' |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.FiberPoints |