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.AugmentedCech.SingleCoefficientCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Functor.MappedSingleCoordinates |
| 4 | |
| 5 | /-! # Single Module Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SingleModuleCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original principal single coordinates factor through the actual |
| 12 | single map of the principal module functor, scalar restriction, and the |
| 13 | original augmented single-total coordinates. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 19 | (N : X.Modules) (c : ℕ) {ι : Type u} [LinearOrder ι] |
| 20 | (W : ι → SectionPresheaf.Index U) |
| 21 | |
| 22 | local instance finiteBiproducts : HasFiniteBiproducts (ModuleCat.{u} Γ(X, U)) := |
| 23 | Abelian.hasFiniteBiproducts |
| 24 | |
| 25 | abbrev moduleFunctor := ModuleFunctor.functor U hU |
| 26 | abbrev additiveFunctor := AdditiveSections.additiveFunctor U hU |
| 27 | abbrev forgetScalars := AdditiveSections.forgetScalars U |
| 28 | |
| 29 | def coefficientIso (g : ℕ) := |
| 30 | AugmentedCech.SingleCoefficientCoordinates.coefficientIso W |
| 31 | (moduleFunctor U hU) (forgetScalars U) N g ≪≫ |
| 32 | homologyMapIso ((AugmentedOrdered.CechFunctor.functor W).mapIso |
| 33 | ((AdditiveSections.functorIso U hU).app N)) g |
| 34 | |
| 35 | abbrev singleMap := HomologicalComplex₂.total.map |
| 36 | (((AugmentedOrdered.CechFunctor.functor W).mapHomologicalComplex (.up ℕ)).map |
| 37 | ((singleMapHomologicalComplex (moduleFunctor U hU) (.up ℕ) c).hom.app N)) (.up ℕ) |
| 38 | |
| 39 | def moduleCoordinates (g q : ℕ) (hq : q = g+c) := |
| 40 | eqToIso (congrArg (fun j => |
| 41 | ((IntegralComparison.Functor.SingleTotal.bicomplex (AugmentedOrdered.CechFunctor.functor W) |
| 42 | ((moduleFunctor U hU).obj N) c).total (.up ℕ)).homology j) hq) ≪≫ |
| 43 | IntegralComparison.Functor.SingleTotal.homologyIso (AugmentedOrdered.CechFunctor.functor W) |
| 44 | ((moduleFunctor U hU).obj N) c g |
| 45 | |
| 46 | private theorem original (g : ℕ) : |
| 47 | (SinglePresheafCoordinates.coordinates U hU N c W g (g+c) rfl).hom = |
| 48 | (AdditiveSections.homologyIso U hU |
| 49 | ((single X.Modules (.up ℕ) c).obj N) W (g+c)).hom ≫ |
| 50 | (IntegralComparison.Functor.SingleTotal.homologyIso |
| 51 | (additiveFunctor U hU ⋙ AugmentedOrdered.CechFunctor.functor W) N c g).hom := by |
| 52 | simp only [SinglePresheafCoordinates.coordinates, |
| 53 | PresheafSingleIndexedCoordinates.sourceIso, |
| 54 | eqToIso_refl, Iso.refl_trans, Iso.trans_hom] |
| 55 | rw [← SinglePresheafCoordinates.factor, Category.assoc] |
| 56 | congr 1 |
| 57 | exact Reference.SinglePresheafCoordinates.coordinates N c |
| 58 | (Cech.SingleFunctorCoordinates.localFunctor |
| 59 | (AdditiveSections.opens U hU) W) g |
| 60 | |
| 61 | private theorem scalar_coordinates (g : ℕ) : |
| 62 | (AdditiveSections.homologyIso U hU |
| 63 | ((single X.Modules (.up ℕ) c).obj N) W (g+c)).hom ≫ |
| 64 | (IntegralComparison.Functor.SingleTotal.homologyIso |
| 65 | (additiveFunctor U hU ⋙ AugmentedOrdered.CechFunctor.functor W) N c g).hom = |
| 66 | (forgetScalars U).map (IntegralComparison.Functor.SingleTotal.homologyIso |
| 67 | (moduleFunctor U hU ⋙ AugmentedOrdered.CechFunctor.functor W) N c g).hom ≫ |
| 68 | (coefficientIso U hU N W g).hom := by |
| 69 | let H := AugmentedCech.SingleCoefficientCoordinates.targetFunctor W |
| 70 | (moduleFunctor U hU) (forgetScalars U) |
| 71 | let K := additiveFunctor U hU ⋙ AugmentedOrdered.CechFunctor.functor W |
| 72 | let e : H ≅ K := Functor.isoWhiskerRight |
| 73 | (AdditiveSections.functorIso U hU) (AugmentedOrdered.CechFunctor.functor W) |
| 74 | have he := IntegralComparison.Functor.SingleMapCoordinates.naturality H K e.hom N c g |
| 75 | simp only [AdditiveSections.homologyIso, |
| 76 | AdditiveSections.totalIso, Iso.trans_hom, |
| 77 | homologyMapIso_hom, homologyMap_comp, Category.assoc] |
| 78 | erw [he] |
| 79 | change (AugmentedCech.CoefficientTotal.homologyIso W (forgetScalars U) |
| 80 | (((moduleFunctor U hU).mapHomologicalComplex (.up ℕ)).obj |
| 81 | ((single X.Modules (.up ℕ) c).obj N)) (g+c)).hom ≫ |
| 82 | (IntegralComparison.Functor.SingleTotal.homologyIso H N c g).hom ≫ |
| 83 | homologyMap (e.hom.app N) g = _ |
| 84 | erw [← Category.assoc, |
| 85 | AugmentedCech.SingleCoefficientCoordinates.comparison W (moduleFunctor U hU) |
| 86 | (forgetScalars U) N c g, Category.assoc] |
| 87 | |
| 88 | theorem factor (g q : ℕ) (hq : q = g+c) : |
| 89 | (SinglePresheafCoordinates.coordinates U hU N c W g q hq).hom = |
| 90 | (forgetScalars U).map (homologyMap (singleMap U hU N c W) q) ≫ |
| 91 | (forgetScalars U).map (moduleCoordinates U hU N c W g q hq).hom ≫ |
| 92 | (coefficientIso U hU N W g).hom := by |
| 93 | subst q |
| 94 | rw [original, scalar_coordinates] |
| 95 | simp only [moduleCoordinates, eqToIso_refl, Iso.refl_trans] |
| 96 | rw [← Category.assoc, ← Functor.map_comp] |
| 97 | congr 1 |
| 98 | exact congrArg (fun a => (forgetScalars U).map a) |
| 99 | (IntegralComparison.Functor.MappedSingleCoordinates.comparison (moduleFunctor U hU) |
| 100 | (AugmentedOrdered.CechFunctor.functor W) N c g).symm |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SingleModuleCoordinates |