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.NumberTheory.PadicHodge.IntegralComparison.Principal.SinglePresheafCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.SingleGlobalCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.Presheaf |
| 4 | |
| 5 | /-! # Single Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.SingleCoordinates.Reference |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual original-cover transfer on a module in one degree |
| 12 | retains the original principal and native global single-coordinate |
| 13 | isomorphisms. Its coefficient map is the literal unshifted comparison. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | |
| 19 | private theorem isIso_of_square {C : Type*} [Category* C] |
| 20 | {A B A' B' : C} (a : A ⟶ B) (b : A' ⟶ B') (e : A ≅ A') (f : B ≅ B') |
| 21 | [IsIso a] (h : a ≫ f.hom = e.hom ≫ b) : IsIso b := by |
| 22 | have hb : b = e.inv ≫ a ≫ f.hom := by rw [h, Iso.inv_hom_id_assoc] |
| 23 | rw [hb] |
| 24 | infer_instance |
| 25 | |
| 26 | private theorem paste {Cat : Type*} [Category Cat] {A B C D E F G : Cat} |
| 27 | {lo : A ⟶ B} {ct : B ⟶ D} {oc : A ⟶ C} {ch : C ⟶ D} |
| 28 | {ls : B ⟶ E} {ts : D ⟶ F} {cc : E ⟶ F} {cf : F ⟶ G} {ng : C ⟶ G} |
| 29 | (hn : lo ≫ ct = oc ≫ ch) (hs : ct ≫ ts = ls ≫ cc) |
| 30 | (hg : ch ≫ ts ≫ cf = ng) : |
| 31 | oc ≫ ng = (lo ≫ ls) ≫ (cc ≫ cf) := by |
| 32 | rw [← hg, ← Category.assoc oc ch, ← hn] |
| 33 | simp only [Category.assoc] |
| 34 | rw [← Category.assoc ct ts, hs] |
| 35 | simp only [Category.assoc] |
| 36 | |
| 37 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.RelativeConcentration |
| 38 | variable {X Z : Scheme.{u}} [X.IsSeparated] (U : X.Opens) (hU : IsAffineOpen U) |
| 39 | {ι κ ν : Type u} [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] |
| 40 | (W : ι → Principal.SectionPresheaf.Index U) (f : Z ⟶ X) [IsClosedImmersion f] (hfU : ⊤ ≤ f ⁻¹ᵁ U) |
| 41 | (J : ν → X.Opens) |
| 42 | (r : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk ι (Principal.RelativeConcentration.family U hU W)) |
| 43 | (s : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk |
| 44 | (ComplementaryAffineCover.Index (SectionIdealPuncturedCover.outside f.ker)) |
| 45 | (ComplementaryAffineCover.opens (SectionIdealPuncturedCover.outside f.ker))) |
| 46 | (V : κ → X.Opens) (hV : iSup V = ⊤) (haV : ∀ i, IsAffineOpen (V i)) |
| 47 | (N : X.Modules) [N.IsQuasicoherent] (c g q : ℕ) (hq : q=g+c) |
| 48 | |
| 49 | local instance single_qc (n : ℕ) : |
| 50 | ((Reference.SinglePresheafCoordinates.moduleSingle N c).X n).IsQuasicoherent := |
| 51 | QuasicoherentTruncation.single N c n |
| 52 | |
| 53 | private abbrev complement := |
| 54 | ComplementaryAffineCover.opens (SectionIdealPuncturedCover.outside f.ker) |
| 55 | private abbrev common := PointComplementGlobalCover.common f (Principal.RelativeConcentration.ambient U hU) V |
| 56 | private abbrev left := PointComplementGlobalCover.left f (Principal.RelativeConcentration.ambient U hU) V |
| 57 | private abbrev right := PointComplementGlobalCover.right f (Principal.RelativeConcentration.ambient U hU) V |
| 58 | |
| 59 | private def relativeChangeIso {τ : Type u} [LinearOrder τ] (A : τ → X.Opens) := |
| 60 | homologyMapIso (HomologicalComplex₂.total.mapIso |
| 61 | (((RelativeCech.Total.localFunctor (Principal.RelativeConcentration.ambient U hU) A).mapHomologicalComplex (.up ℕ)).mapIso |
| 62 | (Reference.SinglePresheafCoordinates.iso N c)) (.up ℕ)) q |
| 63 | |
| 64 | variable [IsIso (RelativeCech.Refinement.homology (Principal.RelativeConcentration.ambient U hU) (complement f) J s |
| 65 | (Relative.AdditiveCechConcentration.coefficients |
| 66 | (Reference.SinglePresheafCoordinates.moduleSingle N c)) q)] |
| 67 | |
| 68 | omit [X.IsSeparated] [IsClosedImmersion f] [N.IsQuasicoherent] in |
| 69 | private theorem relative_isIso : |
| 70 | IsIso (RelativeCech.Refinement.homology (Principal.RelativeConcentration.ambient U hU) (complement f) J s |
| 71 | ((single (X.Opensᵒᵖ ⥤ AddCommGrpCat.{u}) (.up ℕ) c).obj |
| 72 | (Reference.SinglePresheafCoordinates.presheaf N)) q) := |
| 73 | isIso_of_square _ _ (relativeChangeIso U hU N c q (complement f)) |
| 74 | (relativeChangeIso U hU N c q J) |
| 75 | (RelativeCech.Refinement.homology_naturality (Principal.RelativeConcentration.ambient U hU) (complement f) J s |
| 76 | (Reference.SinglePresheafCoordinates.iso N c).hom q).symm |
| 77 | |
| 78 | include hfU hV haV in |
| 79 | private theorem old_global_isIso : |
| 80 | IsIso (homologyMap (OrderedCech.Refinement.totalMap V (common U hU f V) (right U hU f V) |
| 81 | (Relative.AdditiveCechConcentration.coefficients |
| 82 | (Reference.SinglePresheafCoordinates.moduleSingle N c))) q) := |
| 83 | Additive.OrderedCoverRefinement.homology_isIso V (common U hU f V) (right U hU f V) hV |
| 84 | (PointComplementGlobalCover.common_covers f (Principal.RelativeConcentration.ambient U hU) |
| 85 | (CoverTransfer.Reference.contains U hU f hfU) V hV) |
| 86 | haV (PointComplementGlobalCover.common_affine f (Principal.RelativeConcentration.ambient U hU) |
| 87 | (Principal.RelativeConcentration.ambient_affine U hU) V haV) (Reference.SinglePresheafCoordinates.moduleSingle N c) q |
| 88 | |
| 89 | include hfU hV haV in |
| 90 | private theorem global_isIso : |
| 91 | IsIso (homologyMap (OrderedCech.Refinement.totalMap V (common U hU f V) (right U hU f V) |
| 92 | ((single (X.Opensᵒᵖ ⥤ AddCommGrpCat.{u}) (.up ℕ) c).obj |
| 93 | (Reference.SinglePresheafCoordinates.presheaf N))) q) := by |
| 94 | let := old_global_isIso U hU f hfU V hV haV N c q |
| 95 | exact isIso_of_square _ _ |
| 96 | (homologyMapIso (Reference.SingleGlobalCoordinates.changeIso V N c) q) |
| 97 | (homologyMapIso (Reference.SingleGlobalCoordinates.changeIso (common U hU f V) N c) q) |
| 98 | (Presheaf.OrderedCover.Comparison.homology_naturality V (common U hU f V) (right U hU f V) |
| 99 | (Reference.SinglePresheafCoordinates.iso N c).hom q).symm |
| 100 | |
| 101 | def coefficientComparison := by |
| 102 | letI := relative_isIso U hU f J s N c q |
| 103 | letI := global_isIso U hU f hfU V hV haV N c q |
| 104 | exact Principal.PresheafSingleIndexedCoordinates.coefficientComparison |
| 105 | (Reference.SinglePresheafCoordinates.presheaf N) c g |
| 106 | (Principal.AdditiveSections.opens U hU) W (complement f) J r s |
| 107 | V (common U hU f V) (left U hU f V) (right U hU f V) q hq ≫ |
| 108 | (IntrinsicOrdered.SingleAdditiveCoordinates.Intrinsic.coefficientIso (𝟙 X) V N g).inv |
| 109 | |
| 110 | theorem comparison : |
| 111 | CoverTransfer.Reference.comparison U hU W f hfU J r s V hV haV |
| 112 | (K := Reference.SinglePresheafCoordinates.moduleSingle N c) q ≫ |
| 113 | (IntrinsicOrdered.CechAdditiveCoordinates.Intrinsic.homologyIso (𝟙 X) V |
| 114 | (Reference.SinglePresheafCoordinates.moduleSingle N c) q).inv ≫ |
| 115 | (Global.PureIndexedCoordinates.singleIso (𝟙 X) V N c g q hq).hom = |
| 116 | (Principal.SinglePresheafCoordinates.coordinates U hU N c W g q hq).hom ≫ |
| 117 | coefficientComparison U hU W f hfU J r s V hV haV N c g q hq := by |
| 118 | let := relative_isIso U hU f J s N c q |
| 119 | let := global_isIso U hU f hfU V hV haV N c q |
| 120 | have hn := Presheaf.ReferenceComparison.naturality U hU W f hfU J r s V hV haV |
| 121 | (Reference.SinglePresheafCoordinates.moduleSingle N c) q |
| 122 | ((single (X.Opensᵒᵖ ⥤ AddCommGrpCat.{u}) (.up ℕ) c).obj |
| 123 | (Reference.SinglePresheafCoordinates.presheaf N)) |
| 124 | (Reference.SinglePresheafCoordinates.iso N c).hom |
| 125 | rw [← Category.assoc, Principal.SinglePresheafCoordinates.factor] at hn |
| 126 | exact paste hn |
| 127 | (Principal.PresheafSingleIndexedCoordinates.comparison |
| 128 | (Reference.SinglePresheafCoordinates.presheaf N) c g |
| 129 | (Principal.AdditiveSections.opens U hU) W (complement f) J r s |
| 130 | V (common U hU f V) (left U hU f V) (right U hU f V) q hq) |
| 131 | (Reference.SingleGlobalCoordinates.inverse (𝟙 X) V N c g q hq) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalReference.SingleCoordinates.Reference |