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.Albanese.Construction.ClosedPoints |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 4 | |
| 5 | /-! # Reduced Factor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Albanese.Construction.ReducedFactor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | /-- For a reduced source, set-theoretic containment in a closed subscheme |
| 16 | implies the ideal-sheaf containment needed for an algebraic factorization. -/ |
| 17 | theorem ker_le_of_range_subset {X Y Z : Scheme.{u}} |
| 18 | (i : X ⟶ Z) [IsClosedImmersion i] (f : Y ⟶ Z) [IsReduced Y] |
| 19 | (h : Set.range f ⊆ Set.range i) : i.ker ≤ f.ker := by |
| 20 | rw [← Scheme.IdealSheafData.map_bot f, Scheme.IdealSheafData.le_map_iff_comap_le] |
| 21 | apply le_of_eq |
| 22 | apply Scheme.IdealSheafData.support_eq_top_iff.mp |
| 23 | rw [Scheme.IdealSheafData.support_comap] |
| 24 | ext y |
| 25 | simp only [TopologicalSpace.Closeds.coe_preimage, Set.mem_preimage, |
| 26 | TopologicalSpace.Closeds.coe_top, Set.mem_univ, iff_true] |
| 27 | exact i.range_subset_ker_support (h ⟨y, rfl⟩) |
| 28 | |
| 29 | /-- The unique algebraic factorization through a closed subscheme for a |
| 30 | reduced source whose points all land in that subscheme. -/ |
| 31 | def factorThroughClosed {X Y Z : Scheme.{u}} |
| 32 | (i : X ⟶ Z) [IsClosedImmersion i] (f : Y ⟶ Z) [IsReduced Y] |
| 33 | (h : Set.range f ⊆ Set.range i) : Y ⟶ X := |
| 34 | IsClosedImmersion.lift i f (ker_le_of_range_subset i f h) |
| 35 | |
| 36 | @[reassoc (attr := simp)] |
| 37 | theorem factorThroughClosed_comp {X Y Z : Scheme.{u}} |
| 38 | (i : X ⟶ Z) [IsClosedImmersion i] (f : Y ⟶ Z) [IsReduced Y] |
| 39 | (h : Set.range f ⊆ Set.range i) : factorThroughClosed i f h ≫ i = f := |
| 40 | IsClosedImmersion.lift_fac i f (ker_le_of_range_subset i f h) |
| 41 | |
| 42 | /-- A closed target condition on a finite-type source can be checked on all |
| 43 | rational points over an algebraically closed field. -/ |
| 44 | theorem range_subset_closed_of_points {K : Type u} [Field K] [IsAlgClosed K] |
| 45 | (X Y : Over (Spec (.of K))) [LocallyOfFiniteType X.hom] |
| 46 | (f : X ⟶ Y) (Z : TopologicalSpace.Closeds Y.left) |
| 47 | (h : ∀ p : Over.mk (𝟙 (Spec (.of K))) ⟶ X, |
| 48 | (p ≫ f).left (IsLocalRing.closedPoint K) ∈ Z) : |
| 49 | Set.range f.left ⊆ Z := by |
| 50 | have : JacobsonSpace X.left := LocallyOfFiniteType.jacobsonSpace X.hom |
| 51 | have hclosed : IsClosed (f.left ⁻¹' (Z : Set Y.left)) := |
| 52 | Z.isClosed.preimage f.left.continuous |
| 53 | have hpoints : closedPoints X.left ⊆ f.left ⁻¹' (Z : Set Y.left) := by |
| 54 | intro x hx |
| 55 | change IsClosed {x} at hx |
| 56 | let p : Over.mk (𝟙 (Spec (.of K))) ⟶ X := |
| 57 | Over.homMk (pointOfClosedPoint X.hom x hx) (pointOfClosedPoint_comp X.hom x hx) |
| 58 | have hp : (p ≫ f).left (IsLocalRing.closedPoint K) = f.left x := |
| 59 | congrArg f.left (pointOfClosedPoint_apply X.hom x hx (IsLocalRing.closedPoint K)) |
| 60 | change f.left x ∈ Z |
| 61 | rw [← hp] |
| 62 | exact h p |
| 63 | rintro y ⟨x, rfl⟩ |
| 64 | have hx : x ∈ closure (closedPoints X.left) := by rw [closure_closedPoints]; trivial |
| 65 | exact hclosed.closure_subset_iff.mpr hpoints hx |
| 66 | |
| 67 | set_option backward.defeqAttrib.useBackward true in |
| 68 | set_option backward.isDefEq.respectTransparency false in |
| 69 | /-- A reduced finite-type scheme with a transitive action by its algebraic |
| 70 | automorphisms on rational points is smooth over an algebraically closed field. -/ |
| 71 | theorem smooth_of_point_transitive {K : Type u} [Field K] [IsAlgClosed K] |
| 72 | (X : Over (Spec (.of K))) [LocallyOfFiniteType X.hom] |
| 73 | [IsReduced X.left] [Nonempty X.left] |
| 74 | (htrans : ∀ p q : Over.mk (𝟙 (Spec (.of K))) ⟶ X, |
| 75 | ∃ e : X ≅ X, p ≫ e.hom = q) : Smooth X.hom := by |
| 76 | have : JacobsonSpace X.left := LocallyOfFiniteType.jacobsonSpace X.hom |
| 77 | rw [← Scheme.Hom.smoothLocus_eq_top_iff, ← TopologicalSpace.Opens.coe_eq_univ, |
| 78 | ← not_ne_iff, ← Set.nonempty_compl] |
| 79 | intro hbad |
| 80 | obtain ⟨x, hx, hxc⟩ := nonempty_inter_closedPoints hbad |
| 81 | X.hom.smoothLocus.2.isClosed_compl.isLocallyClosed |
| 82 | obtain ⟨y, hy, hyc⟩ := nonempty_inter_closedPoints |
| 83 | X.hom.dense_smoothLocus_of_perfectField.nonempty X.hom.smoothLocus.2.isLocallyClosed |
| 84 | let p : Over.mk (𝟙 (Spec (.of K))) ⟶ X := |
| 85 | Over.homMk _ ((pointEquivClosedPoint X.hom).symm ⟨x, hxc⟩).2 |
| 86 | let q : Over.mk (𝟙 (Spec (.of K))) ⟶ X := |
| 87 | Over.homMk _ ((pointEquivClosedPoint X.hom).symm ⟨y, hyc⟩).2 |
| 88 | obtain ⟨e, he⟩ := htrans p q |
| 89 | have hexy : e.hom.left x = y := by |
| 90 | simpa [p, q, pointEquivClosedPoint] using congr(($he).left (IsLocalRing.closedPoint K)) |
| 91 | have : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 92 | have hxpre : x ∈ e.hom.left ⁻¹ᵁ X.hom.smoothLocus := by |
| 93 | change e.hom.left x ∈ X.hom.smoothLocus |
| 94 | rw [hexy] |
| 95 | exact hy |
| 96 | rw! [Scheme.Hom.preimage_smoothLocus_eq, e.hom.w] at hxpre |
| 97 | exact hx hxpre |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.Albanese.Construction.ReducedFactor |