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.ScalarKoszul |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ProjectiveResolution |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.OrientedTopCohomology |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 5 | |
| 6 | /-! # Koszul Resolution -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulResolution |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The exterior Koszul complex as a projective resolution with its literal |
| 13 | augmentation to the original quotient. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.OrientedTopCohomology |
| 21 | AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction |
| 22 | |
| 23 | universe u |
| 24 | variable (R : Type u) [CommRing R] {n : ℕ} (s : Fin n → R) |
| 25 | |
| 26 | theorem equation_range : (Koszul.GeneratorMatrix.equation R s).range = Koszul.OrientedTopCohomology.ideal R s := by |
| 27 | apply le_antisymm |
| 28 | · rintro x ⟨v, rfl⟩ |
| 29 | rw [Koszul.GeneratorMatrix.equation_apply] |
| 30 | apply Submodule.sum_mem |
| 31 | intro i _ |
| 32 | exact Ideal.mul_mem_right _ _ (Ideal.subset_span (Set.mem_range_self i)) |
| 33 | · apply Ideal.span_le.mpr |
| 34 | rintro x ⟨i, rfl⟩ |
| 35 | refine ⟨Pi.single i 1, ?_⟩ |
| 36 | simp [Koszul.GeneratorMatrix.equation_apply, Pi.single_apply] |
| 37 | |
| 38 | theorem contraction_zero (x : ⋀[R]^1 (Fin n → R)) : |
| 39 | exteriorPower.zeroEquiv R _ (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) 0 x) = |
| 40 | Koszul.GeneratorMatrix.equation R s (exteriorPower.oneEquiv R _ x) := by |
| 41 | have he : (exteriorPower.zeroEquiv R _).toLinearMap.comp (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) 0) = |
| 42 | (Koszul.GeneratorMatrix.equation R s).comp (exteriorPower.oneEquiv R _).toLinearMap := by |
| 43 | apply LinearMap.ext_on (exteriorPower.ιMulti_span R 1 (Fin n → R)) |
| 44 | rintro _ ⟨v, rfl⟩ |
| 45 | let z : Fin 0 → (Fin n → R) := fun i => Fin.elim0 i |
| 46 | have hv : v = Fin.cons (v 0) z := by ext i; fin_cases i; rfl |
| 47 | change exteriorPower.zeroEquiv R _ |
| 48 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) 0 (exteriorPower.ιMulti R 1 v)) = _ |
| 49 | rw [hv, ← AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge_ιMulti, AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction_wedge_zero, map_smul, |
| 50 | exteriorPower.zeroEquiv_ιMulti, smul_eq_mul, mul_one] |
| 51 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.wedge_ιMulti] |
| 52 | exact (congrArg (Koszul.GeneratorMatrix.equation R s) |
| 53 | (exteriorPower.oneEquiv_ιMulti (R := R) (Fin.cons (v 0) z))).symm |
| 54 | exact LinearMap.congr_fun he x |
| 55 | |
| 56 | def augmentationZero : (Koszul.OrientedTopCohomology.koszul R s).X 0 ⟶ ModuleCat.of R (R ⧸ Koszul.OrientedTopCohomology.ideal R s) := |
| 57 | ModuleCat.ofHom ((Koszul.OrientedTopCohomology.ideal R s).mkQ.comp (exteriorPower.zeroEquiv R _).toLinearMap) |
| 58 | |
| 59 | theorem augmentationZero_condition : (Koszul.OrientedTopCohomology.koszul R s).d 1 0 ≫ augmentationZero R s = 0 := by |
| 60 | rw [KoszulHomotopy.complex_d] |
| 61 | apply ModuleCat.hom_ext |
| 62 | apply LinearMap.ext |
| 63 | intro x |
| 64 | change (Koszul.OrientedTopCohomology.ideal R s).mkQ (exteriorPower.zeroEquiv R _ |
| 65 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Koszul.GeneratorMatrix.equation R s) 0 x)) = 0 |
| 66 | rw [contraction_zero, Submodule.mkQ_apply, Submodule.Quotient.mk_eq_zero] |
| 67 | rw [← equation_range] |
| 68 | exact LinearMap.mem_range_self _ _ |
| 69 | |
| 70 | theorem augmentationZero_exact : |
| 71 | (ShortComplex.mk _ _ (augmentationZero_condition R s)).Exact := by |
| 72 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 73 | intro x hx |
| 74 | have hx' : exteriorPower.zeroEquiv R _ x ∈ Koszul.OrientedTopCohomology.ideal R s := |
| 75 | (Submodule.Quotient.mk_eq_zero _).mp hx |
| 76 | rw [← equation_range] at hx' |
| 77 | obtain ⟨v, hv⟩ := hx' |
| 78 | refine ⟨(exteriorPower.oneEquiv R _).symm v, ?_⟩ |
| 79 | change (Koszul.OrientedTopCohomology.koszul R s).d 1 0 _ = x |
| 80 | rw [KoszulHomotopy.complex_d] |
| 81 | apply (exteriorPower.zeroEquiv R _).injective |
| 82 | erw [contraction_zero, LinearEquiv.apply_symm_apply] |
| 83 | exact hv |
| 84 | |
| 85 | instance augmentationZero_epi : Epi (augmentationZero R s) := by |
| 86 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 87 | exact (Submodule.mkQ_surjective _).comp (exteriorPower.zeroEquiv R _).surjective |
| 88 | |
| 89 | theorem term_free (m : ℕ) : Module.Free R ((Koszul.OrientedTopCohomology.koszul R s).X m) := by |
| 90 | let e := ScalarKoszul.Comparison.iso R s |
| 91 | let f := (Koszul.OrientedTopCohomology.koszul R s).extendXIso ScalarKoszul.Comparison.shape (i := m) rfl |
| 92 | let g := (HomologicalComplex.eval _ _ (ScalarKoszul.Comparison.shape.f m)).mapIso e |
| 93 | let : Module.Free R |
| 94 | ↑((HomologicalComplex.eval (ModuleCat R) (.up ℤ) (ScalarKoszul.Comparison.shape.f m)).obj |
| 95 | (RegularSequenceKoszul.complex (ModuleCat.of R R) (List.ofFn s))) := |
| 96 | RegularSequenceKoszul.term_free (ModuleCat.of R R) (List.ofFn s) |
| 97 | (ScalarKoszul.Comparison.shape.f m) |
| 98 | exact Module.Free.of_equiv (g.symm ≪≫ f).toLinearEquiv |
| 99 | |
| 100 | instance term_projective (m : ℕ) : Projective ((Koszul.OrientedTopCohomology.koszul R s).X m) := by |
| 101 | let := term_free R s m |
| 102 | infer_instance |
| 103 | |
| 104 | theorem exactAt_succ (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) (m : ℕ) : |
| 105 | (Koszul.OrientedTopCohomology.koszul R s).ExactAt (m + 1) := by |
| 106 | obtain ⟨ε, hε⟩ := ScalarKoszul.Comparison.exists_augmentation R s hs |
| 107 | let := hε |
| 108 | apply ((Koszul.OrientedTopCohomology.koszul R s).extend_exactAt_iff ScalarKoszul.Comparison.shape |
| 109 | (j := m + 1) rfl).mp |
| 110 | apply (exactAt_iff_of_quasiIsoAt ε _).mpr |
| 111 | exact exactAt_single_obj _ _ _ _ (by |
| 112 | change 0 - ((m + 1 : ℕ) : ℤ) ≠ 0 |
| 113 | omega) |
| 114 | |
| 115 | def resolution (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) : |
| 116 | ProjectiveResolution (ModuleCat.of R (R ⧸ Koszul.OrientedTopCohomology.ideal R s)) := |
| 117 | Augmented.ProjectiveResolution.resolution (Koszul.OrientedTopCohomology.koszul R s) _ (augmentationZero R s) |
| 118 | (augmentationZero_condition R s) (exactAt_succ R s hs) (augmentationZero_exact R s) |
| 119 | |
| 120 | @[simp] theorem resolution_π_f_zero (hs : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) : |
| 121 | (resolution R s hs).π.f 0 = augmentationZero R s := |
| 122 | Augmented.ProjectiveResolution.resolution_π_f_zero _ _ _ _ _ _ |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulResolution |