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.KoszulPoint.HomCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.SupportedCoefficientEvaluation |
| 3 | |
| 4 | /-! # Coefficient Evaluation Homotopy -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientEvaluationHomotopy |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual augmentation-preserving coefficient maps give the weighted |
| 11 | point-evaluation homotopy on the entire coefficient presheaf. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution |
| 18 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 19 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 20 | {c m : ℕ} (s : Fin c → R) (t : Fin m → R) |
| 21 | (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 22 | (hst : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (Fin.append s t))) |
| 23 | (M : ModuleCat.{u} R) (PM : ProjectiveResolution M) |
| 24 | (ε : M ⟶ ModuleCat.of R (R ⧸ KoszulPartial.Resolution.pointIdeal R s t)) |
| 25 | (β : ModuleCat.of R (R ⧸ KoszulPartial.Resolution.normalIdeal R s) ⟶ M) |
| 26 | (a : PM.complex ⟶ (KoszulPartial.Resolution.pointResolution R s t hst).complex) |
| 27 | (b : (KoszulPartial.Resolution.normalResolution R s hs).complex ⟶ PM.complex) |
| 28 | (ha : a ≫ (KoszulPartial.Resolution.pointResolution R s t hst).π = PM.π ≫ (ChainComplex.single₀ _).map ε) |
| 29 | (hb : b ≫ PM.π = (KoszulPartial.Resolution.normalResolution R s hs).π ≫ (ChainComplex.single₀ _).map β) |
| 30 | (r : R) (hr : β ≫ ε = r • KoszulPartial.Resolution.quotient R s t) |
| 31 | |
| 32 | def chainHomotopy : Homotopy (b ≫ a) (r • KoszulPartial.Resolution.inclusion R s t) := by |
| 33 | apply ProjectiveResolution.liftHomotopy (r • KoszulPartial.Resolution.quotient R s t) |
| 34 | · rw [Category.assoc, ha, ← Category.assoc, hb, Category.assoc, |
| 35 | ← Functor.map_comp, hr] |
| 36 | · apply (ChainComplex.toSingle₀Equiv _ _).injective |
| 37 | apply Subtype.ext |
| 38 | change ((r • KoszulPartial.Resolution.inclusion R s t) ≫ (KoszulPartial.Resolution.pointResolution R s t hst).π).f 0 = |
| 39 | ((KoszulPartial.Resolution.normalResolution R s hs).π ≫ (ChainComplex.single₀ (ModuleCat R)).map |
| 40 | (r • KoszulPartial.Resolution.quotient R s t)).f 0 |
| 41 | have h := congrArg (fun z => z.f 0) (KoszulPartial.Resolution.augmentation R s t hs hst) |
| 42 | simp only [HomologicalComplex.comp_f, ChainComplex.single₀_map_f_zero] at h ⊢ |
| 43 | change (r • (KoszulPartial.Resolution.inclusion R s t).f 0) ≫ (KoszulPartial.Resolution.pointResolution R s t hst).π.f 0 = |
| 44 | (KoszulPartial.Resolution.normalResolution R s hs).π.f 0 ≫ (r • KoszulPartial.Resolution.quotient R s t) |
| 45 | rw [Linear.smul_comp, Linear.comp_smul, h] |
| 46 | |
| 47 | omit [HasFiniteProducts C] in |
| 48 | theorem hom_map_comp {K L N : ChainComplex (ModuleCat.{u} R) ℕ} (f : K ⟶ L) (g : L ⟶ N) : |
| 49 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) (f ≫ g) = |
| 50 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) g ≫ |
| 51 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) f := by |
| 52 | apply HomologicalComplex.Hom.ext |
| 53 | funext q |
| 54 | apply NatTrans.ext |
| 55 | funext v |
| 56 | rfl |
| 57 | |
| 58 | omit [HasFiniteProducts C] in |
| 59 | theorem hom_map_smul {K L : ChainComplex (ModuleCat.{u} R) ℕ} (f : K ⟶ L) (w : R) : |
| 60 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) (w • f) = |
| 61 | w • HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) f := by |
| 62 | apply HomologicalComplex.Hom.ext |
| 63 | funext q |
| 64 | apply NatTrans.ext |
| 65 | funext v |
| 66 | apply ModuleCat.hom_ext |
| 67 | apply LinearMap.ext |
| 68 | intro φ |
| 69 | apply LinearMap.ext |
| 70 | intro x |
| 71 | exact φ.map_smul w _ |
| 72 | |
| 73 | def pointMap : KoszulPartial.Components.coefficient R P (Fin.append s t) ⟶ |
| 74 | HomCoefficientFunctor.complex R (KoszulPartial.Fractions.modules R P) PM.complex := |
| 75 | (KoszulPoint.HomCoordinates.pointIso R P s t).inv ≫ |
| 76 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) a |
| 77 | |
| 78 | def evaluation : HomCoefficientFunctor.complex R (KoszulPartial.Fractions.modules R P) PM.complex ⟶ |
| 79 | KoszulPartial.Components.coefficient R P s := HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) b ≫ |
| 80 | (KoszulPoint.HomCoordinates.normalIso R P s).hom |
| 81 | |
| 82 | def homotopy : Homotopy |
| 83 | (pointMap R P s t hst M PM a ≫ evaluation R P s hs M PM b) |
| 84 | (r • DuplicateFraction.normalMap R s t P) := by |
| 85 | let F := HomCoefficientFunctor.functor R (KoszulPartial.Fractions.modules R P) |
| 86 | have h := F.mapHomotopy (chainHomotopy R s t hs hst M PM ε β a b ha hb r hr).op |
| 87 | change Homotopy (HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) (b ≫ a)) |
| 88 | (HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) (r • KoszulPartial.Resolution.inclusion R s t)) at h |
| 89 | rw [hom_map_comp, hom_map_smul] at h |
| 90 | let h' := (h.compLeft (KoszulPoint.HomCoordinates.pointIso R P s t).inv).compRight |
| 91 | (KoszulPoint.HomCoordinates.normalIso R P s).hom |
| 92 | refine (Homotopy.ofEq (by simp only [pointMap, evaluation, Category.assoc])).trans |
| 93 | (h'.trans (Homotopy.ofEq ?_)) |
| 94 | rw [Linear.comp_smul, Linear.smul_comp] |
| 95 | apply congrArg (fun z => r • z) |
| 96 | rw [Category.assoc, ← KoszulPoint.HomCoordinates.square, ← Category.assoc, |
| 97 | Iso.inv_hom_id, Category.id_comp] |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientEvaluationHomotopy |