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.Quotient.CoefficientEvaluation |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.DualFrame |
| 3 | |
| 4 | /-! # Dual Frame Coefficient Purity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DualFrameCoefficientPurity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite dual-frame coefficients in local purity. The map to the quotient dual is |
| 11 | canonical evaluation; a basis is used only to prove its bijectivity. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CohomologyMaps OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.CoefficientEvaluation |
| 19 | |
| 20 | variable (R Q : Type u) [CommRing R] [CommRing Q] [Algebra R Q] |
| 21 | (hQ : Function.Surjective (algebraMap R Q)) |
| 22 | (T : ModuleCat.{u} R) (n : ℕ) |
| 23 | (P : ProjectiveResolution (ModuleCat.of R Q)) |
| 24 | (e : Quotient.CoefficientEvaluation.group R T n P ≅ ModuleCat.of R Q) |
| 25 | |
| 26 | @[simp] theorem point_one : Quotient.CoefficientEvaluation.point R Q Q 1 = 𝟙 (ModuleCat.of R Q) := by |
| 27 | ext q |
| 28 | exact mul_one q |
| 29 | |
| 30 | theorem scalar_evaluation (x : Quotient.CoefficientEvaluation.group R T n P) (q : Q) : |
| 31 | Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e Q P x q = q * e.hom x := by |
| 32 | calc |
| 33 | _ = Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e Q P x (q • (1 : Q)) := by rw [smul_eq_mul, mul_one] |
| 34 | _ = q * Quotient.CoefficientEvaluation.evaluation R Q T n P e Q P 1 x := |
| 35 | Quotient.CoefficientEvaluation.evaluation_smul R Q hQ T n P e Q P q 1 x |
| 36 | _ = _ := by simp [Quotient.CoefficientEvaluation.evaluation, point_one] |
| 37 | |
| 38 | variable (M : Type u) [AddCommGroup M] [Module Q M] [Module R M] [IsScalarTower R Q M] |
| 39 | (PM : ProjectiveResolution (ModuleCat.of R M)) |
| 40 | {ι : Type u} [Fintype ι] (b : Finite.DualFrame.Frame Q M ι) |
| 41 | |
| 42 | def projection (i : ι) : ModuleCat.of R M ⟶ ModuleCat.of R Q := |
| 43 | ModuleCat.ofHom ((b.coord i).restrictScalars R) |
| 44 | |
| 45 | theorem sum_projection_point : |
| 46 | ∑ i, projection R Q M b i ≫ Quotient.CoefficientEvaluation.point R Q M (b.vector i) = 𝟙 (ModuleCat.of R M) := by |
| 47 | ext m |
| 48 | simpa only [ModuleCat.hom_sum, LinearMap.sum_apply, ModuleCat.hom_comp, |
| 49 | LinearMap.comp_apply, ModuleCat.hom_id, LinearMap.id_apply, projection, |
| 50 | ModuleCat.hom_ofHom, LinearMap.restrictScalars_apply, Quotient.CoefficientEvaluation.point, LinearMap.toSpanSingleton_apply] using b.reconstruct m |
| 51 | |
| 52 | def inverse : (M →ₗ[Q] Q) →ₗ[R] Quotient.CoefficientEvaluation.group R T n PM := |
| 53 | ∑ i, (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (projection R Q M b i) n).hom.comp |
| 54 | (e.inv.hom.comp ((LinearMap.applyₗ (R := Q) (b.vector i)).restrictScalars R)) |
| 55 | |
| 56 | theorem inverse_apply (f : M →ₗ[Q] Q) : |
| 57 | inverse R Q T n P e M PM b f = |
| 58 | ∑ i, Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (projection R Q M b i) n (e.inv (f (b.vector i))) := by |
| 59 | simp only [inverse, LinearMap.sum_apply, LinearMap.comp_apply, |
| 60 | LinearMap.restrictScalars_apply, LinearMap.applyₗ_apply_apply] |
| 61 | |
| 62 | theorem right_inverse (f : M →ₗ[Q] Q) : |
| 63 | Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e M PM (inverse R Q T n P e M PM b f) = f := by |
| 64 | ext m |
| 65 | rw [inverse_apply, _root_.map_sum] |
| 66 | simp only [LinearMap.sum_apply] |
| 67 | have hn (i : ι) := Quotient.CoefficientEvaluation.naturality R Q hQ T n P e M PM Q P (b.coord i) (e.inv (f (b.vector i))) m |
| 68 | calc |
| 69 | _ = ∑ i, Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e Q P (e.inv (f (b.vector i))) (b.coord i m) := |
| 70 | Finset.sum_congr rfl (fun i _ => hn i) |
| 71 | _ = ∑ i, b.coord i m * f (b.vector i) := by |
| 72 | apply Finset.sum_congr rfl |
| 73 | intro i _ |
| 74 | rw [scalar_evaluation] |
| 75 | simp |
| 76 | _ = f m := by |
| 77 | have hf := congrArg f (b.reconstruct m) |
| 78 | simpa only [_root_.map_sum, LinearMap.map_smul, smul_eq_mul] using hf |
| 79 | |
| 80 | theorem left_inverse (x : Quotient.CoefficientEvaluation.group R T n PM) : |
| 81 | inverse R Q T n P e M PM b (Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e M PM x) = x := by |
| 82 | rw [inverse_apply] |
| 83 | have h := congrArg (fun f => Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM PM f n) (sum_projection_point R Q M b) |
| 84 | rw [Resolution.CohomologyMaps.map_sum, Resolution.CohomologyMaps.map_id] at h |
| 85 | simp_rw [Resolution.CohomologyMaps.map_comp _ PM P PM] at h |
| 86 | have hx := ConcreteCategory.congr_hom h x |
| 87 | calc |
| 88 | _ = ∑ i, Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) PM P (projection R Q M b i) n |
| 89 | (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M (b.vector i)) n x) := by |
| 90 | apply Finset.sum_congr rfl |
| 91 | intro i _ |
| 92 | congr 1 |
| 93 | change e.inv (e.hom (Resolution.CohomologyMaps.map (Resolution.CohomologyMaps.homFunctor R T) P PM (Quotient.CoefficientEvaluation.point R Q M (b.vector i)) n x)) = _ |
| 94 | exact Iso.hom_inv_id_apply e _ |
| 95 | _ = x := by |
| 96 | simpa only [ModuleCat.comp_apply, ModuleCat.hom_sum, |
| 97 | LinearMap.sum_apply, ModuleCat.id_apply] using hx |
| 98 | |
| 99 | def equiv : Quotient.CoefficientEvaluation.group R T n PM ≃ₗ[R] (M →ₗ[Q] Q) := |
| 100 | { Quotient.CoefficientEvaluation.dualMap R Q hQ T n P e M PM with |
| 101 | invFun := inverse R Q T n P e M PM b |
| 102 | left_inv := left_inverse R Q hQ T n P e M PM b |
| 103 | right_inv := right_inverse R Q hQ T n P e M PM b } |
| 104 | |
| 105 | @[simp] theorem equiv_apply (x : Quotient.CoefficientEvaluation.group R T n PM) (m : M) : |
| 106 | equiv R Q hQ T n P e M PM b x m = Quotient.CoefficientEvaluation.evaluation R Q T n P e M PM m x := rfl |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DualFrameCoefficientPurity |