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.ProductDimension |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ClosedProjective |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Connected |
| 4 | |
| 5 | /-! # Product Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProductRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Restricting a product along an actual open and closed immersion |
| 14 | produces another smooth projective product presentation. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity |
| 21 | |
| 22 | variable {X X' Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (P : ProperCycleLinearity.ProductPresentation X Y) |
| 23 | (i : X'.toOver ⟶ X.toOver) [IsOpenImmersion i.left] [IsClosedImmersion i.left] |
| 24 | |
| 25 | def raw : Over Foundations.Scheme.ProjectiveSpace.complexBase := pullback P.fst i |
| 26 | |
| 27 | def inclusionRaw : raw P i ⟶ P.space.toOver := pullback.fst P.fst i |
| 28 | |
| 29 | def firstRaw : raw P i ⟶ X'.toOver := pullback.snd P.fst i |
| 30 | |
| 31 | def secondRaw : raw P i ⟶ Y.toOver := inclusionRaw P i ≫ P.snd |
| 32 | |
| 33 | omit [IsOpenImmersion i.left] [IsClosedImmersion i.left] in |
| 34 | theorem isPullback : IsPullback (inclusionRaw P i).left (firstRaw P i).left P.fst.left i.left := |
| 35 | (IsPullback.of_hasPullback P.fst i).map (Over.forget Foundations.Scheme.ProjectiveSpace.complexBase) |
| 36 | |
| 37 | instance inclusion_open : IsOpenImmersion (inclusionRaw P i).left := |
| 38 | MorphismProperty.of_isPullback (isPullback P i).flip (inferInstance : IsOpenImmersion i.left) |
| 39 | |
| 40 | instance inclusion_closed : IsClosedImmersion (inclusionRaw P i).left := |
| 41 | MorphismProperty.of_isPullback (isPullback P i).flip (inferInstance : IsClosedImmersion i.left) |
| 42 | |
| 43 | def space : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation where |
| 44 | carrier := (raw P i).left |
| 45 | structureMap := (raw P i).hom |
| 46 | projective := { |
| 47 | ambientDimension := P.space.ambientDimension |
| 48 | embedding := (inclusionRaw P i).left ≫ P.space.embedding |
| 49 | closedImmersion := by infer_instance |
| 50 | over_base := by |
| 51 | rw [Category.assoc, P.space.embedding_over] |
| 52 | exact (inclusionRaw P i).w } |
| 53 | smooth := by |
| 54 | have hs : Smooth ((inclusionRaw P i).left ≫ P.space.structureMap) := inferInstance |
| 55 | have hw : (inclusionRaw P i).left ≫ P.space.structureMap = (raw P i).hom := (inclusionRaw P i).w |
| 56 | exact hw ▸ hs |
| 57 | |
| 58 | def presentation : ProperCycleLinearity.ProductPresentation X' Y where |
| 59 | space := ProductRestriction.space P i |
| 60 | fst := firstRaw P i |
| 61 | snd := secondRaw P i |
| 62 | isLimit := BinaryFan.IsLimit.mk _ |
| 63 | (fun a b => pullback.lift (BinaryFan.IsLimit.lift P.isLimit (a ≫ i) b) a |
| 64 | (BinaryFan.IsLimit.lift_fst P.isLimit (a ≫ i) b)) |
| 65 | (fun a b => pullback.lift_snd _ _ _) |
| 66 | (fun a b => by |
| 67 | change pullback.lift _ _ _ ≫ (pullback.fst P.fst i ≫ P.snd) = b |
| 68 | rw [← Category.assoc, pullback.lift_fst] |
| 69 | exact BinaryFan.IsLimit.lift_snd P.isLimit (a ≫ i) b) |
| 70 | (fun a b u hu₁ hu₂ => by |
| 71 | apply pullback.hom_ext |
| 72 | · rw [pullback.lift_fst] |
| 73 | apply BinaryFan.IsLimit.hom_ext P.isLimit |
| 74 | · change u ≫ pullback.fst P.fst i ≫ P.fst = _ |
| 75 | rw [pullback.condition, ← Category.assoc] |
| 76 | exact (congrArg (fun z => z ≫ i) hu₁).trans |
| 77 | (BinaryFan.IsLimit.lift_fst P.isLimit (a ≫ i) b).symm |
| 78 | · exact hu₂.trans (BinaryFan.IsLimit.lift_snd P.isLimit (a ≫ i) b).symm |
| 79 | · rw [pullback.lift_snd] |
| 80 | exact hu₁) |
| 81 | |
| 82 | def inclusion : (presentation P i).space.toOver ⟶ P.space.toOver := inclusionRaw P i |
| 83 | |
| 84 | instance : IsOpenImmersion (inclusion P i).left := inclusion_open P i |
| 85 | instance : IsClosedImmersion (inclusion P i).left := inclusion_closed P i |
| 86 | |
| 87 | theorem first : inclusion P i ≫ P.fst = (presentation P i).fst ≫ i := pullback.condition |
| 88 | |
| 89 | theorem second : inclusion P i ≫ P.snd = (presentation P i).snd := rfl |
| 90 | |
| 91 | theorem graph {f' : X'.toOver ⟶ Y.toOver} {f : X.toOver ⟶ Y.toOver} (hf : i ≫ f = f') : |
| 92 | (presentation P i).graph f' ≫ inclusion P i = i ≫ P.graph f := by |
| 93 | apply BinaryFan.IsLimit.hom_ext P.isLimit |
| 94 | · change ((presentation P i).graph f' ≫ inclusion P i) ≫ P.fst = (i ≫ P.graph f) ≫ P.fst |
| 95 | rw [Category.assoc, first P i, ← Category.assoc, ProperCycleLinearity.ProductPresentation.graph_fst, Category.id_comp, |
| 96 | Category.assoc, ProperCycleLinearity.ProductPresentation.graph_fst, Category.comp_id] |
| 97 | · change ((presentation P i).graph f' ≫ inclusion P i) ≫ P.snd = (i ≫ P.graph f) ≫ P.snd |
| 98 | rw [Category.assoc, second P i, ProperCycleLinearity.ProductPresentation.graph_snd, Category.assoc, ProperCycleLinearity.ProductPresentation.graph_snd, hf] |
| 99 | |
| 100 | end |
| 101 | |
| 102 | /-! Restriction of the target factor of a product along an actual open |
| 103 | and closed immersion, with its canonical graph factorization. -/ |
| 104 | |
| 105 | set_option backward.isDefEq.respectTransparency false |
| 106 | |
| 107 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 108 | |
| 109 | namespace Target |
| 110 | |
| 111 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProperCycleLinearity |
| 112 | |
| 113 | def swap {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (P : ProperCycleLinearity.ProductPresentation X Y) : ProperCycleLinearity.ProductPresentation Y X where |
| 114 | space := P.space |
| 115 | fst := P.snd |
| 116 | snd := P.fst |
| 117 | isLimit := BinaryFan.isLimitFlip P.isLimit |
| 118 | |
| 119 | variable {X V Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} (P : ProperCycleLinearity.ProductPresentation X Y) |
| 120 | (i : V.toOver ⟶ Y.toOver) [IsOpenImmersion i.left] [IsClosedImmersion i.left] |
| 121 | |
| 122 | def presentation : ProperCycleLinearity.ProductPresentation X V := swap (ProductRestriction.presentation (swap P) i) |
| 123 | |
| 124 | def inclusion : (presentation P i).space.toOver ⟶ P.space.toOver := |
| 125 | ProductRestriction.inclusion (swap P) i |
| 126 | |
| 127 | instance : IsOpenImmersion (inclusion P i).left := inclusion_open (swap P) i |
| 128 | instance : IsClosedImmersion (inclusion P i).left := inclusion_closed (swap P) i |
| 129 | |
| 130 | theorem first : inclusion P i ≫ P.fst = (presentation P i).fst := rfl |
| 131 | |
| 132 | theorem second : inclusion P i ≫ P.snd = (presentation P i).snd ≫ i := |
| 133 | ProductRestriction.first (swap P) i |
| 134 | |
| 135 | theorem graph {f' : X.toOver ⟶ V.toOver} {f : X.toOver ⟶ Y.toOver} (hf : f' ≫ i = f) : |
| 136 | (presentation P i).graph f' ≫ inclusion P i = P.graph f := by |
| 137 | apply BinaryFan.IsLimit.hom_ext P.isLimit |
| 138 | · change ((presentation P i).graph f' ≫ inclusion P i) ≫ P.fst = P.graph f ≫ P.fst |
| 139 | rw [Category.assoc, first P i, ProperCycleLinearity.ProductPresentation.graph_fst, ProperCycleLinearity.ProductPresentation.graph_fst] |
| 140 | · change ((presentation P i).graph f' ≫ inclusion P i) ≫ P.snd = P.graph f ≫ P.snd |
| 141 | rw [Category.assoc, second P i, ← Category.assoc, ProperCycleLinearity.ProductPresentation.graph_snd, |
| 142 | ProperCycleLinearity.ProductPresentation.graph_snd, hf] |
| 143 | |
| 144 | end Target |
| 145 | |
| 146 | end |
| 147 | |
| 148 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ProductRestriction |