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 Mathlib |
| 2 | |
| 3 | /-! # Eta Complex -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.EtaComplex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The nonnegative eta complex |
| 11 | |
| 12 | For a cochain complex C and scalar a, its degree-n term consists of the |
| 13 | elements of a^n C^n whose differential belongs to a^(n+1) C^(n+1). |
| 14 | This file constructs the actual subcomplex, its inclusion, and its action |
| 15 | on cochain maps. No torsion-freeness is needed for these constructions. |
| 16 | |
| 17 | Reference: Bhatt--Morrow--Scholze, Integral p-adic Hodge theory, section 6. |
| 18 | https://www.math.uni-bonn.de/people/scholze/integralpadicHodge.pdf |
| 19 | -/ |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | open _root_.CategoryTheory |
| 24 | |
| 25 | variable {R : Type u} [CommRing R] (a : R) |
| 26 | |
| 27 | def scalarPower (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ) : M →ₗ[R] M := |
| 28 | a ^ n • LinearMap.id |
| 29 | |
| 30 | def term (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) : Submodule R (C.X n) := |
| 31 | LinearMap.range (scalarPower a (C.X n) n) ⊓ |
| 32 | (LinearMap.range (scalarPower a (C.X (n + 1)) (n + 1))).comap (C.d n (n + 1)).hom |
| 33 | |
| 34 | theorem mem_term (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) (x : C.X n) : |
| 35 | x ∈ term a C n ↔ |
| 36 | (∃ y, a ^ n • y = x) ∧ (∃ z, a ^ (n + 1) • z = C.d n (n + 1) x) := Iff.rfl |
| 37 | |
| 38 | theorem d_squared (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) (x : C.X n) : |
| 39 | C.d (n + 1) (n + 1 + 1) (C.d n (n + 1) x) = 0 := by |
| 40 | have h := congrArg (fun h : C.X n ⟶ C.X (n + 1 + 1) => h x) |
| 41 | (C.d_comp_d n (n + 1) (n + 1 + 1)) |
| 42 | exact h |
| 43 | |
| 44 | def differential (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) : |
| 45 | term a C n →ₗ[R] term a C (n + 1) where |
| 46 | toFun x := ⟨C.d n (n + 1) x, x.property.2, |
| 47 | ⟨0, (smul_zero (a ^ (n + 1 + 1))).trans (d_squared C n x).symm⟩⟩ |
| 48 | map_add' x y := Subtype.ext ((C.d n (n + 1)).hom.map_add x y) |
| 49 | map_smul' r x := Subtype.ext ((C.d n (n + 1)).hom.map_smul r x) |
| 50 | |
| 51 | theorem differential_squared (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) : |
| 52 | (differential a C (n + 1)).comp (differential a C n) = 0 := by |
| 53 | ext x |
| 54 | exact d_squared C n x |
| 55 | |
| 56 | def eta (C : CochainComplex (ModuleCat.{v} R) ℕ) : CochainComplex (ModuleCat.{v} R) ℕ := |
| 57 | CochainComplex.of (fun n => ModuleCat.of R (term a C n)) |
| 58 | (fun n => ModuleCat.ofHom (differential a C n)) |
| 59 | (fun n => ModuleCat.hom_ext (differential_squared a C n)) |
| 60 | |
| 61 | theorem eta_d (C : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) : |
| 62 | (eta a C).d n (n + 1) = ModuleCat.ofHom (differential a C n) := by |
| 63 | change CochainComplex.of.d (fun k => ModuleCat.of R (term a C k)) |
| 64 | (fun k => ModuleCat.ofHom (differential a C k)) n (n + 1) = _ |
| 65 | exact CochainComplex.of_d _ _ n |
| 66 | |
| 67 | def inclusion (C : CochainComplex (ModuleCat.{v} R) ℕ) : eta a C ⟶ C := |
| 68 | CochainComplex.ofHom (fun n => ModuleCat.ofHom (term a C n).subtype) (fun n => by |
| 69 | rw [eta_d] |
| 70 | rfl) |
| 71 | |
| 72 | def componentMap {C D : CochainComplex (ModuleCat.{v} R) ℕ} (f : C ⟶ D) (n : ℕ) : |
| 73 | term a C n →ₗ[R] term a D n where |
| 74 | toFun x := ⟨f.f n x, by |
| 75 | obtain ⟨⟨y, hy⟩, ⟨z, hz⟩⟩ := (mem_term a C n x).mp x.property |
| 76 | constructor |
| 77 | · refine ⟨f.f n y, ?_⟩ |
| 78 | change a ^ n • f.f n y = f.f n x |
| 79 | rw [← map_smul, hy] |
| 80 | · refine ⟨f.f (n + 1) z, ?_⟩ |
| 81 | change a ^ (n + 1) • f.f (n + 1) z = D.d n (n + 1) (f.f n x) |
| 82 | rw [← map_smul, hz] |
| 83 | exact (congrArg (fun h : C.X n ⟶ D.X (n + 1) => h x) (f.comm n (n + 1))).symm⟩ |
| 84 | map_add' x y := Subtype.ext ((f.f n).hom.map_add x y) |
| 85 | map_smul' r x := Subtype.ext ((f.f n).hom.map_smul r x) |
| 86 | |
| 87 | def etaMap {C D : CochainComplex (ModuleCat.{v} R) ℕ} (f : C ⟶ D) : eta a C ⟶ eta a D := |
| 88 | CochainComplex.ofHom (fun n => ModuleCat.ofHom (componentMap a f n)) (fun n => by |
| 89 | rw [eta_d, eta_d] |
| 90 | apply ModuleCat.hom_ext |
| 91 | apply LinearMap.ext |
| 92 | intro x |
| 93 | apply Subtype.ext |
| 94 | exact congrArg (fun h : C.X n ⟶ D.X (n + 1) => h (x : term a C n).val) |
| 95 | (f.comm n (n + 1))) |
| 96 | |
| 97 | def etaFunctor : CochainComplex (ModuleCat.{v} R) ℕ ⥤ CochainComplex (ModuleCat.{v} R) ℕ where |
| 98 | obj := eta a |
| 99 | map := etaMap a |
| 100 | map_id C := by ext n x; rfl |
| 101 | map_comp f g := by ext n x; rfl |
| 102 | |
| 103 | theorem inclusion_natural {C D : CochainComplex (ModuleCat.{v} R) ℕ} (f : C ⟶ D) : |
| 104 | etaMap a f ≫ inclusion a D = inclusion a C ≫ f := by |
| 105 | ext n x |
| 106 | rfl |
| 107 | |
| 108 | def inclusionNatTrans : etaFunctor.{u, v} a ⟶ 𝟭 _ where |
| 109 | app := inclusion a |
| 110 | naturality _ _ f := inclusion_natural a f |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.EtaComplex |