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.IntersectionTheory.ProjectionFormula.IndependentLinearCut |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 3 | |
| 4 | /-! # Cut Away From Point -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CutAwayFromPoint |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A hyperplane avoiding one witness in every component except a |
| 11 | designated point raises codimension everywhere away from that point. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Projective.LinearCut |
| 19 | |
| 20 | theorem closed_witness (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (x : X.carrier) |
| 21 | (hx : IsClosed ({x} : Set _)) (W : IrreducibleCloseds X.carrier) |
| 22 | (hW : ¬ (W : Set X.carrier) ⊆ {x}) : |
| 23 | ∃ y : X.carrier, y ∈ W ∧ y ≠ x ∧ IsClosed ({y} : Set _) := by |
| 24 | let : JacobsonSpace X.carrier := LocallyOfFiniteType.jacobsonSpace X.structureMap |
| 25 | have hn : ((W : Set X.carrier) \ {x}).Nonempty := by |
| 26 | by_contra h |
| 27 | exact hW (Set.sdiff_eq_empty.mp (Set.not_nonempty_iff_eq_empty.mp h)) |
| 28 | obtain ⟨y, ⟨hy, hyx⟩, hclosed⟩ := nonempty_inter_closedPoints hn |
| 29 | (W.isClosed.isLocallyClosed.inter hx.isOpen_compl.isLocallyClosed) |
| 30 | exact ⟨y, hy, hyx, hclosed⟩ |
| 31 | |
| 32 | theorem cut (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 33 | [SmoothOfRelativeDimension m X.structureMap] (x : X.carrier) |
| 34 | (S : Closeds X.carrier) |
| 35 | (hS : ∀ W : IrreducibleCloseds X.carrier, (W : Set X.carrier) ⊆ S → |
| 36 | ¬ (W : Set X.carrier) ⊆ {x} → k ≤ X.supportCodimension W) |
| 37 | (a : Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing X.ambientDimension) |
| 38 | (ha : ∀ C : irreducibleComponents S, |
| 39 | ¬ (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C : Set X.carrier) ⊆ {x} → |
| 40 | ∃ y : X.carrier, y ∈ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C ∧ |
| 41 | a ∉ (X.embedding y).asHomogeneousIdeal) : |
| 42 | ∀ W : IrreducibleCloseds X.carrier, |
| 43 | (W : Set X.carrier) ⊆ S ⊓ Projective.LinearCut.zeroSet X.embedding a → |
| 44 | ¬ (W : Set X.carrier) ⊆ {x} → k + 1 ≤ X.supportCodimension W := by |
| 45 | intro W hW hWx |
| 46 | have hWS : (W : Set X.carrier) ⊆ S := fun y hy => (hW hy).1 |
| 47 | obtain ⟨C, hC⟩ := Supports.closedComponentSupport_covers X.carrier S W hWS |
| 48 | have hCx : ¬ (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C : Set X.carrier) ⊆ {x} := |
| 49 | fun h => hWx (hC.trans h) |
| 50 | obtain ⟨y, hy, hay⟩ := ha C hCx |
| 51 | have hne : W ≠ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C := by |
| 52 | intro he |
| 53 | have hyW : y ∈ W := he ▸ hy |
| 54 | have hz := (hW hyW).2 |
| 55 | change ¬ a ∉ (X.embedding y).asHomogeneousIdeal at hz |
| 56 | exact hay (not_not.mp hz) |
| 57 | have ht := Supports.codimension_strictAnti X m (lt_of_le_of_ne hC hne) |
| 58 | have hb := hS (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C) |
| 59 | (Supports.closedComponentSupport_subset X.carrier S C) hCx |
| 60 | omega |
| 61 | |
| 62 | theorem cut_all (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 63 | [SmoothOfRelativeDimension m X.structureMap] (S : Closeds X.carrier) |
| 64 | (hS : ∀ W : IrreducibleCloseds X.carrier, (W : Set X.carrier) ⊆ S → |
| 65 | k ≤ X.supportCodimension W) |
| 66 | (a : Foundations.Scheme.ProjectiveSpace.homogeneousCoordinateRing X.ambientDimension) |
| 67 | (ha : ∀ C : irreducibleComponents S, |
| 68 | a ∉ (X.embedding (CycleClass.Thom.IntersectionGeometry.supportPoint (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C))).asHomogeneousIdeal) : |
| 69 | ∀ W : IrreducibleCloseds X.carrier, |
| 70 | (W : Set X.carrier) ⊆ S ⊓ Projective.LinearCut.zeroSet X.embedding a → |
| 71 | k + 1 ≤ X.supportCodimension W := by |
| 72 | intro W hW |
| 73 | have hWS : (W : Set X.carrier) ⊆ S := fun y hy => (hW hy).1 |
| 74 | obtain ⟨C, hC⟩ := Supports.closedComponentSupport_covers X.carrier S W hWS |
| 75 | have hne : W ≠ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C := by |
| 76 | intro he |
| 77 | have hx : CycleClass.Thom.IntersectionGeometry.supportPoint (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C) ∈ (W : Set X.carrier) := |
| 78 | he ▸ (W.isIrreducible.isGenericPoint_genericPoint W.isClosed).mem |
| 79 | have hz := (hW hx).2 |
| 80 | change ¬ a ∉ (X.embedding _).asHomogeneousIdeal at hz |
| 81 | exact ha C (not_not.mp hz) |
| 82 | have ht := Supports.codimension_strictAnti X m (lt_of_le_of_ne hC hne) |
| 83 | have hb := hS (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X.carrier S C) |
| 84 | (Supports.closedComponentSupport_subset X.carrier S C) |
| 85 | omega |
| 86 | |
| 87 | theorem subset_singleton (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 88 | [SmoothOfRelativeDimension m X.structureMap] (S : Closeds X.carrier) (x : X.carrier) |
| 89 | (hS : ∀ W : IrreducibleCloseds X.carrier, (W : Set X.carrier) ⊆ S → |
| 90 | ¬ (W : Set X.carrier) ⊆ {x} → m + 1 ≤ X.supportCodimension W) : |
| 91 | (S : Set X.carrier) ⊆ {x} := by |
| 92 | intro y hy |
| 93 | let W : IrreducibleCloseds X.carrier := irreducibleSetEquivPoints.symm y |
| 94 | have hp : CycleClass.Thom.IntersectionGeometry.supportPoint W = y := irreducibleSetEquivPoints.apply_symm_apply y |
| 95 | have hW : (W : Set X.carrier) ⊆ S := |
| 96 | (Supports.supportPoint_mem_iff_subset S W).mp (hp ▸ hy) |
| 97 | have hyW : y ∈ W := hp ▸ (W.isIrreducible.isGenericPoint_genericPoint W.isClosed).mem |
| 98 | by_contra hn |
| 99 | have hb := hS W hW (fun he => hn (he hyW)) |
| 100 | have hd := Grading.supportDimension_add_codimension X m W |
| 101 | omega |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CutAwayFromPoint |