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.ExteriorPowerBaseChange |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.ExteriorPowerCongr |
| 3 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.TwoForms |
| 4 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.LowDegreeLocalization |
| 5 | |
| 6 | /-! # Two Forms Etale -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.TwoFormsEtale.IntegralTwoFormsEtale |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Integral two-forms commute with flat formally étale coordinate extension, including localization at the prime two. -/ |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R A B : Type u) [CommRing R] [CommRing A] [CommRing B] |
| 20 | [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 21 | [Module.Flat A B] [Algebra.FormallyEtale A B] |
| 22 | |
| 23 | def equiv : B ⊗[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 2 ≃ₗ[B] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R B 2 := |
| 24 | ((TwoForms.IntegralTwoForms.equiv R A).baseChange A B _ _).trans |
| 25 | ((ExteriorPowerBaseChange.IntegralExteriorBaseChange.powerEquiv A B (KaehlerDifferential R A) 2).trans |
| 26 | ((ExteriorPowerCongr.ExteriorBaseChange.powerCongr 2 |
| 27 | (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B)).trans |
| 28 | (TwoForms.IntegralTwoForms.equiv R B).symm)) |
| 29 | |
| 30 | theorem equiv_symbol (b : B) (a : A) (v : Fin 2 → A) : |
| 31 | equiv R A B (b ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 32 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B (b * algebraMap A B a) (fun i => algebraMap A B (v i)) := by |
| 33 | apply (TwoForms.IntegralTwoForms.equiv R B).injective |
| 34 | simp only [equiv, LinearEquiv.trans_apply, LinearEquiv.apply_symm_apply, |
| 35 | LinearEquiv.baseChange_tmul, TwoForms.IntegralTwoForms.equiv_symbol, AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.exteriorSymbol, |
| 36 | TensorProduct.tmul_smul] |
| 37 | refine (congrArg (ExteriorPowerCongr.ExteriorBaseChange.powerCongr 2 |
| 38 | (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B)) |
| 39 | (ExteriorPowerBaseChange.IntegralExteriorBaseChange.powerEquiv_tmul_ιMulti A B (KaehlerDifferential R A) 2 |
| 40 | (a • b) (fun i => KaehlerDifferential.D R A (v i)))).trans ?_ |
| 41 | rw [map_smul, ExteriorPowerCongr.ExteriorBaseChange.powerCongr_ιMulti] |
| 42 | have h : (fun i => KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B |
| 43 | (1 ⊗ₜ[A] KaehlerDifferential.D R A (v i))) = |
| 44 | fun i => KaehlerDifferential.D R B (algebraMap A B (v i)) := by |
| 45 | funext i |
| 46 | exact (congrArg (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B) |
| 47 | (KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale_symm_D_algebraMap R A B (v i))).symm.trans |
| 48 | ((KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale R A B).apply_symm_apply _) |
| 49 | rw [h, Algebra.smul_def, mul_comm] |
| 50 | |
| 51 | theorem equiv_one_tmul (ω : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 2) : |
| 52 | equiv R A B (1 ⊗ₜ[A] ω) = Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B 2 ω := by |
| 53 | obtain ⟨x, rfl⟩ := (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.relations R A 2).mkQ_surjective ω |
| 54 | induction x using Finsupp.induction_linear with |
| 55 | | zero => simp only [map_zero, TensorProduct.tmul_zero] |
| 56 | | add x y hx hy => simp only [map_add, TensorProduct.tmul_add, hx, hy] |
| 57 | | single v a => |
| 58 | change equiv R A B (1 ⊗ₜ[A] AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) = |
| 59 | Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B 2 (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a v) |
| 60 | rw [equiv_symbol, one_mul, Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap_symbol] |
| 61 | |
| 62 | theorem isBaseChange : IsBaseChange B (Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B 2) := by |
| 63 | have h := (TensorProduct.isBaseChange A (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 2) B).comp (IsBaseChange.ofEquiv (equiv R A B)) |
| 64 | have he : ((equiv R A B).toLinearMap.restrictScalars A).comp |
| 65 | (TensorProduct.mk A B (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R A 2) 1) = Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B 2 := |
| 66 | LinearMap.ext (equiv_one_tmul R A B) |
| 67 | exact he ▸ h |
| 68 | |
| 69 | omit [Module.Flat A B] [Algebra.FormallyEtale A B] in |
| 70 | theorem isLocalized (T : Submonoid A) [IsLocalization T B] : |
| 71 | IsLocalizedModule T (Forms.CoordinateLinearity.FormsBaseChange.coordinateFormMap R A B 2) := by |
| 72 | let : Module.Flat A B := IsLocalization.flat B T |
| 73 | let : Algebra.FormallyEtale A B := Algebra.FormallyEtale.of_isLocalization T |
| 74 | exact (isLocalizedModule_iff_isBaseChange T B _).mpr (IntegralTwoFormsEtale.isBaseChange R A B) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.TwoFormsEtale.IntegralTwoFormsEtale |