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.KoszulResolution |
| 2 | |
| 3 | /-! # Koszul Basis Resolution -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulBasisResolution |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual exterior Koszul resolution in an arbitrary finite basis, |
| 10 | with its literal quotient augmentation. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 12 | set_option backward.defeqAttrib.useBackward true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | {V W : Type u} [AddCommGroup V] [Module R V] [AddCommGroup W] [Module R W] |
| 18 | |
| 19 | def complexIso (s : Module.Dual R V) (t : Module.Dual R W) |
| 20 | (e : V ≃ₗ[R] W) (h : t.comp e.toLinearMap = s) : |
| 21 | KoszulComplex.complex R V s ≅ KoszulComplex.complex R W t where |
| 22 | hom := KoszulComplex.map R V W s t e.toLinearMap h |
| 23 | inv := KoszulComplex.map R W V t s e.symm.toLinearMap (by |
| 24 | ext x |
| 25 | exact (LinearMap.congr_fun h (e.symm x)).symm.trans (by simp)) |
| 26 | hom_inv_id := by |
| 27 | apply HomologicalComplex.Hom.ext |
| 28 | funext n |
| 29 | apply ModuleCat.hom_ext |
| 30 | change (exteriorPower.map n e.symm.toLinearMap).comp |
| 31 | (exteriorPower.map n e.toLinearMap) = LinearMap.id |
| 32 | rw [← exteriorPower.map_comp] |
| 33 | simp |
| 34 | inv_hom_id := by |
| 35 | apply HomologicalComplex.Hom.ext |
| 36 | funext n |
| 37 | apply ModuleCat.hom_ext |
| 38 | change (exteriorPower.map n e.toLinearMap).comp |
| 39 | (exteriorPower.map n e.symm.toLinearMap) = LinearMap.id |
| 40 | rw [← exteriorPower.map_comp] |
| 41 | simp |
| 42 | |
| 43 | variable {n : ℕ} (b : Module.Basis (Fin n) R V) (s : Module.Dual R V) |
| 44 | |
| 45 | theorem equation_basis : s.comp b.equivFun.symm.toLinearMap = |
| 46 | Koszul.GeneratorMatrix.equation R (fun i => s (b i)) := by |
| 47 | apply (Pi.basisFun R (Fin n)).ext |
| 48 | intro i |
| 49 | simp [LinearMap.comp_apply, Pi.basisFun_apply, Module.Basis.equivFun_symm_apply, |
| 50 | Koszul.GeneratorMatrix.equation_apply, Pi.single_apply] |
| 51 | |
| 52 | def basisIso : Koszul.OrientedTopCohomology.koszul R (fun i => s (b i)) ≅ |
| 53 | KoszulComplex.complex R V s := |
| 54 | complexIso R _ s b.equivFun.symm (equation_basis R b s) |
| 55 | |
| 56 | abbrev ideal : Ideal R := Koszul.OrientedTopCohomology.ideal R (fun i => s (b i)) |
| 57 | |
| 58 | def resolution (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (fun i => s (b i)))) : |
| 59 | ProjectiveResolution (ModuleCat.of R (R ⧸ ideal R b s)) where |
| 60 | complex := KoszulComplex.complex R V s |
| 61 | projective k := Projective.of_iso |
| 62 | ((HomologicalComplex.eval _ _ k).mapIso (basisIso R b s)) |
| 63 | (KoszulResolution.term_projective R (fun i => s (b i)) k) |
| 64 | π := (basisIso R b s).inv ≫ (KoszulResolution.resolution R _ hreg).π |
| 65 | quasiIso := by |
| 66 | have := (KoszulResolution.resolution R _ hreg).quasiIso |
| 67 | exact quasiIso_comp _ _ |
| 68 | |
| 69 | theorem resolution_π_zero |
| 70 | (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn (fun i => s (b i)))) : |
| 71 | (resolution R b s hreg).π.f 0 = |
| 72 | ModuleCat.ofHom ((ideal R b s).mkQ.comp (exteriorPower.zeroEquiv R V).toLinearMap) := by |
| 73 | rw [show (resolution R b s hreg).π.f 0 = (basisIso R b s).inv.f 0 ≫ |
| 74 | (KoszulResolution.resolution R _ hreg).π.f 0 from rfl, |
| 75 | KoszulResolution.resolution_π_f_zero] |
| 76 | apply ModuleCat.hom_ext |
| 77 | apply LinearMap.ext |
| 78 | intro x |
| 79 | change (ideal R b s).mkQ (exteriorPower.zeroEquiv R _ |
| 80 | (exteriorPower.map 0 b.equivFun.toLinearMap x)) = |
| 81 | (ideal R b s).mkQ (exteriorPower.zeroEquiv R V x) |
| 82 | exact congrArg (ideal R b s).mkQ |
| 83 | (LinearMap.congr_fun (exteriorPower.zeroEquiv_naturality b.equivFun.toLinearMap) x) |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulBasisResolution |