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.Exterior.KoszulBasisResolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Forget |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CohomologyMaps |
| 4 | |
| 5 | /-! # Resolution -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The normal-to-point Koszul inclusion is an actual lift of the |
| 12 | quotient map. Hence its dual computes the canonical Ext map, with |
| 13 | arbitrary target coefficients and independent of resolution choices. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 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 v w |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |
| 20 | variable (R : Type u) [CommRing R] {c m : ℕ} (s : Fin c → R) (t : Fin m → R) |
| 21 | |
| 22 | abbrev normalIdeal := Koszul.OrientedTopCohomology.ideal R s |
| 23 | abbrev pointIdeal := Exterior.KoszulBasisResolution.ideal R |
| 24 | (TopResidue.basis R) (Differential.equation R s t) |
| 25 | |
| 26 | theorem basis_values : (fun i => Differential.equation R s t (TopResidue.basis R i)) = |
| 27 | Fin.append s t := by |
| 28 | rw [TopResidue.basis_append] |
| 29 | funext i |
| 30 | refine Fin.addCases (fun j => ?_) (fun j => ?_) i |
| 31 | · simp [Differential.equation, Koszul.GeneratorMatrix.equation_apply, Pi.basisFun_apply, Pi.single_apply] |
| 32 | · simp [Differential.equation, Koszul.GeneratorMatrix.equation_apply, Pi.basisFun_apply, Pi.single_apply] |
| 33 | |
| 34 | theorem ideal_le : normalIdeal R s ≤ pointIdeal R s t := by |
| 35 | apply Ideal.span_le.mpr |
| 36 | rintro x ⟨i, rfl⟩ |
| 37 | apply Ideal.subset_span |
| 38 | refine ⟨Fin.castAdd m i, ?_⟩ |
| 39 | exact (congrFun (basis_values R s t) (Fin.castAdd m i)).trans (by simp) |
| 40 | |
| 41 | def quotient : ModuleCat.of R (R ⧸ normalIdeal R s) ⟶ ModuleCat.of R (R ⧸ pointIdeal R s t) := |
| 42 | ModuleCat.ofHom (Submodule.mapQ _ _ LinearMap.id (by |
| 43 | intro x hx |
| 44 | exact ideal_le R s t hx)) |
| 45 | |
| 46 | abbrev normalResolution (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) := |
| 47 | Exterior.KoszulResolution.resolution R s hs |
| 48 | |
| 49 | def pointResolution |
| 50 | (hst : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (Fin.append s t))) : |
| 51 | ProjectiveResolution (ModuleCat.of R (R ⧸ pointIdeal R s t)) := |
| 52 | Exterior.KoszulBasisResolution.resolution R (TopResidue.basis R) |
| 53 | (Differential.equation R s t) (by rw [basis_values]; exact hst) |
| 54 | |
| 55 | def inclusion : Koszul.OrientedTopCohomology.koszul R s ⟶ |
| 56 | Exterior.KoszulComplex.complex R (Fractions.ambient R (c := c) (m := m)) (Differential.equation R s t) := |
| 57 | Exterior.KoszulComplex.map R _ _ _ _ (LinearMap.inl R _ _) (Differential.equation_inl R s t) |
| 58 | |
| 59 | theorem augmentation |
| 60 | (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 61 | (hst : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (Fin.append s t))) : |
| 62 | inclusion R s t ≫ (pointResolution R s t hst).π = |
| 63 | (normalResolution R s hs).π ≫ (ChainComplex.single₀ (ModuleCat R)).map (quotient R s t) := by |
| 64 | apply HomologicalComplex.Hom.ext |
| 65 | funext n |
| 66 | cases n with |
| 67 | | zero => |
| 68 | rw [HomologicalComplex.comp_f, HomologicalComplex.comp_f, |
| 69 | Exterior.KoszulResolution.resolution_π_f_zero, |
| 70 | ChainComplex.single₀_map_f_zero] |
| 71 | change (inclusion R s t).f 0 ≫ |
| 72 | (Exterior.KoszulBasisResolution.resolution R (TopResidue.basis R) |
| 73 | (Differential.equation R s t) _).π.f 0 = _ |
| 74 | rw [Exterior.KoszulBasisResolution.resolution_π_zero] |
| 75 | apply ModuleCat.hom_ext |
| 76 | apply LinearMap.ext |
| 77 | intro x |
| 78 | change (pointIdeal R s t).mkQ (exteriorPower.zeroEquiv R _ |
| 79 | (exteriorPower.map 0 (LinearMap.inl R (Fractions.normal R (c := c)) (Fractions.parameters R (m := m))) x)) = |
| 80 | (pointIdeal R s t).mkQ (exteriorPower.zeroEquiv R _ x) |
| 81 | exact congrArg (pointIdeal R s t).mkQ (LinearMap.congr_fun |
| 82 | (exteriorPower.zeroEquiv_naturality (LinearMap.inl R (Fractions.normal R (c := c)) (Fractions.parameters R (m := m)))) x) |
| 83 | | succ n => |
| 84 | exact (isZero_single_obj_X (.down ℕ) 0 |
| 85 | (ModuleCat.of R (R ⧸ pointIdeal R s t)) (n + 1) (by omega)).eq_of_tgt _ _ |
| 86 | |
| 87 | variable {D : Type v} [Category.{w} D] [Abelian D] |
| 88 | (F : (ModuleCat.{u} R)ᵒᵖ ⥤ D) [F.Additive] |
| 89 | (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 90 | (hst : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (Fin.append s t))) |
| 91 | |
| 92 | theorem canonical_map (n : ℕ) : |
| 93 | Resolution.CohomologyMaps.map F (normalResolution R s hs) (pointResolution R s t hst) |
| 94 | (quotient R s t) n = |
| 95 | IntegralComparison.ProjectiveResolution.HomNaturality.map F (inclusion R s t) n := |
| 96 | Resolution.CohomologyMaps.map_eq F _ _ _ _ (augmentation R s t hs hst) n |
| 97 | |
| 98 | abbrev arbitrary_resolution |
| 99 | (P : ProjectiveResolution (ModuleCat.of R (R ⧸ normalIdeal R s))) |
| 100 | (Q : ProjectiveResolution (ModuleCat.of R (R ⧸ pointIdeal R s t))) |
| 101 | (a : P.complex ⟶ Q.complex) |
| 102 | (ha : a ≫ Q.π = P.π ≫ (ChainComplex.single₀ (ModuleCat R)).map (quotient R s t)) (n : ℕ) := |
| 103 | IntegralComparison.ProjectiveResolution.HomNaturality.naturality F (quotient R s t) P |
| 104 | (normalResolution R s hs) Q (pointResolution R s t hst) a |
| 105 | (inclusion R s t) ha (augmentation R s t hs hst) n |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution |