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.Affine.SingleCechRefinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.CoefficientQuasiIso |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Presheaf.CoverCoefficients |
| 4 | |
| 5 | /-! # Resolution Cech Refinement -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionCechRefinement |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The chosen resolution inherits the actual affine refinement |
| 12 | isomorphisms through its original augmentation. Integer coefficient |
| 13 | coordinates are reflected through the genuine forgetful equivalence. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | private theorem square_isIso {D : Type*} [Category D] {A B C E : D} |
| 19 | (a : A ⟶ B) (b : C ⟶ E) (e : A ⟶ C) (f : B ⟶ E) |
| 20 | [IsIso a] [IsIso e] [IsIso f] (h : e ≫ b = a ≫ f) : IsIso b := by |
| 21 | have hb : b = inv e ≫ a ≫ f := by |
| 22 | apply (cancel_epi e).mp |
| 23 | simpa only [Category.assoc, IsIso.hom_inv_id_assoc] using h |
| 24 | rw [hb] |
| 25 | infer_instance |
| 26 | |
| 27 | private theorem reflect_square {D E : Type*} [Category D] [Category E] |
| 28 | (G : D ⥤ E) [G.ReflectsIsomorphisms] {A B : D} {C F : E} |
| 29 | (eA : G.obj A ≅ C) (eB : G.obj B ≅ F) |
| 30 | (a : A ⟶ B) (b : C ⟶ F) [IsIso b] |
| 31 | (h : G.map a ≫ eB.hom = eA.hom ≫ b) : IsIso a := by |
| 32 | have ha : G.map a = eA.hom ≫ b ≫ eB.inv := by |
| 33 | apply (cancel_mono eB.hom).mp |
| 34 | simpa only [Category.assoc, Iso.inv_hom_id, Category.comp_id] using h |
| 35 | let : IsIso (G.map a) := by rw [ha]; infer_instance |
| 36 | exact isIso_of_reflects_iso a G |
| 37 | |
| 38 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.OrderedInjective.Comparison OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.InjectiveIntegerCoordinates |
| 39 | variable {X : Scheme.{0}} [X.IsSeparated] |
| 40 | (A : X.Opens) (hA : IsAffineOpen A) |
| 41 | {ι κ : Type} [LinearOrder ι] [LinearOrder κ] |
| 42 | (U : ι → X.Opens) (V : κ → X.Opens) |
| 43 | (r : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 44 | (O : X.Opens) |
| 45 | (hU : iSup (fun j => A ⊓ U j) = O) (hV : iSup (fun j => A ⊓ V j) = O) |
| 46 | (haU : ∀ j, IsAffineOpen (U j)) (haV : ∀ j, IsAffineOpen (V j)) |
| 47 | (N : X.Modules) [N.IsQuasicoherent] (c : ℕ) |
| 48 | |
| 49 | include hA haU in |
| 50 | theorem relative_augmentation : |
| 51 | QuasiIso (RelativeCech.Total.sourceMap A U (OrderedInjective.Comparison.augmentation N c)) := by |
| 52 | change QuasiIso (AugmentedOrdered.CechForgetNaturality.map U |
| 53 | (((RelativeCech.Refinement.restriction A).mapHomologicalComplex (.up ℕ)).map |
| 54 | (OrderedInjective.Comparison.augmentation N c))) |
| 55 | apply Additive.AugmentedCechQuasiIso.quasiIso_of_evaluation |
| 56 | intro p a |
| 57 | change QuasiIso (((Acyclic.OpenInjectiveResolution.sections |
| 58 | (A ⊓ (AugmentedOrdered.Cech.formal U p).obj a)).mapHomologicalComplex (.up ℕ)).map |
| 59 | (ShiftedOpenInjectiveResolution.augmentation |
| 60 | (AffinePrincipal.Injective.Comparison.sheaf N) c)) |
| 61 | exact ShiftedOpenInjectiveResolution.sections_quasiIso |
| 62 | (AffinePrincipal.Injective.Comparison.sheaf N) c _ |
| 63 | (fun q => AffinePrincipal.Injective.Comparison.affine_acyclic N _ |
| 64 | (RelativeCech.CoefficientQuasiIso.intersection_affine A hA U haU p a) q) |
| 65 | |
| 66 | include hA O hU hV haU haV in |
| 67 | theorem relative_target (q : ℕ) : |
| 68 | IsIso (RelativeCech.Refinement.homology A U V r (OrderedInjective.Comparison.targetPresheaf N c) q) := by |
| 69 | let := SingleCechRefinement.relative A hA U V r O hU hV haU haV N c q |
| 70 | let := relative_augmentation A hA U haU N c |
| 71 | let := relative_augmentation A hA V haV N c |
| 72 | exact square_isIso _ _ _ _ |
| 73 | (RelativeCech.Refinement.homology_naturality A U V r (OrderedInjective.Comparison.augmentation N c) q) |
| 74 | |
| 75 | include haU haV in |
| 76 | theorem ordered_target (hUt : iSup U = ⊤) (hVt : iSup V = ⊤) (q : ℕ) : |
| 77 | IsIso (homologyMap (OrderedCech.Refinement.totalMap U V r (OrderedInjective.Comparison.targetPresheaf N c)) q) := by |
| 78 | let := SingleCechRefinement.ordered U V r haU haV N c hUt hVt q |
| 79 | let : QuasiIso ((Presheaf.OrderedCover.Comparison.totalFunctor U).map |
| 80 | (OrderedInjective.Comparison.augmentation N c)) := OrderedInjective.Comparison.quasiIso N c U haU |
| 81 | let : QuasiIso ((Presheaf.OrderedCover.Comparison.totalFunctor V).map |
| 82 | (OrderedInjective.Comparison.augmentation N c)) := OrderedInjective.Comparison.quasiIso N c V haV |
| 83 | exact square_isIso _ _ _ _ |
| 84 | (Presheaf.OrderedCover.Comparison.homology_naturality U V r (OrderedInjective.Comparison.augmentation N c) q) |
| 85 | |
| 86 | include hA O hU hV haU haV in |
| 87 | theorem relative_integer (q : ℕ) : |
| 88 | IsIso (RelativeCech.Refinement.homology A U V r (OrderedInjective.Comparison.integerPresheaf N c) q) := by |
| 89 | let : IsIso (RelativeCech.Refinement.homology A U V r |
| 90 | (Principal.CoefficientHomology.mapped Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c)) q) := |
| 91 | relative_target A hA U V r O hU hV haU haV N c q |
| 92 | exact reflect_square Principal.InjectiveIntegerCoordinates.forget |
| 93 | (Principal.CoefficientHomology.relativeIso Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) A U q) |
| 94 | (Principal.CoefficientHomology.relativeIso Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) A V q) |
| 95 | _ _ (Principal.CoefficientHomology.refinement Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) A U V r q) |
| 96 | |
| 97 | include haU haV in |
| 98 | theorem ordered_integer (hUt : iSup U = ⊤) (hVt : iSup V = ⊤) (q : ℕ) : |
| 99 | IsIso (homologyMap (OrderedCech.Refinement.totalMap U V r (OrderedInjective.Comparison.integerPresheaf N c)) q) := by |
| 100 | let : IsIso (homologyMap (OrderedCech.Refinement.totalMap U V r |
| 101 | (Principal.CoefficientHomology.mapped Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c))) q) := |
| 102 | ordered_target U V r haU haV N c hUt hVt q |
| 103 | exact reflect_square Principal.InjectiveIntegerCoordinates.forget |
| 104 | (OrderedCech.CoefficientTotal.homologyIso U Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) q) |
| 105 | (OrderedCech.CoefficientTotal.homologyIso V Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) q) |
| 106 | _ _ (Cech.RefinementCoefficientTotal.OrderedCechRefinementCoefficients.homology_natural U V r Principal.InjectiveIntegerCoordinates.forget (OrderedInjective.Comparison.integerPresheaf N c) q) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionCechRefinement |