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.ClosedScalars |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.InternalHom |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.HomEvaluation |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomCoefficientScalarRestriction |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomCoefficientTarget |
| 6 | |
| 7 | /-! # Closed Internal Hom -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Internal Hom on the ambient principal diagram is the Hom diagram |
| 14 | over the actual closed-scheme section ring, with literal coefficient evaluation. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | universe u |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf |
| 21 | variable {X Z : Scheme.{u}} (i : X ⟶ Z) [IsClosedImmersion i] |
| 22 | (U : Z.Opens) (hU : IsAffineOpen U) (M N : X.Modules) [M.IsQuasicoherent] |
| 23 | private abbrev ambientRing := Γ(Z, U) |
| 24 | private abbrev closedRing := Γ(X, i ⁻¹ᵁ U) |
| 25 | private abbrev sourceModule := ModuleCat.of (closedRing i U) Γ(M, i ⁻¹ᵁ U) |
| 26 | private abbrev scalarRestriction := ModuleCat.restrictScalars (i.app U).hom |
| 27 | private abbrev image (L : X.Modules) := (Scheme.Modules.pushforward i).obj L |
| 28 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.ambientRing U |
| 29 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.closedRing i U |
| 30 | local notation "B" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.sourceModule i U M |
| 31 | local notation "G" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.scalarRestriction i U |
| 32 | local notation "PM" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.image i M |
| 33 | local notation "PN" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom.image i N |
| 34 | local instance closedAlgebra : Algebra A Q := (i.app U).hom.toAlgebra |
| 35 | local instance source_qc : (PM).IsQuasicoherent := |
| 36 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom i |
| 37 | |
| 38 | def sourceIso : (G).obj B ≅ ModuleCat.of A Γ(PM, U) := |
| 39 | (show (G).obj B ≃ₗ[A] Γ(PM, U) from |
| 40 | { toFun := fun x => x |
| 41 | invFun := fun x => x |
| 42 | left_inv := fun _ => rfl |
| 43 | right_inv := fun _ => rfl |
| 44 | map_add' := fun _ _ => rfl |
| 45 | map_smul' := fun _ _ => rfl }).toModuleIso |
| 46 | |
| 47 | def iso : SectionPresheaf.modules U hU (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule PM PN) ≅ |
| 48 | HomCoefficientFunctor.homPresheaf Q (ClosedScalars.modules i U hU N) B ⋙ G := |
| 49 | InternalHom.iso U hU PM PN ≪≫ |
| 50 | (HomCoefficientFunctor.functor A (SectionPresheaf.modules U hU PN)).mapIso (sourceIso i U M).op ≪≫ |
| 51 | HomCoefficientTarget.iso A ((G).obj B) (ClosedScalars.restrictionIso i U hU N).symm ≪≫ |
| 52 | (HomCoefficientScalarRestriction.iso A Q (i.app_surjective U hU) |
| 53 | (ClosedScalars.modules i U hU N) B).symm |
| 54 | |
| 55 | theorem hom_apply (r : (SectionPresheaf.Index U)ᵒᵖ) |
| 56 | (φ : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule PM PN, SectionPresheaf.openSubset U r.unop)) |
| 57 | (x : Γ(M, i ⁻¹ᵁ U)) : |
| 58 | (show Γ(M, i ⁻¹ᵁ U) →ₗ[Q] Γ(N, i ⁻¹ᵁ SectionPresheaf.openSubset U r.unop) from |
| 59 | (iso i U hU M N).hom.app r φ) x = |
| 60 | Affine.HomEvaluation.evaluation PM PN (SectionPresheaf.openSubset U r.unop) φ |
| 61 | ((PM).presheaf.map (SectionPresheaf.inclusion U r.unop).op x) := by |
| 62 | change (show Γ(PM, U) →ₗ[A] Γ(PN, SectionPresheaf.openSubset U r.unop) from |
| 63 | (InternalHom.iso U hU PM PN).hom.app r φ) x = _ |
| 64 | exact InternalHom.hom_apply U hU PM PN r φ x |
| 65 | |
| 66 | theorem evaluation (x : Γ(M, i ⁻¹ᵁ U)) : |
| 67 | (iso i U hU M N).hom ≫ |
| 68 | Functor.whiskerRight (HomPresheafDualFrame.evaluation Q |
| 69 | (ClosedScalars.modules i U hU N) B x) G ≫ |
| 70 | (ClosedScalars.restrictionIso i U hU N).hom = |
| 71 | HomEvaluation.map U hU PM PN x := by |
| 72 | apply NatTrans.ext |
| 73 | funext r |
| 74 | apply ModuleCat.hom_ext |
| 75 | apply LinearMap.ext |
| 76 | intro φ |
| 77 | exact hom_apply i U hU M N r φ x |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedInternalHom |