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.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.NilpotentCechConstants |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CochainZero |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ModuleTensor |
| 4 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.LocalComplexRigidity |
| 5 | import Mathlib.RingTheory.Finiteness.Prod |
| 6 | import Mathlib.RingTheory.Flat.EquationalCriterion |
| 7 | |
| 8 | /-! # Cech Constants -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.CechConstants.Construction |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! A finite free model detects all degree-zero cycles from its |
| 15 | residue complex. The model need not contain a chosen lift of constants. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | variable {R : Type u} [CommRing R] |
| 21 | {C D : CochainComplex (ModuleCat.{u} R) ℕ} (φ : D ⟶ C) |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false in |
| 24 | theorem cochain_zero_cycle_eq_zero [QuasiIsoAt φ 0] |
| 25 | (x : D.X 0) (hx : D.d 0 1 x = 0) (hφx : φ.f 0 x = 0) : x = 0 := by |
| 26 | let z : (D.d 0 1).hom.ker := ⟨x, hx⟩ |
| 27 | have hz : Quotients.FiniteDescent.CochainZero.Construction.CochainZeroCycles.kernelEquiv φ z = 0 := by |
| 28 | apply Subtype.ext |
| 29 | rw [Quotients.FiniteDescent.CochainZero.Construction.CochainZeroCycles.kernelEquiv_apply_val] |
| 30 | exact hφx |
| 31 | have := (Quotients.FiniteDescent.CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).injective (hz.trans (map_zero _).symm) |
| 32 | exact congrArg Subtype.val this |
| 33 | |
| 34 | set_option backward.isDefEq.respectTransparency false in |
| 35 | theorem finite_model_residue_detector_injective |
| 36 | (k : Type u) [AddCommGroup k] [Module R k] [QuasiIsoAt (Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.map k φ) 0] |
| 37 | (a : R →ₗ[R] C.X 0) (e : C.X 0 →ₗ[R] R) |
| 38 | (hea : e.comp a = LinearMap.id) |
| 39 | (hres : Function.Exact (a.lTensor k) ((C.d 0 1).hom.lTensor k)) : |
| 40 | Function.Injective (((e.comp (φ.f 0).hom).prod (D.d 0 1).hom).lTensor k) := by |
| 41 | let b := (e.comp (φ.f 0).hom).prod (D.d 0 1).hom |
| 42 | apply (injective_iff_map_eq_zero _).mpr |
| 43 | intro x hx |
| 44 | change b.lTensor k x = 0 at hx |
| 45 | have he : (e.comp (φ.f 0).hom).lTensor k x = 0 := by |
| 46 | have h := congrArg ((LinearMap.fst R R (D.X 1)).lTensor k) hx |
| 47 | have hp : (LinearMap.fst R R (D.X 1)).comp b = e.comp (φ.f 0).hom := by ext z; rfl |
| 48 | simpa only [← LinearMap.lTensor_comp_apply, hp, map_zero] using h |
| 49 | have hd : (D.d 0 1).hom.lTensor k x = 0 := by |
| 50 | have h := congrArg ((LinearMap.snd R R (D.X 1)).lTensor k) hx |
| 51 | have hp : (LinearMap.snd R R (D.X 1)).comp b = (D.d 0 1).hom := by ext z; rfl |
| 52 | simpa only [← LinearMap.lTensor_comp_apply, hp, map_zero] using h |
| 53 | let y := (φ.f 0).hom.lTensor k x |
| 54 | have hy : (C.d 0 1).hom.lTensor k y = 0 := by |
| 55 | have hc : (C.d 0 1).hom.comp (φ.f 0).hom = (φ.f 1).hom.comp (D.d 0 1).hom := |
| 56 | congrArg ModuleCat.Hom.hom (φ.comm 0 1) |
| 57 | change (C.d 0 1).hom.lTensor k ((φ.f 0).hom.lTensor k x) = 0 |
| 58 | rw [← LinearMap.lTensor_comp_apply, hc, LinearMap.lTensor_comp_apply, hd, map_zero] |
| 59 | obtain ⟨r, hr⟩ := (hres y).mp hy |
| 60 | have hr0 : r = 0 := by |
| 61 | have h : e.lTensor k y = 0 := by |
| 62 | simpa only [y, ← LinearMap.lTensor_comp_apply] using he |
| 63 | rw [← hr, ← LinearMap.lTensor_comp_apply, hea, LinearMap.lTensor_id, LinearMap.id_apply] at h |
| 64 | exact h |
| 65 | have hy0 : y = 0 := by rw [← hr, hr0, map_zero] |
| 66 | exact cochain_zero_cycle_eq_zero (Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.map k φ) x hd hy0 |
| 67 | |
| 68 | set_option backward.isDefEq.respectTransparency false in |
| 69 | theorem finite_model_cycle_constants [IsLocalRing R] [QuasiIsoAt φ 0] |
| 70 | [Module.Finite R (D.X 0)] [Module.Finite R (D.X 1)] [Module.Free R (D.X 1)] |
| 71 | [QuasiIsoAt (Quotients.FiniteDescent.ModuleTensor.Construction.ModuleTensorFunctor.map (IsLocalRing.ResidueField R) φ) 0] |
| 72 | (a : R →ₗ[R] C.X 0) (e : C.X 0 →ₗ[R] R) |
| 73 | (hea : e.comp a = LinearMap.id) (hda : (C.d 0 1).hom.comp a = 0) |
| 74 | (hres : Function.Exact (a.lTensor (IsLocalRing.ResidueField R)) |
| 75 | ((C.d 0 1).hom.lTensor (IsLocalRing.ResidueField R))) |
| 76 | (x : C.X 0) (hx : C.d 0 1 x = 0) : x = a (e x) := by |
| 77 | let b := (e.comp (φ.f 0).hom).prod (D.d 0 1).hom |
| 78 | have : Module.Flat R (R × D.X 1) := Quotients.FiniteDescent.FlatKernelProd.Construction.FlatKernel.prod |
| 79 | have : Module.Free R (R × D.X 1) := Module.free_of_flat_of_isLocalRing |
| 80 | have hb : Function.Injective b := Quotients.FiniteDescent.LocalComplexRigidity.Construction.LocalSectionLifting.linearMap_injective_of_residue_injective b |
| 81 | (finite_model_residue_detector_injective φ (IsLocalRing.ResidueField R) a e hea hres) |
| 82 | let z : (C.d 0 1).hom.ker := ⟨x - a (e x), by |
| 83 | change (C.d 0 1).hom (x - a (e x)) = 0 |
| 84 | rw [map_sub, hx, ← LinearMap.comp_apply, hda, LinearMap.zero_apply, sub_self]⟩ |
| 85 | let w := (Quotients.FiniteDescent.CochainZero.Construction.CochainZeroCycles.kernelEquiv φ).symm z |
| 86 | have hw : φ.f 0 w.val = z.val := by |
| 87 | rw [← Quotients.FiniteDescent.CochainZero.Construction.CochainZeroCycles.kernelEquiv_apply_val, LinearEquiv.apply_symm_apply] |
| 88 | have hw0 : b w.val = 0 := by |
| 89 | apply Prod.ext |
| 90 | · change e (φ.f 0 w.val) = 0 |
| 91 | rw [hw] |
| 92 | change e (x - a (e x)) = 0 |
| 93 | rw [map_sub, ← LinearMap.comp_apply, hea, LinearMap.id_apply, sub_self] |
| 94 | · exact w.property |
| 95 | have hzero : w.val = 0 := hb (hw0.trans (map_zero b).symm) |
| 96 | have hz : z.val = 0 := by rw [← hw, hzero, map_zero] |
| 97 | exact sub_eq_zero.mp hz |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.CechConstants.Construction |