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.Koszul.OrderedProduct |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechFunctor |
| 3 | |
| 4 | /-! # Hom Presheaf -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.HomPresheaf |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual Hom Koszul cochain complex with varying module |
| 11 | coefficients. Its restriction maps and differentials are literal |
| 12 | postcomposition and precomposition. -/ |
| 13 | open _root_.CategoryTheory Opposite |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | universe u |
| 17 | variable {C : Type u} [Category C] |
| 18 | (R : Type u) [CommRing R] (V : Type u) [AddCommGroup V] [Module R V] |
| 19 | (P : Cᵒᵖ ⥤ ModuleCat.{u} R) |
| 20 | |
| 21 | def homPresheaf (p : ℕ) : Cᵒᵖ ⥤ ModuleCat.{u} R where |
| 22 | obj a := ModuleCat.of R ((⋀[R]^p V) →ₗ[R] P.obj a) |
| 23 | map f := ModuleCat.ofHom |
| 24 | { toFun := fun φ => (P.map f).hom.comp φ |
| 25 | map_add' := by intros; ext; simp |
| 26 | map_smul' := by intros; ext; simp } |
| 27 | map_id a := by |
| 28 | apply ModuleCat.hom_ext |
| 29 | ext φ x |
| 30 | simp |
| 31 | map_comp f g := by |
| 32 | apply ModuleCat.hom_ext |
| 33 | ext φ x |
| 34 | simp |
| 35 | |
| 36 | variable (l : Module.Dual R V) |
| 37 | |
| 38 | def differential (p : ℕ) : homPresheaf R V P p ⟶ homPresheaf R V P (p + 1) where |
| 39 | app a := ModuleCat.ofHom |
| 40 | { toFun := fun φ => φ.comp (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l p) |
| 41 | map_add' := by intros; rfl |
| 42 | map_smul' := by intros; rfl } |
| 43 | naturality _ _ f := by |
| 44 | apply ModuleCat.hom_ext |
| 45 | apply LinearMap.ext |
| 46 | intro φ |
| 47 | rfl |
| 48 | |
| 49 | theorem differential_square (p : ℕ) : differential R V P l p ≫ differential R V P l (p + 1) = 0 := by |
| 50 | apply NatTrans.ext |
| 51 | funext a |
| 52 | apply ModuleCat.hom_ext |
| 53 | apply LinearMap.ext |
| 54 | intro φ |
| 55 | apply LinearMap.ext |
| 56 | intro x |
| 57 | change (show (⋀[R]^p V) →ₗ[R] P.obj a from φ) ((AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l p) |
| 58 | ((AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l (p + 1)) x)) = 0 |
| 59 | have h := LinearMap.congr_fun (Exterior.KoszulComplex.contraction_square R V l p) x |
| 60 | change (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l p) |
| 61 | ((AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R V l (p + 1)) x) = 0 at h |
| 62 | rw [h, map_zero] |
| 63 | |
| 64 | def complex : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u} R) ℕ := |
| 65 | CochainComplex.of (homPresheaf R V P) (differential R V P l) (differential_square R V P l) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.HomPresheaf |