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.LineFrameBaseChange |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.LinearHomBaseChange |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Hom |
| 4 | |
| 5 | /-! # Line Frame -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.LineFrame |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The compatible frame on a principal subopen is compatible with |
| 12 | the literal restriction of sections. Its quotient-valued inverse frame |
| 13 | therefore has the actual restriction formula. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 19 | |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option backward.isDefEq.respectTransparency.types false |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) (r : Γ(X, U)) |
| 26 | (N : X.Modules) [N.IsQuasicoherent] |
| 27 | |
| 28 | def restriction : (AffineOpen.InternalHom.sections U hU).obj N →ₛₗ[algebraMap Γ(X, U) Γ(X, Sections.openSubset U r)] |
| 29 | (AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N := |
| 30 | (Affine.ChartSections.iso (Sections.openSubset U r) (hU.basicOpen r) N).hom.hom.comp |
| 31 | ((N.val.restrictₛₗ (Sections.inclusion U r).op).comp (Affine.ChartSections.iso U hU N).inv.hom) |
| 32 | |
| 33 | theorem chartIso_one (x : (AffineOpen.InternalHom.sections U hU).obj N) : |
| 34 | (Hom.Comparison.chartIso U hU r N).hom (1 ⊗ₜ[Γ(X, U)] x) = |
| 35 | restriction U hU r N x := by |
| 36 | obtain ⟨m, rfl⟩ := (ConcreteCategory.bijective_of_isIso (Affine.ChartSections.iso U hU N).hom).surjective x |
| 37 | rw [Hom.Comparison.chartIso_tmul, one_smul] |
| 38 | change _ = (Affine.ChartSections.iso (Sections.openSubset U r) (hU.basicOpen r) N).hom |
| 39 | (N.presheaf.map (Sections.inclusion U r).op |
| 40 | ((Affine.ChartSections.iso U hU N).inv ((Affine.ChartSections.iso U hU N).hom m))) |
| 41 | rw [Iso.hom_inv_id_apply] |
| 42 | |
| 43 | variable (e : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 44 | |
| 45 | def targetFrame : (AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N ≅ |
| 46 | ModuleCat.of Γ(X, Sections.openSubset U r) Γ(X, Sections.openSubset U r) := |
| 47 | LinearHomBaseChange.compatibleFrame Γ(X, U) Γ(X, Sections.openSubset U r) _ _ e |
| 48 | (Hom.Comparison.chartIso U hU r N) |
| 49 | |
| 50 | theorem targetFrame_restriction (x : (AffineOpen.InternalHom.sections U hU).obj N) : |
| 51 | (targetFrame U hU r N e).hom (restriction U hU r N x) = |
| 52 | algebraMap Γ(X, U) Γ(X, Sections.openSubset U r) (e.hom x) := by |
| 53 | let : IsLocalization.Away r Γ(X, Sections.openSubset U r) := hU.isLocalization_basicOpen r |
| 54 | let : Module.Flat Γ(X, U) Γ(X, Sections.openSubset U r) := |
| 55 | IsLocalization.flat Γ(X, Sections.openSubset U r) (Submonoid.powers r) |
| 56 | rw [← chartIso_one] |
| 57 | exact (LinearHomBaseChange.compatibleFrame_tmul Γ(X, U) Γ(X, Sections.openSubset U r) _ _ e |
| 58 | (Hom.Comparison.chartIso U hU r N) 1 x).trans (one_mul _) |
| 59 | |
| 60 | variable (I : Ideal Γ(X, U)) (J : Ideal Γ(X, Sections.openSubset U r)) |
| 61 | (h : I ≤ J.comap (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r))) |
| 62 | |
| 63 | def lineMap := LineFrameBaseChange.lineMap Γ(X, U) Γ(X, Sections.openSubset U r) |
| 64 | (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r)) I J h _ _ (restriction U hU r N) |
| 65 | |
| 66 | theorem lineFrame_symm_restriction (a : Γ(X, U) ⧸ I) : |
| 67 | lineMap U hU r N I J h |
| 68 | ((LineValuedKoszulPurity.lineFrame Γ(X, U) I ((AffineOpen.InternalHom.sections U hU).obj N) e).symm a) = |
| 69 | (LineValuedKoszulPurity.lineFrame Γ(X, Sections.openSubset U r) J |
| 70 | ((AffineOpen.InternalHom.sections (Sections.openSubset U r) (hU.basicOpen r)).obj N) (targetFrame U hU r N e)).symm |
| 71 | (Ideal.quotientMap J (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r)) h a) := |
| 72 | LineFrameBaseChange.lineFrame_symm_map Γ(X, U) Γ(X, Sections.openSubset U r) |
| 73 | (algebraMap Γ(X, U) Γ(X, Sections.openSubset U r)) I J h _ _ (restriction U hU r N) e |
| 74 | (targetFrame U hU r N e) (targetFrame_restriction U hU r N e) a |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.LineFrame |