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.PeriodInvariants.FiniteTensorCompletion |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.ComplexExtension |
| 3 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.CompletionLinearDensity |
| 4 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.EquivariantKoszul |
| 5 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Koszul.TensorMap |
| 6 | |
| 7 | /-! # Koszul Completion -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.KoszulCompletion |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # Completion of a finite Koszul complex is the Koszul complex of completed coefficients -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u |
| 18 | variable {R M σ : Type u} [CommRing R] [AddCommGroup M] [Module R M] |
| 19 | [Fintype σ] [LinearOrder σ] (I : Ideal R) (hI : I.FG) |
| 20 | (D : σ → Module.End R M) (hD : ∀ i j, Function.Commute (D i) (D j)) |
| 21 | |
| 22 | def operator (i : σ) : Module.End R (AdicCompletion I M) := AdicCompletionLinear.map I (D i) |
| 23 | |
| 24 | include hD in |
| 25 | omit [Fintype σ] [LinearOrder σ] in |
| 26 | theorem commute (i j : σ) : Function.Commute (operator I D i) (operator I D j) := by |
| 27 | intro x |
| 28 | have h : (D i).comp (D j) = (D j).comp (D i) := LinearMap.ext (hD i j) |
| 29 | change AdicCompletion.map I (D i) (AdicCompletion.map I (D j) x) = |
| 30 | AdicCompletion.map I (D j) (AdicCompletion.map I (D i) x) |
| 31 | rw [AdicCompletion.map_comp_apply, AdicCompletion.map_comp_apply, h] |
| 32 | |
| 33 | def source : CochainComplex (ModuleCat R) ℕ := AlgebraicGeometry.Crystalline.Cohomology.Koszul.Tensor.KoszulTensor.complex R σ M D hD |
| 34 | |
| 35 | def target : CochainComplex (ModuleCat R) ℕ := |
| 36 | AlgebraicGeometry.Crystalline.Cohomology.Koszul.Tensor.KoszulTensor.complex R σ (AdicCompletion I M) (operator I D) (commute I D hD) |
| 37 | |
| 38 | def finiteMap : source D hD ⟶ target I D hD := |
| 39 | AlgebraicGeometry.Crystalline.Cohomology.Koszul.TensorMap.KoszulTensorMap.map R σ M (AdicCompletion I M) D (operator I D) (AdicCompletion.of I M) |
| 40 | (fun i x => (AdicCompletion.map_of I (D i) x).symm) hD (commute I D hD) |
| 41 | |
| 42 | include hI in |
| 43 | theorem term_complete (n : ℕ) : IsAdicComplete I ((target I D hD).X n) := by |
| 44 | classical |
| 45 | exact FiniteTensorCompletion.tensor_complete I |
| 46 | (EquivariantKoszul.exteriorBasis (R := R) (σ := σ) n) hI |
| 47 | |
| 48 | def comparison : AdicCompletionContraction.complex I (source D hD) ⟶ target I D hD := |
| 49 | ComplexExtension.extension I (source D hD) (target I D hD) (finiteMap I D hD) (term_complete I hI D hD) |
| 50 | |
| 51 | theorem extends_finite : ComplexIso.inclusion I (source D hD) ≫ comparison I hI D hD = finiteMap I D hD := |
| 52 | ComplexExtension.extends_finite I (source D hD) (target I D hD) (finiteMap I D hD) (term_complete I hI D hD) |
| 53 | |
| 54 | theorem component_eq (n : ℕ) : ((comparison I hI D hD).f n).hom = |
| 55 | (FiniteTensorCompletion.equiv I (EquivariantKoszul.exteriorBasis (R := R) (σ := σ) n)).toLinearMap := by |
| 56 | classical |
| 57 | have : IsAdicComplete I ((target I D hD).X n) := term_complete I hI D hD n |
| 58 | apply CompletionLinearDensity.ext I hI |
| 59 | intro x |
| 60 | have he := congrArg (fun f : source D hD ⟶ target I D hD => (f.f n).hom x) (extends_finite I hI D hD) |
| 61 | exact he.trans (FiniteTensorCompletion.equiv_of I (EquivariantKoszul.exteriorBasis (R := R) (σ := σ) n) x).symm |
| 62 | |
| 63 | theorem component_bijective (n : ℕ) : Function.Bijective (((comparison I hI D hD).f n).hom) := by |
| 64 | rw [component_eq] |
| 65 | exact (FiniteTensorCompletion.equiv I (EquivariantKoszul.exteriorBasis (R := R) (σ := σ) n)).bijective |
| 66 | |
| 67 | def complexIso : AdicCompletionContraction.complex I (source D hD) ≅ target I D hD := |
| 68 | HomologicalComplex.Hom.isoOfComponents |
| 69 | (fun n => (LinearEquiv.ofBijective (((comparison I hI D hD).f n).hom) |
| 70 | (component_bijective I hI D hD n)).toModuleIso) |
| 71 | (fun i j _ => (comparison I hI D hD).comm i j) |
| 72 | |
| 73 | theorem complexIso_hom : (complexIso I hI D hD).hom = comparison I hI D hD := rfl |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.KoszulCompletion |