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 OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.QuotientCoefficientPresheaf |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.QuotientSectionNormalization |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.IdealSheafPrincipalEquations |
| 5 | |
| 6 | /-! # Closed Quotient -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedQuotient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The normal-equation quotient presheaf on the original principal |
| 13 | opens is the literal structure sheaf direct image of the closed scheme. |
| 14 | The comparison sends each residue class to the original pullback. -/ |
| 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 Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 22 | (U : Y.Opens) (hU : IsAffineOpen U) {c : ℕ} (s : Fin c → Γ(Y, U)) |
| 23 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Y, U) s = f.ker.ideal ⟨U, hU⟩) |
| 24 | |
| 25 | abbrev coefficient := KoszulPartial.Fractions.modules Γ(Y, U) |
| 26 | (Koszul.QuotientCoefficientPresheaf.quotient Γ(Y, U) (SectionPresheaf.rings U hU) s) |
| 27 | abbrev directImage := Closed.QuotientSectionNormalization.directImage f |
| 28 | |
| 29 | include hs in |
| 30 | omit [IsClosedImmersion f] in |
| 31 | theorem ideal_eq (r : SectionPresheaf.Index U) : |
| 32 | Koszul.QuotientCoefficientPresheaf.ideal Γ(Y, U) (SectionPresheaf.rings U hU) s (op r) = |
| 33 | Closed.QuotientSectionNormalization.ideal f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val) := |
| 34 | IdealSheafPrincipalEquations.generates f.ker U hU r.val s hs |
| 35 | |
| 36 | local instance sectionTower (r : SectionPresheaf.Index U) : |
| 37 | IsScalarTower Γ(Y, U) Γ(Y, SectionPresheaf.openSubset U r) Γ(directImage f, SectionPresheaf.openSubset U r) where |
| 38 | smul_assoc a b m := by |
| 39 | change (algebraMap Γ(Y, U) Γ(Y, SectionPresheaf.openSubset U r) a * b) • m = |
| 40 | algebraMap Γ(Y, U) Γ(Y, SectionPresheaf.openSubset U r) a • (b • m) |
| 41 | exact mul_smul _ _ _ |
| 42 | |
| 43 | def component (r : SectionPresheaf.Index U) : (coefficient U hU s).obj (op r) ≃ₗ[Γ(Y, U)] |
| 44 | Γ(directImage f, SectionPresheaf.openSubset U r) := by |
| 45 | let I : Ideal Γ(Y, SectionPresheaf.openSubset U r) := |
| 46 | Koszul.QuotientCoefficientPresheaf.ideal Γ(Y, U) (SectionPresheaf.rings U hU) s (op r) |
| 47 | let J : Ideal Γ(Y, SectionPresheaf.openSubset U r) := |
| 48 | Closed.QuotientSectionNormalization.ideal f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val) |
| 49 | have h : I = J := ideal_eq f U hU s hs r |
| 50 | let q : (Γ(Y, SectionPresheaf.openSubset U r) ⧸ I) ≃ₗ[Γ(Y, SectionPresheaf.openSubset U r)] Γ(directImage f, SectionPresheaf.openSubset U r) := |
| 51 | ((Ideal.quotientEquivAlgOfEq Γ(Y, SectionPresheaf.openSubset U r) h).toLinearEquiv).trans |
| 52 | (Closed.QuotientSectionNormalization.iso f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val)).symm.toLinearEquiv |
| 53 | exact q.restrictScalars Γ(Y, U) |
| 54 | |
| 55 | theorem component_mk (r : SectionPresheaf.Index U) (a : Γ(Y, SectionPresheaf.openSubset U r)) : |
| 56 | component f U hU s hs r (Ideal.Quotient.mk _ a) = f.app (SectionPresheaf.openSubset U r) a := by |
| 57 | let I : Ideal Γ(Y, SectionPresheaf.openSubset U r) := |
| 58 | Koszul.QuotientCoefficientPresheaf.ideal Γ(Y, U) (SectionPresheaf.rings U hU) s (op r) |
| 59 | let J : Ideal Γ(Y, SectionPresheaf.openSubset U r) := |
| 60 | Closed.QuotientSectionNormalization.ideal f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val) |
| 61 | have h : I = J := ideal_eq f U hU s hs r |
| 62 | change (Closed.QuotientSectionNormalization.iso f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val)).inv |
| 63 | ((Ideal.quotientEquivAlgOfEq Γ(Y, SectionPresheaf.openSubset U r) h) (Ideal.Quotient.mk I a)) = _ |
| 64 | rw [Ideal.quotientEquivAlgOfEq_mk] |
| 65 | exact Closed.QuotientSectionNormalization.iso_inv_mk f (SectionPresheaf.openSubset U r) (hU.basicOpen r.val) a |
| 66 | |
| 67 | def iso : coefficient U hU s ≅ SectionPresheaf.modules U hU (directImage f) := |
| 68 | NatIso.ofComponents (fun r => (component f U hU s hs r.unop).toModuleIso) (by |
| 69 | intro r t a |
| 70 | apply ModuleCat.hom_ext |
| 71 | apply LinearMap.ext |
| 72 | intro x |
| 73 | change Γ(Y, SectionPresheaf.openSubset U r.unop) ⧸ |
| 74 | Koszul.QuotientCoefficientPresheaf.ideal Γ(Y, U) (SectionPresheaf.rings U hU) s r at x |
| 75 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 76 | change component f U hU s hs t.unop |
| 77 | (Ideal.Quotient.mk _ (Y.presheaf.map (SectionPresheaf.arrow U hU a.unop).op x)) = |
| 78 | (directImage f).presheaf.map (SectionPresheaf.arrow U hU a.unop).op |
| 79 | (component f U hU s hs r.unop (Ideal.Quotient.mk _ x)) |
| 80 | rw [component_mk, component_mk] |
| 81 | exact ConcreteCategory.congr_hom (f.naturality (SectionPresheaf.arrow U hU a.unop).op) x) |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedQuotient |