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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | |
| 8 | import HodgeConjecture.Definitions.AlgebraicGeometry.Stratification.Basic |
| 9 | import HodgeConjecture.Lemmas.AlgebraicGeometry.Smooth.Locus |
| 10 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 11 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 12 | import Mathlib.AlgebraicGeometry.IdealSheaf.Subscheme |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.Stratification.BasicLe |
| 15 | |
| 16 | open _root_.AlgebraicGeometry |
| 17 | |
| 18 | /-! |
| 19 | # A finite smooth decomposition of reduced closed subschemes |
| 20 | |
| 21 | Lemmas about the definitions in |
| 22 | `HodgeConjecture.Definitions.AlgebraicGeometry.Stratification.Basic`. |
| 23 | -/ |
| 24 | |
| 25 | /-! ### Constructions used only in proofs -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 29 | section |
| 30 | universe u |
| 31 | variable {X : Scheme.{u}} |
| 32 | |
| 33 | @[simp] lemma range_reducedClosedSubschemeι (S : Closeds X) : |
| 34 | Set.range (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S) = (S : Set X) := |
| 35 | Scheme.IdealSheafData.range_subschemeι _ |
| 36 | |
| 37 | end |
| 38 | end |
| 39 | |
| 40 | noncomputable section |
| 41 | |
| 42 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 43 | |
| 44 | section |
| 45 | |
| 46 | universe u |
| 47 | |
| 48 | variable {X : Scheme.{u}} |
| 49 | |
| 50 | variable {K : Type u} [Field K] |
| 51 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 52 | |
| 53 | lemma reducedClosedSingularRemainder_le (S : Closeds X) : |
| 54 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S ≤ S := by |
| 55 | rintro _ ⟨x, _, rfl⟩ |
| 56 | exact (range_reducedClosedSubschemeι S).le ⟨x, rfl⟩ |
| 57 | |
| 58 | lemma reducedClosedSingularRemainder_lt [PerfectField K] (S : Closeds X) (hS : S ≠ ⊥) : |
| 59 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S < S := by |
| 60 | refine lt_of_le_of_ne (reducedClosedSingularRemainder_le f S) ?_ |
| 61 | have hne : Nonempty (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubscheme S) := by |
| 62 | obtain ⟨x, hx⟩ := Closeds.coe_nonempty.mpr hS |
| 63 | obtain ⟨y, _⟩ := (range_reducedClosedSubschemeι S).ge hx |
| 64 | exact ⟨y⟩ |
| 65 | obtain ⟨x, hx⟩ := |
| 66 | (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).dense_smoothLocus_of_perfectField.nonempty |
| 67 | intro h |
| 68 | have hmem : _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S x ∈ _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S := by |
| 69 | rw [h] |
| 70 | exact (range_reducedClosedSubschemeι S).le ⟨x, rfl⟩ |
| 71 | obtain ⟨y, hy, hxy⟩ := hmem |
| 72 | exact hy ((_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S).isClosedEmbedding.injective hxy ▸ hx) |
| 73 | |
| 74 | /-- The smooth piece removed from a closed subset at one step. -/ |
| 75 | def reducedClosedSmoothPiece (S : Closeds X) : Scheme := |
| 76 | (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).smoothLocus |
| 77 | |
| 78 | /-- This piece is locally closed in the original ambient scheme. -/ |
| 79 | def reducedClosedSmoothPieceι (S : Closeds X) : reducedClosedSmoothPiece f S ⟶ X := |
| 80 | (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).smoothLocus.ι ≫ _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S |
| 81 | |
| 82 | set_option backward.isDefEq.respectTransparency false in |
| 83 | instance reducedClosedSmoothPieceι_isImmersion (S : Closeds X) : |
| 84 | IsImmersion (reducedClosedSmoothPieceι f S) := by |
| 85 | change IsImmersion |
| 86 | ((_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).smoothLocus.ι ≫ _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S) |
| 87 | infer_instance |
| 88 | |
| 89 | instance reducedClosedSmoothPiece_smooth (S : Closeds X) : |
| 90 | Smooth (reducedClosedSmoothPieceι f S ≫ f) := by |
| 91 | change Smooth ((_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).smoothLocus.ι ≫ |
| 92 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S ≫ f) |
| 93 | exact (_root_.OAI.AlgebraicGeometry.Smooth.Locus.Scheme.Hom.smooth_restrict_smoothLocus (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S)) |
| 94 | |
| 95 | attribute [local instance] _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothStratificationWellFoundedRelation |
| 96 | |
| 97 | open scoped Classical in |
| 98 | /-- The finite, explicitly recursive sequence of nonempty closed remainders. The actual |
| 99 | smooth strata are `reducedClosedSmoothPiece f S` for the members of this list. -/ |
| 100 | def reducedSmoothStratification [PerfectField K] [NoetherianSpace X] |
| 101 | (S : Closeds X) : List (Closeds X) := |
| 102 | if S = ⊥ then [] |
| 103 | else S :: reducedSmoothStratification (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S) |
| 104 | termination_by S |
| 105 | decreasing_by |
| 106 | apply reducedClosedSingularRemainder_lt f S |
| 107 | assumption |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end |
| 112 | |
| 113 | noncomputable section |
| 114 | |
| 115 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 116 | |
| 117 | section |
| 118 | |
| 119 | universe u |
| 120 | |
| 121 | variable {X : Scheme.{u}} |
| 122 | |
| 123 | variable {K : Type u} [Field K] |
| 124 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 125 | |
| 126 | lemma reducedClosedSmoothPiece_range (S : Closeds X) : |
| 127 | Set.range (reducedClosedSmoothPieceι f S) = |
| 128 | (S : Set X) \ (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S : Set X) := by |
| 129 | ext x |
| 130 | constructor |
| 131 | · rintro ⟨y, rfl⟩ |
| 132 | refine ⟨(range_reducedClosedSubschemeι S).le ⟨y.1, rfl⟩, ?_⟩ |
| 133 | rintro ⟨z, hz, he⟩ |
| 134 | exact hz ((_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSubschemeι S).isClosedEmbedding.injective he ▸ y.2) |
| 135 | · rintro ⟨hx, hnot⟩ |
| 136 | obtain ⟨y, rfl⟩ := (range_reducedClosedSubschemeι S).ge hx |
| 137 | have hy : y ∈ (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedStructureMap f S).smoothLocus := by |
| 138 | by_contra hn |
| 139 | exact hnot ⟨y, hn, rfl⟩ |
| 140 | exact ⟨⟨y, hy⟩, rfl⟩ |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end |
| 145 | |
| 146 | end OAI.AlgebraicGeometry.Stratification.BasicLe |