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.ConstantSection.SectionRestriction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Sheaf.PresheafSectionRestriction |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ConstantSection.ComplexMap |
| 4 | |
| 5 | /-! # Complex Restriction -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ConstantSection.ComplexRestriction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Canonical section maps of complexes respect the actual geometric presheaf restriction maps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u v z |
| 16 | |
| 17 | variable {C D : Type u} [Category.{v} C] [Category.{v} D] |
| 18 | (F : C ⥤ D) (R : Type u) [CommRing R] |
| 19 | (J : GrothendieckTopology C) (K : GrothendieckTopology D) |
| 20 | [F.IsContinuous J K] [F.IsCocontinuous J K] |
| 21 | [HasSheafify J (ModuleCat.{u} R)] [HasSheafify K (ModuleCat.{u} R)] |
| 22 | [∀ P : Cᵒᵖ ⥤ ModuleCat.{u} R, F.op.HasPointwiseRightKanExtension P] |
| 23 | [HasExt.{max u z} (Sheaf J (ModuleCat.{u} R))] |
| 24 | [HasExt.{max u z} (Sheaf K (ModuleCat.{u} R))] |
| 25 | (M : CochainComplex (ModuleCat.{u} R) ℕ) |
| 26 | (N : CochainComplex (Sheaf K (ModuleCat.{u} R)) ℕ) |
| 27 | (a : ((constantSheaf K (ModuleCat.{u} R)).mapHomologicalComplex (.up ℕ)).obj M ⟶ N) |
| 28 | |
| 29 | def constantIso : (constantSheaf K (ModuleCat.{u} R)) ⋙ |
| 30 | F.sheafPushforwardContinuous (ModuleCat.{u} R) J K ≅ constantSheaf J (ModuleCat.{u} R) := |
| 31 | NatIso.ofComponents (fun L => SectionRestriction.constantIso F R J K L) (by |
| 32 | intro L L' φ |
| 33 | exact ((F.pushforwardContinuousSheafificationCompatibility (ModuleCat.{u} R) J K).symm.hom.naturality |
| 34 | ((Functor.const Dᵒᵖ).map φ))) |
| 35 | |
| 36 | def pulled : ((constantSheaf J (ModuleCat.{u} R)).mapHomologicalComplex (.up ℕ)).obj M ⟶ |
| 37 | (((F.sheafPushforwardContinuous (ModuleCat.{u} R) J K).mapHomologicalComplex (.up ℕ)).obj N) := |
| 38 | ((NatIso.mapHomologicalComplex (constantIso F R J K) (.up ℕ)).app M).inv ≫ |
| 39 | ((F.sheafPushforwardContinuous (ModuleCat.{u} R) J K).mapHomologicalComplex (.up ℕ)).map a |
| 40 | |
| 41 | def sectionMap : ComplexMap.source.{u, z} R M ⟶ |
| 42 | IntegralComparison.Sheaf.PresheafSectionComplex.complex.{u, v, u, z} R K N := |
| 43 | ComplexMap.map R K M N a ≫ (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso R K N).hom |
| 44 | |
| 45 | theorem naturality : sectionMap R K M N a ≫ IntegralComparison.Sheaf.PresheafSectionRestriction.complexMap F R J K N = |
| 46 | ComplexMap.map R J M _ (pulled F R J K M N a) ≫ |
| 47 | (IntegralComparison.Sheaf.PresheafSectionComplex.complexIso R J _).hom := by |
| 48 | apply HomologicalComplex.Hom.ext |
| 49 | funext n |
| 50 | apply ModuleCat.hom_ext |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | apply ULift.ext |
| 54 | apply NatTrans.ext |
| 55 | funext U |
| 56 | apply ModuleCat.hom_ext |
| 57 | apply LinearMap.ext |
| 58 | intro r |
| 59 | exact (SectionRestriction.coordinates F R J K (M.X n) (N.X n) (a.f n) x.down U r).symm |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ConstantSection.ComplexRestriction |