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.Support.Stalk |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.KernelSquare |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Etale.StalkProperties |
| 4 | |
| 5 | /-! # Module Square -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.ModuleSquare |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Local support modules transport through an actual isomorphism |
| 14 | of reduced supports over an ambient morphism. -/ |
| 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 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 22 | |
| 23 | variable {X Y : Scheme} (f : X ⟶ Y) (A : IrreducibleCloseds X) (B : IrreducibleCloseds Y) |
| 24 | (g : CycleClass.Geometric.GenericPoint.reducedSupportScheme A ⟶ CycleClass.Geometric.GenericPoint.reducedSupportScheme B) |
| 25 | (h : CycleClass.Geometric.GenericPoint.reducedSupportι A ≫ f = g ≫ CycleClass.Geometric.GenericPoint.reducedSupportι B) |
| 26 | (x : X) (hxA : x ∈ (A : Set X)) (hxB : f x ∈ (B : Set Y)) |
| 27 | |
| 28 | include h in |
| 29 | theorem point : g (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) = CycleClass.Thom.IntersectionGeometry.supportPreimage B (f x) hxB := by |
| 30 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι B).isClosedEmbedding.injective |
| 31 | exact (congrArg (fun k : CycleClass.Geometric.GenericPoint.reducedSupportScheme A ⟶ Y => k (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA)) h).symm.trans |
| 32 | ((congrArg f (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec A x hxA)).trans (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec B (f x) hxB).symm) |
| 33 | |
| 34 | def map : (CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage B (f x) hxB) ⟶ |
| 35 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme A).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) := |
| 36 | eqToHom (congrArg (fun y => (CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk y) |
| 37 | (point f A B g h x hxA hxB).symm) ≫ g.stalkMap (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) |
| 38 | |
| 39 | instance [IsIso g] : IsIso (map f A B g h x hxA hxB) := by unfold map; infer_instance |
| 40 | |
| 41 | theorem square : Local.Principal.supportStalkMap Y B (f x) hxB ≫ map f A B g h x hxA hxB = |
| 42 | f.stalkMap x ≫ Local.Principal.supportStalkMap X A x hxA := by |
| 43 | have aux (a : CycleClass.Geometric.GenericPoint.reducedSupportScheme A) (b : CycleClass.Geometric.GenericPoint.reducedSupportScheme B) (z : X) |
| 44 | (ha : CycleClass.Geometric.GenericPoint.reducedSupportι A a = z) (hb : g a = b) (hc : CycleClass.Geometric.GenericPoint.reducedSupportι B b = f z) : |
| 45 | (eqToHom (congrArg (fun y => Y.presheaf.stalk y) hc.symm) ≫ (CycleClass.Geometric.GenericPoint.reducedSupportι B).stalkMap b) ≫ |
| 46 | (eqToHom (congrArg (fun y => (CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk y) hb.symm) ≫ g.stalkMap a) = |
| 47 | f.stalkMap z ≫ (eqToHom (congrArg (fun z => X.presheaf.stalk z) ha.symm) ≫ |
| 48 | (CycleClass.Geometric.GenericPoint.reducedSupportι A).stalkMap a) := by |
| 49 | subst z |
| 50 | subst b |
| 51 | simpa only [eqToHom_refl, Category.id_comp, Stalk.KernelSquare.map] using |
| 52 | Stalk.KernelSquare.square f (CycleClass.Geometric.GenericPoint.reducedSupportι B) g (CycleClass.Geometric.GenericPoint.reducedSupportι A) h a |
| 53 | exact aux (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) (CycleClass.Thom.IntersectionGeometry.supportPreimage B (f x) hxB) x |
| 54 | (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec A x hxA) (point f A B g h x hxA hxB) (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec B (f x) hxB) |
| 55 | |
| 56 | def equiv [IsIso g] : |
| 57 | CycleClass.Thom.IntersectionGeometry.localSupportModule Y B (f x) hxB ≃ₗ[Y.presheaf.stalk (f x)] |
| 58 | (ModuleCat.restrictScalars (f.stalkMap x).hom).obj (CycleClass.Thom.IntersectionGeometry.localSupportModule X A x hxA) := by |
| 59 | let e := (asIso (map f A B g h x hxA hxB)).commRingCatIsoToRingEquiv |
| 60 | exact |
| 61 | { e.toAddEquiv with |
| 62 | map_smul' := by |
| 63 | intro r t |
| 64 | change e (Local.Principal.supportStalkMap Y B (f x) hxB r * |
| 65 | (show (CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage B (f x) hxB) from t)) = |
| 66 | Local.Principal.supportStalkMap X A x hxA (f.stalkMap x r) * e t |
| 67 | rw [map_mul] |
| 68 | congr 1 |
| 69 | exact congrArg (fun k : Y.presheaf.stalk (f x) ⟶ |
| 70 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme A).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) => k r) |
| 71 | (square f A B g h x hxA hxB) } |
| 72 | |
| 73 | end |
| 74 | |
| 75 | /-! The actual local ring map in a commuting support square |
| 76 | inherits the etale properties of an open support neighborhood. -/ |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false |
| 79 | set_option backward.isDefEq.respectTransparency.types false |
| 80 | |
| 81 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 82 | |
| 83 | namespace Stalk |
| 84 | |
| 85 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.ModuleSquare |
| 86 | |
| 87 | variable {X Y : Scheme} (f : X ⟶ Y) (A : IrreducibleCloseds X) (B : IrreducibleCloseds Y) |
| 88 | (g : CycleClass.Geometric.GenericPoint.reducedSupportScheme A ⟶ CycleClass.Geometric.GenericPoint.reducedSupportScheme B) |
| 89 | (h : CycleClass.Geometric.GenericPoint.reducedSupportι A ≫ f = g ≫ CycleClass.Geometric.GenericPoint.reducedSupportι B) |
| 90 | (x : X) (hxA : x ∈ (A : Set X)) (hxB : f x ∈ (B : Set Y)) |
| 91 | |
| 92 | theorem localHom : IsLocalHom (map f A B g h x hxA hxB).hom := by |
| 93 | let a := CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA |
| 94 | let e := eqToHom (congrArg (fun y => (CycleClass.Geometric.GenericPoint.reducedSupportScheme B).presheaf.stalk y) |
| 95 | (point f A B g h x hxA hxB).symm) |
| 96 | let : IsLocalHom e.hom := IsLocalHom.of_surjective _ (ConcreteCategory.bijective_of_isIso e).surjective |
| 97 | let : IsLocalHom (g.stalkMap a).hom := g.toLRSHom.prop a |
| 98 | change IsLocalHom ((g.stalkMap a).hom.comp e.hom) |
| 99 | infer_instance |
| 100 | |
| 101 | theorem properties (U : (CycleClass.Geometric.GenericPoint.reducedSupportScheme A).Opens) [Etale (U.ι ≫ g)] |
| 102 | (hxU : CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA ∈ U) : |
| 103 | (map f A B g h x hxA hxB).hom.Flat ∧ (map f A B g h x hxA hxB).hom.FormallyUnramified ∧ |
| 104 | (map f A B g h x hxA hxB).hom.EssFiniteType := by |
| 105 | have H := ProjectionFormula.Etale.StalkProperties.of_open g U (CycleClass.Thom.IntersectionGeometry.supportPreimage A x hxA) hxU |
| 106 | unfold map |
| 107 | exact ⟨(RingHom.Flat.respectsIso.cancel_left_isIso _ _).mpr H.1, |
| 108 | (RingHom.FormallyUnramified.respectsIso.cancel_left_isIso _ _).mpr H.2.1, |
| 109 | (RingHom.EssFiniteType.respectsIso.cancel_left_isIso _ _).mpr H.2.2⟩ |
| 110 | |
| 111 | end Stalk |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.ModuleSquare |