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.GeometricComparison.Integral.ZeroForms |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Forms.CoordinateLinearity |
| 3 | import Mathlib.RingTheory.Etale.Kaehler |
| 4 | import Mathlib.RingTheory.Etale.Basic |
| 5 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 6 | import Mathlib.RingTheory.Localization.BaseChange |
| 7 | |
| 8 | /-! # Low Degree Localization -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.LowDegreeLocalization.IntegralLowDegreeLocalization |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Localization of the actual first two form modules over arbitrary base rings. -/ |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R A B : Type u) [CommRing R] [CommRing A] [CommRing B] |
| 22 | [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 23 | |
| 24 | def zeroEquiv : B ⊗[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 0 ≃ₗ[B] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R B 0 := |
| 25 | ((ZeroForms.IntegralZeroForms.equiv R A).baseChange A B _ _).trans |
| 26 | ((TensorProduct.AlgebraTensorModule.rid A B B).trans (ZeroForms.IntegralZeroForms.equiv R B).symm) |
| 27 | |
| 28 | omit [IsScalarTower R A B] in |
| 29 | theorem zero_symbol (b : B) (a : A) (v : Fin 0 → A) : |
| 30 | zeroEquiv R A B (b ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 31 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B (b * algebraMap A B a) (fun i => algebraMap A B (v i)) := by |
| 32 | apply (ZeroForms.IntegralZeroForms.equiv R B).injective |
| 33 | simp only [zeroEquiv, LinearEquiv.trans_apply, LinearEquiv.apply_symm_apply, |
| 34 | LinearEquiv.baseChange_tmul] |
| 35 | change TensorProduct.AlgebraTensorModule.rid A B B |
| 36 | (b ⊗ₜ[A] ZeroForms.IntegralZeroForms.toZero R A (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v)) = _ |
| 37 | rw [ZeroForms.IntegralZeroForms.toZero_symbol, TensorProduct.AlgebraTensorModule.rid_tmul] |
| 38 | change a • b = ZeroForms.IntegralZeroForms.toZero R B (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B _ _) |
| 39 | rw [ZeroForms.IntegralZeroForms.toZero_symbol, Algebra.smul_def, mul_comm] |
| 40 | |
| 41 | variable [Algebra.FormallyEtale A B] |
| 42 | |
| 43 | def oneEquiv : B ⊗[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 1 ≃ₗ[B] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R B 1 := |
| 44 | ((OneForms.IntegralOneForms.equiv R A).baseChange A B _ _).trans |
| 45 | ((KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B).trans |
| 46 | (OneForms.IntegralOneForms.equiv R B).symm) |
| 47 | |
| 48 | theorem one_symbol (b : B) (a : A) (v : Fin 1 → A) : |
| 49 | oneEquiv R A B (b ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 50 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B (b * algebraMap A B a) (fun i => algebraMap A B (v i)) := by |
| 51 | apply (OneForms.IntegralOneForms.equiv R B).injective |
| 52 | simp only [oneEquiv, LinearEquiv.trans_apply, LinearEquiv.apply_symm_apply, |
| 53 | LinearEquiv.baseChange_tmul] |
| 54 | change KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B |
| 55 | (b ⊗ₜ[A] OneForms.IntegralOneForms.toOne R A (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v)) = |
| 56 | OneForms.IntegralOneForms.toOne R B (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B _ _) |
| 57 | rw [OneForms.IntegralOneForms.toOne_symbol, |
| 58 | KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale_apply, |
| 59 | KaehlerDifferential.mapBaseChange_tmul, OneForms.IntegralOneForms.toOne_symbol, |
| 60 | map_smul, KaehlerDifferential.map_D] |
| 61 | rw [← IsScalarTower.algebraMap_smul B a, smul_smul] |
| 62 | |
| 63 | def equiv (n : ℕ) (hn : n ≤ 1) : B ⊗[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A n ≃ₗ[B] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R B n := by |
| 64 | cases n with |
| 65 | | zero => exact zeroEquiv R A B |
| 66 | | succ n => |
| 67 | have h : n = 0 := by omega |
| 68 | subst n |
| 69 | exact oneEquiv R A B |
| 70 | |
| 71 | theorem equiv_symbol (n : ℕ) (hn : n ≤ 1) (b : B) (a : A) (v : Fin n → A) : |
| 72 | equiv R A B n hn (b ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 73 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B (b * algebraMap A B a) (fun i => algebraMap A B (v i)) := by |
| 74 | rcases Nat.le_one_iff_eq_zero_or_eq_one.mp hn with rfl | rfl |
| 75 | · exact zero_symbol R A B b a v |
| 76 | · exact one_symbol R A B b a v |
| 77 | |
| 78 | theorem equiv_one_tmul (n : ℕ) (hn : n ≤ 1) (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A n) : |
| 79 | equiv R A B n hn (1 ⊗ₜ[A] ω) = Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B n ω := by |
| 80 | obtain ⟨x, rfl⟩ := Submodule.mkQ_surjective (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations R A n) ω |
| 81 | induction x using Finsupp.induction_linear with |
| 82 | | zero => simp only [map_zero, TensorProduct.tmul_zero] |
| 83 | | add x y hx hy => simp only [map_add, TensorProduct.tmul_add, hx, hy] |
| 84 | | single v a => |
| 85 | change equiv R A B n hn (1 ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 86 | Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B n (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) |
| 87 | rw [equiv_symbol, one_mul, Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap_symbol] |
| 88 | |
| 89 | theorem isBaseChange (n : ℕ) (hn : n ≤ 1) : |
| 90 | IsBaseChange B (Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B n) := by |
| 91 | have h := (TensorProduct.isBaseChange A (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A n) B).comp |
| 92 | (IsBaseChange.ofEquiv (equiv R A B n hn)) |
| 93 | have he : ((equiv R A B n hn).toLinearMap.restrictScalars A).comp |
| 94 | (TensorProduct.mk A B (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A n) 1) = Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B n := |
| 95 | LinearMap.ext (equiv_one_tmul R A B n hn) |
| 96 | exact he ▸ h |
| 97 | |
| 98 | omit [Algebra.FormallyEtale A B] in |
| 99 | theorem isLocalized (T : Submonoid A) [IsLocalization T B] (n : ℕ) (hn : n ≤ 1) : |
| 100 | IsLocalizedModule T (Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B n) := by |
| 101 | let : Algebra.FormallyEtale A B := Algebra.FormallyEtale.of_isLocalization T |
| 102 | exact (isLocalizedModule_iff_isBaseChange T B _).mpr (IntegralLowDegreeLocalization.isBaseChange R A B n hn) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.LowDegreeLocalization.IntegralLowDegreeLocalization |