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.DualFrameCoefficientPurity |
| 2 | |
| 3 | /-! # Coefficient Purity -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.CoefficientPurity |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite projective coefficient purity with values in the actual |
| 10 | scalar Ext module. No trivialization of that module is required. |
| 11 | The only chosen frame is a finite dual frame used to prove bijectivity. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CohomologyMaps OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.CoefficientEvaluation |
| 20 | |
| 21 | variable (R Q : Type u) [CommRing R] [CommRing Q] [Algebra R Q] |
| 22 | (hQ : Function.Surjective (algebraMap R Q)) |
| 23 | (T : ModuleCat.{u} R) (n : ℕ) (P : ProjectiveResolution (ModuleCat.of R Q)) |
| 24 | (L : Type u) [AddCommGroup L] [Module Q L] [Module R L] [IsScalarTower R Q L] |
| 25 | (eL : Quotient.CoefficientEvaluation.group R T n P ≅ ModuleCat.of R L) |
| 26 | (M : Type u) [AddCommGroup M] [Module Q M] [Module R M] [IsScalarTower R Q M] |
| 27 | (PM : ProjectiveResolution (ModuleCat.of R M)) |
| 28 | |
| 29 | def evaluation (m : M) : Quotient.CoefficientEvaluation.group R T n PM ⟶ ModuleCat.of R L := |
| 30 | Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M m) n ≫ eL.hom |
| 31 | |
| 32 | omit [Module Q L] [IsScalarTower R Q L] in |
| 33 | theorem evaluation_add (m m' : M) : |
| 34 | evaluation R Q T n P L eL M PM (m + m') = |
| 35 | evaluation R Q T n P L eL M PM m + evaluation R Q T n P L eL M PM m' := by |
| 36 | simp only [evaluation, Quotient.CoefficientEvaluation.point_add, Resolution.CohomologyMaps.map_add, Preadditive.add_comp] |
| 37 | |
| 38 | include hQ in |
| 39 | theorem evaluation_smul (q : Q) (m : M) (x : Quotient.CoefficientEvaluation.group R T n PM) : |
| 40 | evaluation R Q T n P L eL M PM (q • m) x = |
| 41 | q • evaluation R Q T n P L eL M PM m x := by |
| 42 | obtain ⟨r, rfl⟩ := hQ q |
| 43 | rw [IsScalarTower.algebraMap_smul Q r m, IsScalarTower.algebraMap_smul Q] |
| 44 | simp only [evaluation, Quotient.CoefficientEvaluation.point_smul, Resolution.CohomologyMaps.map_smul, Linear.smul_comp] |
| 45 | rfl |
| 46 | |
| 47 | def dualMap : Quotient.CoefficientEvaluation.group R T n PM →ₗ[R] (M →ₗ[Q] L) where |
| 48 | toFun x := |
| 49 | { toFun := fun m => evaluation R Q T n P L eL M PM m x |
| 50 | map_add' := fun m m' => by rw [evaluation_add]; rfl |
| 51 | map_smul' := fun q m => evaluation_smul R Q hQ T n P L eL M PM q m x } |
| 52 | map_add' x y := by ext m; exact (evaluation R Q T n P L eL M PM m).hom.map_add x y |
| 53 | map_smul' r x := by ext m; exact (evaluation R Q T n P L eL M PM m).hom.map_smul r x |
| 54 | |
| 55 | @[simp] theorem dualMap_apply (x : Quotient.CoefficientEvaluation.group R T n PM) (m : M) : |
| 56 | dualMap R Q hQ T n P L eL M PM x m = |
| 57 | eL.hom (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M m) n x) := rfl |
| 58 | |
| 59 | variable (M' : Type u) [AddCommGroup M'] [Module Q M'] [Module R M'] [IsScalarTower R Q M'] |
| 60 | (PM' : ProjectiveResolution (ModuleCat.of R M')) |
| 61 | |
| 62 | theorem naturality (f : M →ₗ[Q] M') (x : Quotient.CoefficientEvaluation.group R T n PM') (m : M) : |
| 63 | dualMap R Q hQ T n P L eL M PM |
| 64 | (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM PM' (ModuleCat.ofHom (f.restrictScalars R)) n x) m = |
| 65 | dualMap R Q hQ T n P L eL M' PM' x (f m) := by |
| 66 | have hf : Quotient.CoefficientEvaluation.point R Q M m ≫ ModuleCat.ofHom (f.restrictScalars R) = Quotient.CoefficientEvaluation.point R Q M' (f m) := by |
| 67 | ext q |
| 68 | exact f.map_smul q m |
| 69 | simp only [dualMap_apply] |
| 70 | rw [← hf, Resolution.CohomologyMaps.map_comp] |
| 71 | rfl |
| 72 | |
| 73 | theorem scalar_evaluation (x : Quotient.CoefficientEvaluation.group R T n P) (q : Q) : |
| 74 | dualMap R Q hQ T n P L eL Q P x q = q • eL.hom x := by |
| 75 | calc |
| 76 | _ = dualMap R Q hQ T n P L eL Q P x (q • (1 : Q)) := by rw [smul_eq_mul, mul_one] |
| 77 | _ = q • evaluation R Q T n P L eL Q P 1 x := |
| 78 | evaluation_smul R Q hQ T n P L eL Q P q 1 x |
| 79 | _ = _ := by |
| 80 | simp only [evaluation, DualFrameCoefficientPurity.point_one, Resolution.CohomologyMaps.map_id, Category.id_comp] |
| 81 | |
| 82 | section Frame |
| 83 | variable {ι : Type u} [Fintype ι] (b : IntegralComparison.Finite.DualFrame.Frame Q M ι) |
| 84 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DualFrameCoefficientPurity (projection sum_projection_point) |
| 85 | |
| 86 | def inverse : (M →ₗ[Q] L) →ₗ[R] Quotient.CoefficientEvaluation.group R T n PM := |
| 87 | ∑ i, (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (DualFrameCoefficientPurity.projection R Q M b i) n).hom.comp |
| 88 | (eL.inv.hom.comp ((LinearMap.applyₗ (R := Q) (b.vector i)).restrictScalars R)) |
| 89 | |
| 90 | theorem inverse_apply (f : M →ₗ[Q] L) : |
| 91 | inverse R Q T n P L eL M PM b f = |
| 92 | ∑ i, Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (DualFrameCoefficientPurity.projection R Q M b i) n (eL.inv (f (b.vector i))) := by |
| 93 | simp only [inverse, LinearMap.sum_apply, LinearMap.comp_apply, |
| 94 | LinearMap.restrictScalars_apply, LinearMap.applyₗ_apply_apply] |
| 95 | |
| 96 | theorem right_inverse (f : M →ₗ[Q] L) : |
| 97 | dualMap R Q hQ T n P L eL M PM (inverse R Q T n P L eL M PM b f) = f := by |
| 98 | ext m |
| 99 | rw [inverse_apply, _root_.map_sum] |
| 100 | simp only [LinearMap.sum_apply] |
| 101 | have hn (i : ι) := naturality R Q hQ T n P L eL M PM Q P |
| 102 | (b.coord i) (eL.inv (f (b.vector i))) m |
| 103 | calc |
| 104 | _ = ∑ i, dualMap R Q hQ T n P L eL Q P (eL.inv (f (b.vector i))) (b.coord i m) := |
| 105 | Finset.sum_congr rfl (fun i _ => hn i) |
| 106 | _ = ∑ i, b.coord i m • f (b.vector i) := by |
| 107 | apply Finset.sum_congr rfl |
| 108 | intro i _ |
| 109 | rw [scalar_evaluation, Iso.inv_hom_id_apply] |
| 110 | _ = f m := by |
| 111 | have hf := congrArg f (b.reconstruct m) |
| 112 | simpa only [_root_.map_sum, LinearMap.map_smul] using hf |
| 113 | |
| 114 | theorem left_inverse (x : Quotient.CoefficientEvaluation.group R T n PM) : |
| 115 | inverse R Q T n P L eL M PM b (dualMap R Q hQ T n P L eL M PM x) = x := by |
| 116 | rw [inverse_apply] |
| 117 | have h := congrArg (fun f => Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM PM f n) (DualFrameCoefficientPurity.sum_projection_point R Q M b) |
| 118 | rw [Resolution.CohomologyMaps.map_sum, Resolution.CohomologyMaps.map_id] at h |
| 119 | simp_rw [Resolution.CohomologyMaps.map_comp _ PM P PM] at h |
| 120 | have hx := ConcreteCategory.congr_hom h x |
| 121 | calc |
| 122 | _ = ∑ i, Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (DualFrameCoefficientPurity.projection R Q M b i) n |
| 123 | (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M (b.vector i)) n x) := by |
| 124 | apply Finset.sum_congr rfl |
| 125 | intro i _ |
| 126 | rw [dualMap_apply, Iso.hom_inv_id_apply] |
| 127 | _ = x := by |
| 128 | simpa only [ModuleCat.comp_apply, ModuleCat.hom_sum, LinearMap.sum_apply, ModuleCat.id_apply] using hx |
| 129 | |
| 130 | def frameEquiv : Quotient.CoefficientEvaluation.group R T n PM ≃ₗ[R] (M →ₗ[Q] L) := |
| 131 | { dualMap R Q hQ T n P L eL M PM with |
| 132 | invFun := inverse R Q T n P L eL M PM b |
| 133 | left_inv := left_inverse R Q hQ T n P L eL M PM b |
| 134 | right_inv := right_inverse R Q hQ T n P L eL M PM b } |
| 135 | end Frame |
| 136 | |
| 137 | variable [Module.Finite Q M] [Module.Projective Q M] |
| 138 | |
| 139 | def equiv : Quotient.CoefficientEvaluation.group R T n PM ≃ₗ[R] (M →ₗ[Q] L) := |
| 140 | LinearEquiv.ofBijective (dualMap R Q hQ T n P L eL M PM) (by |
| 141 | obtain ⟨ι, hι, hb⟩ := IntegralComparison.Finite.DualFrame.exists_frame Q M |
| 142 | let := hι |
| 143 | exact (frameEquiv R Q hQ T n P L eL M PM hb.some).bijective) |
| 144 | |
| 145 | @[simp] theorem equiv_apply (x : Quotient.CoefficientEvaluation.group R T n PM) (m : M) : |
| 146 | equiv R Q hQ T n P L eL M PM x m = |
| 147 | eL.hom (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M m) n x) := rfl |
| 148 | |
| 149 | end |
| 150 | |
| 151 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.CoefficientPurity |