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.Smooth.StalkFiber |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 3 | |
| 4 | /-! # Fiber Support -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.FiberSupport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! At a smooth morphism, an irreducible support containing the whole |
| 11 | fiber and mapping generically to its base point has the exact closed-fiber |
| 12 | ideal in the ambient stalk. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 20 | |
| 21 | variable {X Y : Scheme} (f : X ⟶ Y) [Smooth f] (x : X) |
| 22 | |
| 23 | def prime : Spec (X.presheaf.stalk x) := |
| 24 | ⟨(IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom, by |
| 25 | let := StalkFiber.quotient_domain f x |
| 26 | exact (Ideal.Quotient.isDomain_iff_prime _).mp inferInstance⟩ |
| 27 | |
| 28 | theorem comap_prime : (Spec.map (f.stalkMap x)) (prime f x) = |
| 29 | IsLocalRing.closedPoint (Y.presheaf.stalk (f x)) := by |
| 30 | apply PrimeSpectrum.ext |
| 31 | apply Eq.symm |
| 32 | apply (IsLocalRing.maximalIdeal.isMaximal _).eq_of_le |
| 33 | ((prime f x).isPrime.comap (f.stalkMap x).hom).ne_top |
| 34 | exact Ideal.le_comap_map |
| 35 | |
| 36 | theorem image_prime : f (X.fromSpecStalk x (prime f x)) = f x := by |
| 37 | have he := congrArg (fun g : Spec (X.presheaf.stalk x) ⟶ Y => g (prime f x)) |
| 38 | (Scheme.SpecMap_stalkMap_fromSpecStalk f (x := x)) |
| 39 | change Y.fromSpecStalk (f x) ((Spec.map (f.stalkMap x)) (prime f x)) = |
| 40 | f (X.fromSpecStalk x (prime f x)) at he |
| 41 | rw [comap_prime, Scheme.fromSpecStalk_closedPoint] at he |
| 42 | exact he.symm |
| 43 | |
| 44 | theorem kernel_eq (W : IrreducibleCloseds X) (hx : x ∈ (W : Set X)) |
| 45 | (hgeneric : f (CycleClass.Thom.IntersectionGeometry.supportPoint W) = f x) |
| 46 | (hfiber : ∀ z : X, f z = f x → z ∈ (W : Set X)) : |
| 47 | RingHom.ker (Local.Principal.supportStalkMap X W x hx).hom = |
| 48 | (IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom := by |
| 49 | let q := Stalk.PrimeQuotient.kernelPrime X W x hx |
| 50 | have hq : (Spec.map (f.stalkMap x)) q = |
| 51 | IsLocalRing.closedPoint (Y.presheaf.stalk (f x)) := by |
| 52 | apply (Y.fromSpecStalk (f x)).isEmbedding.injective |
| 53 | have he := congrArg (fun g : Spec (X.presheaf.stalk x) ⟶ Y => g q) |
| 54 | (Scheme.SpecMap_stalkMap_fromSpecStalk f (x := x)) |
| 55 | change Y.fromSpecStalk (f x) ((Spec.map (f.stalkMap x)) q) = |
| 56 | f (X.fromSpecStalk x q) at he |
| 57 | rw [Stalk.PrimeQuotient.kernelPrime_image, hgeneric] at he |
| 58 | exact he.trans Scheme.fromSpecStalk_closedPoint.symm |
| 59 | have hpq : (prime f x).asIdeal ≤ q.asIdeal := by |
| 60 | change (IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom ≤ q.asIdeal |
| 61 | apply Ideal.map_le_iff_le_comap.mpr |
| 62 | exact (congrArg PrimeSpectrum.asIdeal hq).symm.le |
| 63 | have hqp : q.asIdeal ≤ (prime f x).asIdeal := by |
| 64 | apply (PrimeSpectrum.le_iff_specializes q (prime f x)).mpr |
| 65 | apply (X.fromSpecStalk x).isEmbedding.isInducing.specializes_iff.mp |
| 66 | change X.fromSpecStalk x (Stalk.PrimeQuotient.kernelPrime X W x hx) ⤳ X.fromSpecStalk x (prime f x) |
| 67 | rw [Stalk.PrimeQuotient.kernelPrime_image] |
| 68 | exact (W.isIrreducible.isGenericPoint_genericPoint W.isClosed).specializes |
| 69 | (hfiber _ (image_prime f x)) |
| 70 | exact le_antisymm hqp hpq |
| 71 | |
| 72 | def moduleEquiv (W : IrreducibleCloseds X) (hx : x ∈ (W : Set X)) |
| 73 | (hgeneric : f (CycleClass.Thom.IntersectionGeometry.supportPoint W) = f x) |
| 74 | (hfiber : ∀ z : X, f z = f x → z ∈ (W : Set X)) : |
| 75 | CycleClass.Thom.IntersectionGeometry.localSupportModule X W x hx ≃ₗ[X.presheaf.stalk x] |
| 76 | ((X.presheaf.stalk x) ⧸ |
| 77 | (IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom) := by |
| 78 | let q := Stalk.PrimeQuotient.kernelPrime X W x hx |
| 79 | exact (Stalk.PrimeQuotient.moduleEquiv X W x hx q (Stalk.PrimeQuotient.kernelPrime_image X W x hx)).trans |
| 80 | (Submodule.quotEquivOfEq _ _ (kernel_eq f x W hx hgeneric hfiber)) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.FiberSupport |