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.Supports |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SupportDimensionDrop |
| 4 | |
| 5 | /-! # Closed Difference Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedDifferenceDimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Every component of a closure coming from an open subscheme |
| 14 | has a closed witness in that open, outside any closed set not containing it. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | namespace ClosureComponentWitness |
| 22 | |
| 23 | def closedImage {X : Scheme} (U : X.Opens) (A : Closeds (U : Scheme)) : Closeds X := |
| 24 | ⟨closure (U.ι '' (A : Set (U : Scheme))), isClosed_closure⟩ |
| 25 | |
| 26 | theorem meets_open {X : Scheme} [NoetherianSpace X] |
| 27 | (U : X.Opens) (A : Closeds (U : Scheme)) |
| 28 | (C : irreducibleComponents (closedImage U A)) : |
| 29 | ∃ x : X, x ∈ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X (closedImage U A) C ∧ x ∈ U := by |
| 30 | let S := closedImage U A |
| 31 | let : NoetherianSpace S := NoetherianSpace.set (S : Set X) |
| 32 | obtain ⟨o, ho, ⟨z, hz⟩, hoC⟩ := |
| 33 | NoetherianSpace.exists_isOpen_nonempty_subset_irreducibleComponent C.val C.property |
| 34 | obtain ⟨V, hV, heV⟩ := isOpen_induced_iff.mp ho |
| 35 | have hzV : z.val ∈ V := by |
| 36 | change z ∈ (Subtype.val : S → X) ⁻¹' V |
| 37 | rw [heV] |
| 38 | exact hz |
| 39 | have hzc : z.val ∈ closure (U.ι '' (A : Set (U : Scheme))) := z.property |
| 40 | obtain ⟨x, hxV, hxA⟩ := mem_closure_iff.mp hzc V hV hzV |
| 41 | have hxS : x ∈ S := subset_closure hxA |
| 42 | have hxC : (⟨x, hxS⟩ : S) ∈ C.val := by |
| 43 | apply hoC |
| 44 | rw [← heV] |
| 45 | exact hxV |
| 46 | refine ⟨x, ⟨⟨x, hxS⟩, hxC, rfl⟩, ?_⟩ |
| 47 | obtain ⟨y, _, hy⟩ := hxA |
| 48 | exact hy ▸ y.property |
| 49 | |
| 50 | theorem closed_witness {X : Scheme} [NoetherianSpace X] |
| 51 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] |
| 52 | (U : X.Opens) (A : Closeds (U : Scheme)) (F : Closeds X) |
| 53 | (C : irreducibleComponents (closedImage U A)) |
| 54 | (hC : ¬ (CycleClass.Thom.IntersectionGeometry.closedComponentSupport X (closedImage U A) C : Set X) ⊆ F) : |
| 55 | ∃ x : X, x ∈ CycleClass.Thom.IntersectionGeometry.closedComponentSupport X (closedImage U A) C ∧ |
| 56 | x ∈ U ∧ x ∉ F ∧ IsClosed ({x} : Set X) := by |
| 57 | let : JacobsonSpace X := LocallyOfFiniteType.jacobsonSpace f |
| 58 | let W := CycleClass.Thom.IntersectionGeometry.closedComponentSupport X (closedImage U A) C |
| 59 | obtain ⟨x, hxW, hxU⟩ := meets_open U A C |
| 60 | have hnF : ((W : Set X) ∩ (F : Set X)ᶜ).Nonempty := by |
| 61 | by_contra hn |
| 62 | apply hC |
| 63 | intro y hy |
| 64 | by_contra hyF |
| 65 | exact hn ⟨y, hy, hyF⟩ |
| 66 | have hn := W.isIrreducible.isPreirreducible U (F : Set X)ᶜ U.isOpen F.isClosed.isOpen_compl |
| 67 | ⟨x, hxW, hxU⟩ hnF |
| 68 | obtain ⟨y, ⟨hyW, hyU, hyF⟩, hyc⟩ := nonempty_inter_closedPoints hn |
| 69 | (W.isClosed.isLocallyClosed.inter (U.isOpen.inter F.isClosed.isOpen_compl).isLocallyClosed) |
| 70 | exact ⟨y, hyW, hyU, hyF, hyc⟩ |
| 71 | |
| 72 | end ClosureComponentWitness |
| 73 | |
| 74 | end |
| 75 | |
| 76 | /-! Removing a closed subset before taking closure discards the |
| 77 | components contained in it and retains the dimension bounds on the others. -/ |
| 78 | |
| 79 | set_option backward.isDefEq.respectTransparency false |
| 80 | set_option backward.isDefEq.respectTransparency.types false |
| 81 | |
| 82 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 83 | |
| 84 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Supports |
| 85 | |
| 86 | variable {S : Scheme} (I F : Closeds S) |
| 87 | |
| 88 | def openComplement : S.Opens := ⟨(F : Set S)ᶜ, F.isClosed.isOpen_compl⟩ |
| 89 | |
| 90 | def onOpen : Closeds ((openComplement F) : Scheme) := |
| 91 | ⟨(openComplement F).ι ⁻¹' (I : Set S), I.isClosed.preimage (openComplement F).ι.continuous⟩ |
| 92 | |
| 93 | def away : Closeds S := ClosureComponentWitness.closedImage (openComplement F) (onOpen I F) |
| 94 | |
| 95 | theorem away_coe : (away I F : Set S) = closure ((I : Set S) \ F) := by |
| 96 | change closure (_ '' _) = _ |
| 97 | congr 1 |
| 98 | ext x |
| 99 | constructor |
| 100 | · rintro ⟨y, hy, rfl⟩ |
| 101 | exact ⟨hy, y.property⟩ |
| 102 | · intro hx |
| 103 | exact ⟨⟨x, hx.2⟩, hx.1, rfl⟩ |
| 104 | |
| 105 | theorem subset : away I F ≤ I := by |
| 106 | change (away I F : Set S) ⊆ I |
| 107 | rw [away_coe] |
| 108 | exact closure_minimal Set.sdiff_subset I.isClosed |
| 109 | |
| 110 | theorem component_not_subset [NoetherianSpace S] (C : irreducibleComponents (away I F)) : |
| 111 | ¬ (CycleClass.Thom.IntersectionGeometry.closedComponentSupport S (away I F) C : Set S) ⊆ F := by |
| 112 | obtain ⟨x, hxC, hxU⟩ := ClosureComponentWitness.meets_open (openComplement F) (onOpen I F) C |
| 113 | exact fun h => hxU (h hxC) |
| 114 | |
| 115 | theorem bound [NoetherianSpace S] (f : S ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType f] (k d : ℕ) |
| 116 | (hI : ∀ C : IrreducibleCloseds S, (C : Set S) ⊆ I → ¬ (C : Set S) ⊆ F → |
| 117 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension C f + k ≤ d) : |
| 118 | ∀ C : IrreducibleCloseds S, (C : Set S) ⊆ away I F → Foundations.Scheme.SupportDimension.supportTranscendenceDimension C f + k ≤ d := by |
| 119 | intro C hC |
| 120 | obtain ⟨D, hD⟩ := Supports.closedComponentSupport_covers S (away I F) C hC |
| 121 | have hdim := (Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_strictMono f).monotone hD |
| 122 | have hb := hI (CycleClass.Thom.IntersectionGeometry.closedComponentSupport S (away I F) D) |
| 123 | ((Supports.closedComponentSupport_subset S (away I F) D).trans (subset I F)) (component_not_subset I F D) |
| 124 | omega |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ClosedDifferenceDimension |