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.ComplexMultiplication.CMAbelianVariety |
| 2 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 3 | |
| 4 | /-! # Closed Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Albanese.Construction.ClosedPoints |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | /-- A rational point in the set-theoretic image of a finite-type morphism over |
| 15 | an algebraically closed field lifts to a rational point of its source. -/ |
| 16 | theorem pointMap_range_iff {K : Type u} [Field K] [IsAlgClosed K] |
| 17 | (X Y : Over (Spec (.of K))) |
| 18 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] |
| 19 | (f : X ⟶ Y) (q : Over.mk (𝟙 (Spec (.of K))) ⟶ Y) : |
| 20 | (∃ p : Over.mk (𝟙 (Spec (.of K))) ⟶ X, p ≫ f = q) ↔ |
| 21 | q.left (IsLocalRing.closedPoint K) ∈ Set.range f.left := by |
| 22 | constructor |
| 23 | · rintro ⟨p, rfl⟩ |
| 24 | exact ⟨p.left (IsLocalRing.closedPoint K), rfl⟩ |
| 25 | · intro hq |
| 26 | have : JacobsonSpace X.left := LocallyOfFiniteType.jacobsonSpace X.hom |
| 27 | have hclosed : IsClosed {q.left (IsLocalRing.closedPoint K)} := |
| 28 | ((pointEquivClosedPoint Y.hom) ⟨q.left, q.w⟩).property |
| 29 | have hfiber : (f.left ⁻¹' {q.left (IsLocalRing.closedPoint K)}).Nonempty := by |
| 30 | obtain ⟨x, hx⟩ := hq |
| 31 | exact ⟨x, hx⟩ |
| 32 | obtain ⟨x, hx, hxclosed⟩ := nonempty_inter_closedPoints hfiber |
| 33 | ((hclosed.preimage f.left.continuous).isLocallyClosed) |
| 34 | change IsClosed {x} at hxclosed |
| 35 | let p : Over.mk (𝟙 (Spec (.of K))) ⟶ X := |
| 36 | Over.homMk (pointOfClosedPoint X.hom x hxclosed) |
| 37 | (pointOfClosedPoint_comp X.hom x hxclosed) |
| 38 | refine ⟨p, ?_⟩ |
| 39 | ext1 |
| 40 | apply ext_of_apply_closedPoint_eq Y.hom |
| 41 | · simp |
| 42 | · exact q.w |
| 43 | · change f.left (pointOfClosedPoint X.hom x hxclosed (IsLocalRing.closedPoint K)) = _ |
| 44 | exact (congrArg f.left |
| 45 | (pointOfClosedPoint_apply X.hom x hxclosed (IsLocalRing.closedPoint K))).trans hx |
| 46 | |
| 47 | /-- Rational points detect morphisms from a reduced finite-type scheme to a |
| 48 | separated finite-type scheme over an algebraically closed field. -/ |
| 49 | theorem hom_ext_of_points {K : Type u} [Field K] [IsAlgClosed K] |
| 50 | (X Y : Over (Spec (.of K))) |
| 51 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] |
| 52 | [IsReduced X.left] [IsSeparated Y.hom] |
| 53 | (f g : X ⟶ Y) |
| 54 | (h : ∀ p : Over.mk (𝟙 (Spec (.of K))) ⟶ X, p ≫ f = p ≫ g) : f = g := by |
| 55 | have : LocallyOfFiniteType (f.left ≫ Y.hom) := by rw [f.w]; infer_instance |
| 56 | ext1 |
| 57 | apply ext_of_apply_eq Y.hom Set.univ isOpen_univ.isLocallyClosed dense_univ |
| 58 | · intro x _ hx |
| 59 | let p : Over.mk (𝟙 (Spec (.of K))) ⟶ X := |
| 60 | Over.homMk (pointOfClosedPoint X.hom x hx) (pointOfClosedPoint_comp X.hom x hx) |
| 61 | have hp : p.left (IsLocalRing.closedPoint K) = x := |
| 62 | pointOfClosedPoint_apply X.hom x hx (IsLocalRing.closedPoint K) |
| 63 | calc |
| 64 | f.left x = f.left (p.left (IsLocalRing.closedPoint K)) := congrArg f.left hp.symm |
| 65 | _ = g.left (p.left (IsLocalRing.closedPoint K)) := |
| 66 | congrArg (fun q : Over.mk (𝟙 (Spec (.of K))) ⟶ Y => |
| 67 | q.left (IsLocalRing.closedPoint K)) (h p) |
| 68 | _ = g.left x := congrArg g.left hp |
| 69 | · exact f.w.trans g.w.symm |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Albanese.Construction.ClosedPoints |