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.CycleClass.Thom.Affine.SectionFunction |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.SupportSectionGerm |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.RegularOrder |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.Cycle.MeetingOpen |
| 5 | import OAI.AlgebraicGeometry.CycleClass.Thom.Intersection.Supports |
| 6 | |
| 7 | /-! # Closed Support -/ |
| 8 | |
| 9 | namespace OAI |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace AlgebraicGeometry.CycleClass.Thom.Section.ClosedSupport.Constructions.Principal |
| 14 | |
| 15 | /-! The actual principal cycle of an ambient regular section is supported |
| 16 | on the parent cycle and the section's zero set, including the omitted |
| 17 | higher-codimension boundary. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.SectionFunction.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.SupportSectionGerm.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.SupportStalkModule.Constructions |
| 22 | open OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap.Constructions.AffineOpen OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.AmbientMap.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.RegularOrder.Constructions |
| 23 | open OAI.AlgebraicGeometry.CycleClass.Thom.Intersection.Supports OAI.AlgebraicGeometry.CycleClass.Thom.Cycle.MeetingOpen.Constructions |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false |
| 26 | set_option backward.isDefEq.respectTransparency.types false |
| 27 | |
| 28 | theorem ord_algebraMap_stalk_unit (X : Scheme) [IsIntegral X] [IsLocallyNoetherian X] |
| 29 | (x : X) (s : X.presheaf.stalk x) (hs : IsUnit s) : |
| 30 | X.ord (algebraMap (X.presheaf.stalk x) X.functionField s) x = 0 := by |
| 31 | by_cases hx : Order.coheight x = 1 |
| 32 | · rw [Thom.Scheme.RegularOrder.Constructions.ord_algebraMap_stalk X x hx s hs.ne_zero, Ring.ord_of_isUnit hs] |
| 33 | rfl |
| 34 | · exact Scheme.ord_eq_zero_of_coheight_neq_one hx _ |
| 35 | |
| 36 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (D : Geometric.DimensionCycles.DimensionCycleSupport V p) |
| 37 | (B : V.carrier.Opens) [Nonempty ((Normalization.AmbientMap.Constructions.normalizationToAmbient V D.val).left ⁻¹ᵁ B)] |
| 38 | (s : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) (C : IrreducibleCloseds V.carrier) |
| 39 | |
| 40 | theorem principalCoefficient_support |
| 41 | (hc : IntersectionGeometry.principalDivisorCoefficient V.presentation D.val (Affine.SectionFunction.Constructions.parentSectionFunction D B s) C ≠ 0) : |
| 42 | (C : Set V.carrier) ⊆ D.val ∧ |
| 43 | ∀ x : V.carrier, x ∈ (C : Set V.carrier) → x ∉ V.carrier.basicOpen (B.topIso.hom s) := by |
| 44 | classical |
| 45 | have hD : IntersectionGeometry.supportPoint C ∈ (D.val : Set V.carrier) := by |
| 46 | by_contra hn |
| 47 | exact hc (by simp only [IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hn]) |
| 48 | refine ⟨(Intersection.Supports.supportPoint_mem_iff_subset ⟨(D.val : Set V.carrier), D.val.isClosed⟩ C).mp hD, ?_⟩ |
| 49 | intro x hx hunit |
| 50 | have hu := Cycle.MeetingOpen.Constructions.supportPoint_mem_of_meets C (V.carrier.basicOpen (B.topIso.hom s)) x hx hunit |
| 51 | have hb : IntersectionGeometry.supportPoint C ∈ B := V.carrier.basicOpen_le (B.topIso.hom s) hu |
| 52 | let : Nonempty (D.inclusion ⁻¹ᵁ B) := |
| 53 | ⟨⟨IntersectionGeometry.supportPreimage D.val (IntersectionGeometry.supportPoint C) hD, SupportSectionGerm.Constructions.supportPreimage_mem_open V.carrier D.val (IntersectionGeometry.supportPoint C) hD B hb⟩⟩ |
| 54 | have hg := SupportSectionGerm.Constructions.restrictedFunction_eq_supportStalk_germ V.carrier D.val (IntersectionGeometry.supportPoint C) hD B hb (B.topIso.hom s) |
| 55 | have hgu : IsUnit (V.carrier.presheaf.germ B (IntersectionGeometry.supportPoint C) hb (B.topIso.hom s)) := |
| 56 | (V.carrier.mem_basicOpen (B.topIso.hom s) (IntersectionGeometry.supportPoint C) hb).mp hu |
| 57 | have hsu := (SupportStalkModule.Constructions.supportStalkMap V.carrier D.val (IntersectionGeometry.supportPoint C) hD).hom.isUnit_map hgu |
| 58 | apply hc |
| 59 | rw [IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hD] |
| 60 | change (D.scheme.ord (Affine.SectionFunction.Constructions.parentSectionFunction D B s) (IntersectionGeometry.supportPreimage D.val (IntersectionGeometry.supportPoint C) hD) : ℚ) = 0 |
| 61 | change Affine.SectionFunction.Constructions.parentSectionFunction D B s = _ at hg |
| 62 | rw [hg, ord_algebraMap_stalk_unit D.scheme _ _ hsu, Int.cast_zero] |
| 63 | |
| 64 | end AlgebraicGeometry.CycleClass.Thom.Section.ClosedSupport.Constructions.Principal |
| 65 | |
| 66 | namespace AlgebraicGeometry.CycleClass.Thom.Section.ClosedSupport.Constructions |
| 67 | |
| 68 | /-! A regular section on an ambient open gives a genuine global closed |
| 69 | support of codimension at least one more than its parent cycle. Its |
| 70 | principal cycle is contained in that closed support. -/ |
| 71 | |
| 72 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 73 | |
| 74 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.SectionFunction.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap.Constructions.AffineOpen OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.AmbientMap.Constructions |
| 75 | open OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.Scheme.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Section.ClosedSupport.Constructions.Principal |
| 76 | |
| 77 | set_option backward.isDefEq.respectTransparency false |
| 78 | set_option backward.isDefEq.respectTransparency.types false |
| 79 | |
| 80 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (D : Geometric.DimensionCycles.DimensionCycleSupport V p) |
| 81 | (B : V.carrier.Opens) (s : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase B).left, ⊤)) |
| 82 | |
| 83 | def sectionClosedSupport : Closeds V.carrier := |
| 84 | ⟨(D.val : Set V.carrier) ∩ (V.carrier.basicOpen (B.topIso.hom s) : Set V.carrier)ᶜ, |
| 85 | D.val.isClosed.inter (V.carrier.basicOpen (B.topIso.hom s)).isOpen.isClosed_compl⟩ |
| 86 | |
| 87 | variable [Nonempty ((Normalization.AmbientMap.Constructions.normalizationToAmbient V D.val).left ⁻¹ᵁ B)] |
| 88 | |
| 89 | local instance : Nonempty (D.inclusion ⁻¹ᵁ B) := by |
| 90 | obtain ⟨x⟩ := ‹Nonempty ((normalizationToAmbient V D.val).left ⁻¹ᵁ B)› |
| 91 | exact ⟨⟨Normalization.Scheme.Constructions.normalizationMap D.scheme x.val, x.property⟩⟩ |
| 92 | |
| 93 | variable (hs : Affine.SectionFunction.Constructions.parentSectionFunction D B s ≠ 0) |
| 94 | |
| 95 | include hs in |
| 96 | theorem parent_genericPoint_mem_unitOpen : IntersectionGeometry.supportPoint D.val ∈ V.carrier.basicOpen (B.topIso.hom s) := by |
| 97 | have hη : genericPoint D.scheme ∈ D.inclusion ⁻¹ᵁ B := |
| 98 | ((genericPoint_spec D.scheme).mem_open_set_iff (D.inclusion ⁻¹ᵁ B).isOpen).mpr |
| 99 | (by simpa using (show Nonempty (D.inclusion ⁻¹ᵁ B) from inferInstance)) |
| 100 | have hu : genericPoint D.scheme ∈ D.scheme.basicOpen (D.inclusion.app B (B.topIso.hom s)) := by |
| 101 | rw [D.scheme.mem_basicOpen _ _ hη] |
| 102 | exact isUnit_iff_ne_zero.mpr hs |
| 103 | have hp : D.inclusion (genericPoint D.scheme) ∈ V.carrier.basicOpen (B.topIso.hom s) := by |
| 104 | change genericPoint D.scheme ∈ D.inclusion ⁻¹ᵁ V.carrier.basicOpen (B.topIso.hom s) |
| 105 | rw [Scheme.preimage_basicOpen] |
| 106 | exact hu |
| 107 | exact (congrArg (fun x : V.carrier => x ∈ V.carrier.basicOpen (B.topIso.hom s)) |
| 108 | (Geometric.GenericPoint.reducedSupport_genericPoint_eq D.val)).mp hp |
| 109 | |
| 110 | include hs in |
| 111 | theorem sectionClosedSupport_dimension (Z : IrreducibleCloseds V.carrier) |
| 112 | (hZ : (Z : Set V.carrier) ⊆ sectionClosedSupport D B s) : |
| 113 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z V.structureMap + (Geometric.DimensionCycles.dimensionCodimension V D.val + 1) ≤ |
| 114 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap := by |
| 115 | have hle : Z ≤ D.val := fun _ hx => (hZ hx).1 |
| 116 | have hne : Z ≠ D.val := by |
| 117 | intro he |
| 118 | have hη : IntersectionGeometry.supportPoint D.val ∈ (D.val : Set V.carrier) := |
| 119 | (D.val.isIrreducible.isGenericPoint_genericPoint D.val.isClosed).mem |
| 120 | have hηZ : IntersectionGeometry.supportPoint D.val ∈ (Z : Set V.carrier) := |
| 121 | (congrArg (fun C : IrreducibleCloseds V.carrier => IntersectionGeometry.supportPoint D.val ∈ (C : Set V.carrier)) he).mpr hη |
| 122 | have hz := hZ hηZ |
| 123 | exact hz.2 (parent_genericPoint_mem_unitOpen D B s hs) |
| 124 | have hdim := Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_strictMono V.structureMap (lt_of_le_of_ne hle hne) |
| 125 | change Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z V.structureMap < |
| 126 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension D.val V.structureMap at hdim |
| 127 | have hD := Geometric.DimensionCycles.supportDimension_add_dimensionCodimension V D.val |
| 128 | omega |
| 129 | |
| 130 | omit hs in |
| 131 | theorem principalCoefficient_subset_sectionClosedSupport (C : IrreducibleCloseds V.carrier) |
| 132 | (hc : IntersectionGeometry.principalDivisorCoefficient V.presentation D.val (Affine.SectionFunction.Constructions.parentSectionFunction D B s) C ≠ 0) : |
| 133 | (C : Set V.carrier) ⊆ sectionClosedSupport D B s := by |
| 134 | obtain ⟨hD, hu⟩ := Principal.principalCoefficient_support D B s C hc |
| 135 | exact fun x hx => ⟨hD hx, hu x hx⟩ |
| 136 | |
| 137 | end AlgebraicGeometry.CycleClass.Thom.Section.ClosedSupport.Constructions |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI |