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.Lemmas.AlgebraicGeometry.Stratification.Basic |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Stratification.ClosedFiltration |
| 11 | |
| 12 | open _root_.AlgebraicGeometry |
| 13 | |
| 14 | /-! |
| 15 | # The canonical smooth decomposition as a closed filtration |
| 16 | |
| 17 | The filtration is antitone, consecutive closed supports differ by the actual smooth piece, |
| 18 | and it is empty at the length of the existing finite list and thereafter. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 24 | |
| 25 | section |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 30 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 31 | |
| 32 | @[simp] theorem reducedSmoothClosedFiltration_zero (S : Closeds X) : |
| 33 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S 0 = S := rfl |
| 34 | |
| 35 | @[simp] theorem reducedSmoothClosedFiltration_succ (S : Closeds X) (k : ℕ) : |
| 36 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S (k + 1) = |
| 37 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S k) := rfl |
| 38 | |
| 39 | theorem reducedSmoothClosedFiltration_succ_start (S : Closeds X) (k : ℕ) : |
| 40 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S (k + 1) = |
| 41 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S) k := by |
| 42 | induction k with |
| 43 | | zero => rfl |
| 44 | | succ k ih => |
| 45 | rw [reducedSmoothClosedFiltration_succ, ih, reducedSmoothClosedFiltration_succ] |
| 46 | |
| 47 | @[simp] theorem reducedClosedSingularRemainder_bot : |
| 48 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f ⊥ = ⊥ := |
| 49 | le_bot_iff.mp (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSingularRemainder_le f ⊥) |
| 50 | |
| 51 | @[simp] theorem reducedSmoothClosedFiltration_bot (k : ℕ) : |
| 52 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f ⊥ k = ⊥ := by |
| 53 | induction k with |
| 54 | | zero => rfl |
| 55 | | succ k ih => rw [reducedSmoothClosedFiltration_succ, ih, reducedClosedSingularRemainder_bot] |
| 56 | |
| 57 | theorem reducedSmoothClosedFiltration_succ_le (S : Closeds X) (k : ℕ) : |
| 58 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S (k + 1) ≤ _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S k := |
| 59 | _root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSingularRemainder_le f _ |
| 60 | |
| 61 | theorem reducedSmoothClosedFiltration_antitone (S : Closeds X) : |
| 62 | Antitone (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S) := |
| 63 | antitone_nat_of_succ_le (reducedSmoothClosedFiltration_succ_le f S) |
| 64 | |
| 65 | theorem reducedSmoothClosedFiltration_le (S : Closeds X) (k : ℕ) : |
| 66 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S k ≤ S := |
| 67 | reducedSmoothClosedFiltration_antitone f S (Nat.zero_le k) |
| 68 | |
| 69 | /-- Each successive layer is the range of the smooth locally closed immersion. -/ |
| 70 | theorem reducedSmoothClosedFiltration_layer (S : Closeds X) (k : ℕ) : |
| 71 | Set.range (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSmoothPieceι f (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S k)) = |
| 72 | (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S k : Set X) \ |
| 73 | (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S (k + 1) : Set X) := |
| 74 | _root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSmoothPiece_range f _ |
| 75 | |
| 76 | variable [PerfectField K] [NoetherianSpace X] |
| 77 | |
| 78 | /-- The terminal index is the length of the finite list. -/ |
| 79 | theorem reducedSmoothClosedFiltration_length (S : Closeds X) : |
| 80 | _root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedSmoothClosedFiltration f S (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedSmoothStratification f S).length = ⊥ := by |
| 81 | induction S using (wellFounded_lt (α := Closeds X)).induction with |
| 82 | | h S ih => |
| 83 | by_cases hS : S = ⊥ |
| 84 | · subst S |
| 85 | exact reducedSmoothClosedFiltration_bot f _ |
| 86 | · have hlen : (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedSmoothStratification f S).length = |
| 87 | (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedSmoothStratification f (_root_.OAI.AlgebraicGeometry.Stratification.Basic.reducedClosedSingularRemainder f S)).length + 1 := by |
| 88 | rw [_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedSmoothStratification, ite_eq_right hS, List.length_cons] |
| 89 | rw [hlen, reducedSmoothClosedFiltration_succ_start] |
| 90 | exact ih _ (_root_.OAI.AlgebraicGeometry.Stratification.BasicLe.reducedClosedSingularRemainder_lt f S hS) |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.Stratification.ClosedFiltration |