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.SectionPresheaf |
| 2 | import Mathlib.RingTheory.TensorProduct.Basic |
| 3 | |
| 4 | /-! # Line Frame -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.LineFrame |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A frame of a quasicoherent line on an affine open induces one |
| 11 | frame on the entire principal-open presheaf. Its inverse sends a |
| 12 | function to that function times the restricted original generator. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | open scoped TensorProduct |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf |
| 20 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | (N : X.Modules) [N.IsQuasicoherent] (e : Γ(N, U) ≃ₗ[Γ(X, U)] Γ(X, U)) |
| 22 | |
| 23 | local instance sectionTower (r : SectionPresheaf.Index U) : |
| 24 | IsScalarTower Γ(X, U) Γ(X, SectionPresheaf.openSubset U r) Γ(N, SectionPresheaf.openSubset U r) where |
| 25 | smul_assoc a b m := by |
| 26 | change (algebraMap Γ(X, U) Γ(X, SectionPresheaf.openSubset U r) a * b) • m = |
| 27 | algebraMap Γ(X, U) Γ(X, SectionPresheaf.openSubset U r) a • (b • m) |
| 28 | exact mul_smul _ _ _ |
| 29 | |
| 30 | def frame (r : SectionPresheaf.Index U) : Γ(N, SectionPresheaf.openSubset U r) ≃ₗ[Γ(X, SectionPresheaf.openSubset U r)] |
| 31 | Γ(X, SectionPresheaf.openSubset U r) := |
| 32 | (AffinePrincipal.Sections.iso U hU r.val N).symm.trans |
| 33 | ((e.baseChange Γ(X, U) Γ(X, SectionPresheaf.openSubset U r)).trans |
| 34 | (TensorProduct.AlgebraTensorModule.rid Γ(X, U) Γ(X, SectionPresheaf.openSubset U r) |
| 35 | Γ(X, SectionPresheaf.openSubset U r))) |
| 36 | |
| 37 | theorem frame_symm (r : SectionPresheaf.Index U) (a : Γ(X, SectionPresheaf.openSubset U r)) : |
| 38 | (frame U hU N e r).symm a = a • N.presheaf.map (SectionPresheaf.inclusion U r).op (e.symm 1) := by |
| 39 | change AffinePrincipal.Sections.iso U hU r.val N (a ⊗ₜ[Γ(X, U)] e.symm 1) = _ |
| 40 | exact AffinePrincipal.Sections.iso_tmul U hU r.val N a (e.symm 1) |
| 41 | |
| 42 | abbrev scalars := SectionPresheaf.rings U hU ⋙ forget₂ (CommAlgCat Γ(X, U)) (AlgCat Γ(X, U)) ⋙ |
| 43 | forget₂ (AlgCat Γ(X, U)) (ModuleCat Γ(X, U)) |
| 44 | |
| 45 | def iso : SectionPresheaf.modules U hU N ≅ scalars U hU := |
| 46 | (NatIso.ofComponents |
| 47 | (fun r => ((frame U hU N e r.unop).symm.restrictScalars Γ(X, U)).toModuleIso) |
| 48 | (by |
| 49 | intro r s a |
| 50 | apply ModuleCat.hom_ext |
| 51 | apply LinearMap.ext |
| 52 | intro x |
| 53 | change (frame U hU N e s.unop).symm |
| 54 | (X.presheaf.map (SectionPresheaf.arrow U hU a.unop).op x) = |
| 55 | N.presheaf.map (SectionPresheaf.arrow U hU a.unop).op ((frame U hU N e r.unop).symm x) |
| 56 | rw [frame_symm, frame_symm, N.map_smul] |
| 57 | congr 1 |
| 58 | rw [← ConcreteCategory.comp_apply, ← N.presheaf.map_comp] |
| 59 | rfl)).symm |
| 60 | |
| 61 | theorem iso_inv (r : (SectionPresheaf.Index U)ᵒᵖ) (a : Γ(X, SectionPresheaf.openSubset U r.unop)) : |
| 62 | (iso U hU N e).inv.app r a = |
| 63 | a • N.presheaf.map (SectionPresheaf.inclusion U r.unop).op (e.symm 1) := |
| 64 | frame_symm U hU N e r.unop a |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.LineFrame |