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.ClosedInternalHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.PresheafTrace |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 4 | |
| 5 | /-! # Finite Etale Trace Coordinates -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleTraceCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original ambient principal Hom diagram has finite-etale trace |
| 12 | tensor coordinates over the actual closed-scheme section ring. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 19 | variable {Y X Z : Scheme.{u}} (f : Y ⟶ X) [IsFinite f] |
| 20 | (i : X ⟶ Z) [IsClosedImmersion i] (U : Z.Opens) (hU : IsAffineOpen U) |
| 21 | (N : X.Modules) |
| 22 | private abbrev ambientRing := Γ(Z, U) |
| 23 | private abbrev scalarRestriction := ModuleCat.restrictScalars (i.app U).hom |
| 24 | private abbrev coefficientModule := |
| 25 | (Scheme.Modules.pushforward f).obj (SheafOfModules.unit Y.ringCatSheaf) |
| 26 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleTraceCoordinates.ambientRing U |
| 27 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U |
| 28 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U |
| 29 | local notation "C" => (OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf.Index U)ᵒᵖ |
| 30 | local notation "P" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedScalars.modules i U hU N |
| 31 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleTraceCoordinates.scalarRestriction i U |
| 32 | local notation "M" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleTraceCoordinates.coefficientModule f |
| 33 | local instance coefficientStructure : |
| 34 | Algebra (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) := IntegralComparison.Finite.FlatCoefficientSections.coefficientAlgebra f i U |
| 35 | local instance coefficient_qc : (M).IsQuasicoherent := by |
| 36 | let : (SheafOfModules.unit Y.ringCatSheaf).IsQuasicoherent := |
| 37 | AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 38 | exact AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom f |
| 39 | |
| 40 | variable [hfree : Module.Free (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U)] |
| 41 | [hfinite : Module.Finite (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U)] |
| 42 | [hetale : Algebra.Etale (IntegralComparison.Finite.FlatCoefficientSections.quotientRing i U) (IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U)] |
| 43 | |
| 44 | def forget : (C ⥤ ModuleCat.{u} Q) ⥤ (C ⥤ ModuleCat.{u} A) := |
| 45 | (Functor.whiskeringRight C (ModuleCat.{u} Q) (ModuleCat.{u} A)).obj G |
| 46 | |
| 47 | include hfree hfinite hetale in |
| 48 | def iso : SectionPresheaf.modules U hU |
| 49 | (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule ((Scheme.Modules.pushforward i).obj M) |
| 50 | ((Scheme.Modules.pushforward i).obj N)) ≅ |
| 51 | FiniteEtale.PresheafTrace.tensor Q B P ⋙ G := |
| 52 | ClosedInternalHom.iso i U hU M N ≪≫ |
| 53 | (forget i U).mapIso (FiniteEtale.PresheafTrace.duality Q B P).symm |
| 54 | |
| 55 | include hfree hfinite hetale in |
| 56 | theorem pairing (x : IntegralComparison.Finite.FlatCoefficientSections.coefficientRing f i U) : |
| 57 | (iso f i U hU N).hom ≫ |
| 58 | (forget i U).map (FiniteEtale.PresheafTrace.pairing Q B P x) ≫ |
| 59 | (ClosedScalars.restrictionIso i U hU N).hom = |
| 60 | HomEvaluation.map U hU ((Scheme.Modules.pushforward i).obj M) |
| 61 | ((Scheme.Modules.pushforward i).obj N) x := by |
| 62 | calc |
| 63 | _ = (ClosedInternalHom.iso i U hU M N).hom ≫ |
| 64 | (forget i U).map ((FiniteEtale.PresheafTrace.duality Q B P).inv ≫ |
| 65 | FiniteEtale.PresheafTrace.pairing Q B P x) ≫ |
| 66 | (ClosedScalars.restrictionIso i U hU N).hom := by |
| 67 | simp only [iso, Iso.trans_hom, Functor.mapIso_hom, Iso.symm_hom, |
| 68 | Functor.map_comp, Category.assoc] |
| 69 | _ = (ClosedInternalHom.iso i U hU M N).hom ≫ |
| 70 | (forget i U).map (HomPresheafDualFrame.evaluation Q P (ModuleCat.of Q B) x) ≫ |
| 71 | (ClosedScalars.restrictionIso i U hU N).hom := by |
| 72 | rw [FiniteEtale.PresheafTrace.pairing, Iso.inv_hom_id_assoc] |
| 73 | _ = _ := ClosedInternalHom.evaluation i U hU M N x |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.FiniteEtaleTraceCoordinates |