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.StalkPrimeQuotient |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 3 | |
| 4 | /-! # Stalk Support -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.CycleClass.Thom.Open.StalkSupport |
| 11 | |
| 12 | /-! The defining prime of a reduced support stalk is preserved by an |
| 13 | open immersion whenever the actual generic support points correspond. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | namespace Constructions |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.StalkPrimeQuotient.Constructions |
| 22 | |
| 23 | theorem kernelPrime_comap {Y X : Scheme} (i : Y ⟶ X) |
| 24 | (A : IrreducibleCloseds Y) (B : IrreducibleCloseds X) |
| 25 | (hAB : i (IntersectionGeometry.supportPoint A) = IntersectionGeometry.supportPoint B) |
| 26 | (y : Y) (hy : y ∈ (A : Set Y)) (hx : i y ∈ (B : Set X)) : |
| 27 | (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy).asIdeal.comap (i.stalkMap y).hom = |
| 28 | (StalkPrimeQuotient.Constructions.kernelPrime X B (i y) hx).asIdeal := by |
| 29 | have he := congrArg (fun f : Spec (Y.presheaf.stalk y) ⟶ X => f (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy)) |
| 30 | (Scheme.SpecMap_stalkMap_fromSpecStalk i (x := y)) |
| 31 | change X.fromSpecStalk (i y) ((Spec.map (i.stalkMap y)) (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy)) = |
| 32 | i (Y.fromSpecStalk y (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy)) at he |
| 33 | rw [StalkPrimeQuotient.Constructions.kernelPrime_image, hAB] at he |
| 34 | have hp : (Spec.map (i.stalkMap y)) (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy) = StalkPrimeQuotient.Constructions.kernelPrime X B (i y) hx := |
| 35 | (X.fromSpecStalk (i y)).isEmbedding.injective (he.trans (StalkPrimeQuotient.Constructions.kernelPrime_image X B (i y) hx).symm) |
| 36 | exact congrArg PrimeSpectrum.asIdeal hp |
| 37 | |
| 38 | theorem kernelPrime_map {Y X : Scheme} (i : Y ⟶ X) [IsOpenImmersion i] |
| 39 | (A : IrreducibleCloseds Y) (B : IrreducibleCloseds X) |
| 40 | (hAB : i (IntersectionGeometry.supportPoint A) = IntersectionGeometry.supportPoint B) |
| 41 | (y : Y) (hy : y ∈ (A : Set Y)) (hx : i y ∈ (B : Set X)) : |
| 42 | (StalkPrimeQuotient.Constructions.kernelPrime X B (i y) hx).asIdeal.map (i.stalkMap y).hom = |
| 43 | (StalkPrimeQuotient.Constructions.kernelPrime Y A y hy).asIdeal := by |
| 44 | rw [← kernelPrime_comap i A B hAB y hy hx] |
| 45 | exact Ideal.map_comap_of_surjective _ (ConcreteCategory.bijective_of_isIso (i.stalkMap y)).surjective _ |
| 46 | |
| 47 | end Constructions |
| 48 | |
| 49 | end AlgebraicGeometry.CycleClass.Thom.Open.StalkSupport |
| 50 | |
| 51 | namespace AlgebraicGeometry.CycleClass.Thom.Open.StalkSupport.Constructions.Restriction |
| 52 | |
| 53 | /-! A reduced irreducible support meeting an open immersion restricts |
| 54 | to its genuine irreducible inverse image. Its generic point and native |
| 55 | stalk ideal commute with the original open immersion. -/ |
| 56 | |
| 57 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 58 | |
| 59 | open OAI.AlgebraicGeometry.CycleClass.Thom.StalkPrimeQuotient.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Open.StalkSupport.Constructions |
| 60 | |
| 61 | set_option backward.isDefEq.respectTransparency false |
| 62 | set_option backward.isDefEq.respectTransparency.types false |
| 63 | |
| 64 | variable {X Y : Scheme} (f : X ⟶ Y) [IsOpenImmersion f] (A : IrreducibleCloseds Y) |
| 65 | |
| 66 | theorem generic_mem_range (x : X) (hx : f x ∈ (A : Set Y)) : IntersectionGeometry.supportPoint A ∈ Set.range f := by |
| 67 | have h := (A.isIrreducible.isGenericPoint_genericPoint A.isClosed).specializes hx |
| 68 | exact h.mem_open f.isOpenEmbedding.isOpen_range ⟨x, rfl⟩ |
| 69 | |
| 70 | variable (hA : IntersectionGeometry.supportPoint A ∈ Set.range f) |
| 71 | |
| 72 | def restrictedSupport : IrreducibleCloseds X := irreducibleSetEquivPoints.symm hA.choose |
| 73 | |
| 74 | omit [IsOpenImmersion f] in |
| 75 | theorem restrictedSupport_genericPoint : f (IntersectionGeometry.supportPoint (restrictedSupport f A hA)) = IntersectionGeometry.supportPoint A := by |
| 76 | change f (irreducibleSetEquivPoints (irreducibleSetEquivPoints.symm hA.choose)) = IntersectionGeometry.supportPoint A |
| 77 | rw [OrderIso.apply_symm_apply] |
| 78 | exact hA.choose_spec |
| 79 | |
| 80 | theorem restrictedSupport_coe : (restrictedSupport f A hA : Set X) = f ⁻¹' (A : Set Y) := by |
| 81 | have h := f.isOpenEmbedding.isEmbedding.closure_eq_preimage_closure_image ({hA.choose} : Set X) |
| 82 | rw [Set.image_singleton, hA.choose_spec] at h |
| 83 | exact h.trans (congrArg (fun S : Set Y => f ⁻¹' S) |
| 84 | (A.isIrreducible.isGenericPoint_genericPoint A.isClosed)) |
| 85 | |
| 86 | theorem restrictedSupport_mem (x : X) (hx : f x ∈ (A : Set Y)) : x ∈ (restrictedSupport f A hA : Set X) := by |
| 87 | rw [restrictedSupport_coe] |
| 88 | exact hx |
| 89 | |
| 90 | theorem restrictedSupport_kernel (x : X) (hx : f x ∈ (A : Set Y)) : |
| 91 | (StalkPrimeQuotient.Constructions.kernelPrime Y A (f x) hx).asIdeal.map (f.stalkMap x).hom = |
| 92 | (StalkPrimeQuotient.Constructions.kernelPrime X (restrictedSupport f A hA) x (restrictedSupport_mem f A hA x hx)).asIdeal := |
| 93 | kernelPrime_map f (restrictedSupport f A hA) A (restrictedSupport_genericPoint f A hA) x |
| 94 | (restrictedSupport_mem f A hA x hx) hx |
| 95 | |
| 96 | end AlgebraicGeometry.CycleClass.Thom.Open.StalkSupport.Constructions.Restriction |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI |