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.CurveSupports |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SupportSpectrum |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.Normal |
| 5 | import Mathlib.RingTheory.Ideal.Height |
| 6 | |
| 7 | /-! # Stalk -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.Stalk |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The native ambient stalk at a codimension-two intersection of divisors |
| 14 | has dimension two. Positive-codimension reduced support stalks are torsion |
| 15 | modules over the ambient domain, as witnessed by their actual defining ideal. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 22 | |
| 23 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 24 | [SmoothOfRelativeDimension m X.structureMap] |
| 25 | |
| 26 | include m |
| 27 | |
| 28 | theorem coheight_two (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 29 | (hCA : C.val ≤ A.val) : coheight (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) = 2 := by |
| 30 | apply le_antisymm |
| 31 | · simpa only [C.property, Nat.cast_ofNat] using CurveSupports.coheight_le_codimension X m C.val |
| 32 | · have hne : C.val ≠ A.val := by |
| 33 | intro h |
| 34 | have he := congrArg X.supportCodimension h |
| 35 | rw [C.property, A.property] at he |
| 36 | omega |
| 37 | have hA : coheight A.val = 1 := by |
| 38 | simpa only [CycleClass.Thom.IntersectionGeometry.supportPoint, coheight_orderIso] using CurveSupports.coheight_one X m A |
| 39 | rw [CycleClass.Thom.IntersectionGeometry.supportPoint, coheight_orderIso] |
| 40 | simpa only [hA, one_add_one_eq_two] using coheight_add_one_le (lt_of_le_of_ne hCA hne) |
| 41 | |
| 42 | theorem maximalIdeal_height_two (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 43 | (hCA : C.val ≤ A.val) : |
| 44 | (IsLocalRing.maximalIdeal (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val))).height = 2 := by |
| 45 | apply WithBot.coe_injective |
| 46 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, ringKrullDim_stalk_eq_coheight, |
| 47 | coheight_two X m A C hCA] |
| 48 | |
| 49 | theorem supportStalkMap_ker_ne_bot (p : ℕ) (hp : 0 < p) (A : X.DimensionCycleSupport p) |
| 50 | (x : X.carrier) (hx : x ∈ (A.val : Set X.carrier)) : |
| 51 | RingHom.ker (Local.Principal.supportStalkMap X.carrier A.val x hx).hom ≠ ⊥ := by |
| 52 | let D := ZeroComponents.containingComponent X m A.val |
| 53 | let z := CycleClass.Thom.IntersectionGeometry.supportPoint D.val |
| 54 | have hxD : x ∈ (D.val : Set X.carrier) := |
| 55 | ZeroComponents.subset_containingComponent X m A.val hx |
| 56 | have hzx : z ⤳ x := |
| 57 | (D.val.isIrreducible.isGenericPoint_genericPoint D.val.isClosed).specializes hxD |
| 58 | have hzrange : z ∈ Set.range (X.carrier.fromSpecStalk x) := by |
| 59 | rw [Scheme.range_fromSpecStalk] |
| 60 | exact hzx |
| 61 | obtain ⟨q, hq⟩ := hzrange |
| 62 | intro hker |
| 63 | let R := X.carrier.presheaf.stalk x |
| 64 | let : IsDomain R := X.stalk_isDomain x |
| 65 | let T := (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val x hx) |
| 66 | let σ := Local.Principal.supportStalkMap X.carrier A.val x hx |
| 67 | let : Algebra R T := σ.hom.toAlgebra |
| 68 | have hσ : Function.Bijective σ.hom := |
| 69 | ⟨(RingHom.injective_iff_ker_eq_bot σ.hom).mpr hker, |
| 70 | Local.Principal.supportStalkMap_surjective X.carrier A.val x hx⟩ |
| 71 | let e : R ≃ₐ[R] T := AlgEquiv.ofBijective (Algebra.ofId R T) hσ |
| 72 | have hsupport : Module.support R T = Set.univ := by |
| 73 | rw [← e.toLinearEquiv.support_eq] |
| 74 | exact Module.support_of_isTorsionFree |
| 75 | have hzA : z ∈ (A.val : Set X.carrier) := by |
| 76 | rw [← hq] |
| 77 | apply Local.SupportSpectrum.image_mem_support X.carrier A.val x hx q |
| 78 | change q ∈ Module.support R T |
| 79 | rw [hsupport] |
| 80 | trivial |
| 81 | have hDA : D.val ≤ A.val := by |
| 82 | change (D.val : Set X.carrier) ⊆ (A.val : Set X.carrier) |
| 83 | exact (Supports.supportPoint_mem_iff_subset |
| 84 | (⟨(A.val : Set X.carrier), A.val.isClosed⟩ : Closeds X.carrier) D.val).mp hzA |
| 85 | have hdim := (Supports.codimension_strictAnti X m).antitone hDA |
| 86 | rw [D.property, A.property] at hdim |
| 87 | omega |
| 88 | |
| 89 | theorem localSupport_torsion (p : ℕ) (hp : 0 < p) (A : X.DimensionCycleSupport p) |
| 90 | (x : X.carrier) (hx : x ∈ (A.val : Set X.carrier)) : |
| 91 | ∀ a : CycleClass.Thom.IntersectionGeometry.localSupportModule X.carrier A.val x hx, |
| 92 | ∃ r : X.carrier.presheaf.stalk x, r ≠ 0 ∧ r • a = 0 := by |
| 93 | have hker := supportStalkMap_ker_ne_bot X m p hp A x hx |
| 94 | obtain ⟨r, hr, hr0⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hker |
| 95 | intro a |
| 96 | change (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val x hx) at a |
| 97 | refine ⟨r, hr0, ?_⟩ |
| 98 | change Local.Principal.supportStalkMap X.carrier A.val x hx r * a = 0 |
| 99 | rw [RingHom.mem_ker.mp hr, zero_mul] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.Stalk |