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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.DualFunctor |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.BaseChangeComplex |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.FreeDualBaseChange |
| 4 | |
| 5 | /-! # Dual Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.DualBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Duals of finite free modules commute with the actual scalar extension. The comparison respects differentials, so exactness of a field fiber passes to the reversed dual short complex. -/ |
| 12 | open _root_.CategoryTheory |
| 13 | open scoped TensorProduct |
| 14 | universe u |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | variable (B : Type u) [CommRing B] [Algebra R B] |
| 17 | |
| 18 | def moduleDualBaseChangeEquiv |
| 19 | (M : Type u) [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Free R M] : |
| 20 | B ⊗[R] Module.Dual R M ≃ₗ[B] Module.Dual B (B ⊗[R] M) := |
| 21 | HilbertConstruction.Finite.FreeDualBaseChange.IsBaseChange.toDualBaseChange (TensorProduct.isBaseChange R M B) |
| 22 | |
| 23 | theorem moduleDualBaseChangeEquiv_tmul_one |
| 24 | (M : Type u) [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Free R M] |
| 25 | (b : B) (ℓ : Module.Dual R M) (m : M) : |
| 26 | moduleDualBaseChangeEquiv (R := R) B M (b ⊗ₜ[R] ℓ) (1 ⊗ₜ[R] m) = |
| 27 | b * algebraMap R B (ℓ m) := |
| 28 | HilbertConstruction.Finite.FreeDualBaseChange.IsBaseChange.toDualBaseChange_tmul (TensorProduct.isBaseChange R M B) b ℓ m |
| 29 | |
| 30 | theorem moduleDualBaseChangeEquiv_tmul_tmul |
| 31 | (M : Type u) [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Free R M] |
| 32 | (b b' : B) (ℓ : Module.Dual R M) (m : M) : |
| 33 | moduleDualBaseChangeEquiv (R := R) B M (b ⊗ₜ[R] ℓ) (b' ⊗ₜ[R] m) = |
| 34 | b' * (b * algebraMap R B (ℓ m)) := by |
| 35 | have he : b' ⊗ₜ[R] m = b' • (1 ⊗ₜ[R] m : B ⊗[R] M) := by |
| 36 | simp only [TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 37 | rw [he, map_smul, moduleDualBaseChangeEquiv_tmul_one] |
| 38 | rfl |
| 39 | |
| 40 | theorem moduleDualBaseChangeEquiv_naturality |
| 41 | {M N : Type u} [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Free R M] |
| 42 | [AddCommGroup N] [Module R N] [Module.Finite R N] [Module.Free R N] (f : M →ₗ[R] N) : |
| 43 | (moduleDualBaseChangeEquiv (R := R) B M).toLinearMap.comp (f.dualMap.baseChange B) = |
| 44 | (f.baseChange B).dualMap.comp (moduleDualBaseChangeEquiv (R := R) B N).toLinearMap := by |
| 45 | ext b ℓ |
| 46 | simp [moduleDualBaseChangeEquiv_tmul_tmul] |
| 47 | |
| 48 | def dualShortComplexBaseChangeIso (S : ShortComplex (ModuleCat.{u} R)) |
| 49 | [Module.Finite R S.X₁] [Module.Free R S.X₁] |
| 50 | [Module.Finite R S.X₂] [Module.Free R S.X₂] |
| 51 | [Module.Finite R S.X₃] [Module.Free R S.X₃] : |
| 52 | BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B (DualFunctor.dualModuleShortComplex S) ≅ |
| 53 | DualFunctor.dualModuleShortComplex (BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B S) := |
| 54 | ShortComplex.isoMk (moduleDualBaseChangeEquiv (R := R) B S.X₃).toModuleIso |
| 55 | (moduleDualBaseChangeEquiv (R := R) B S.X₂).toModuleIso (moduleDualBaseChangeEquiv (R := R) B S.X₁).toModuleIso |
| 56 | (ModuleCat.hom_ext (moduleDualBaseChangeEquiv_naturality (R := R) B S.g.hom).symm) |
| 57 | (ModuleCat.hom_ext (moduleDualBaseChangeEquiv_naturality (R := R) B S.f.hom).symm) |
| 58 | |
| 59 | theorem field_baseChange_dualShortComplex_exact |
| 60 | {F : Type u} [Field F] [Algebra R F] (S : ShortComplex (ModuleCat.{u} R)) |
| 61 | [Module.Finite R S.X₁] [Module.Free R S.X₁] |
| 62 | [Module.Finite R S.X₂] [Module.Free R S.X₂] |
| 63 | [Module.Finite R S.X₃] [Module.Free R S.X₃] |
| 64 | (hS : (BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R F S).Exact) : |
| 65 | (BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R F (DualFunctor.dualModuleShortComplex S)).Exact := |
| 66 | (ShortComplex.exact_iff_of_iso (dualShortComplexBaseChangeIso F S)).mpr |
| 67 | (DualFunctor.field_dualModuleShortComplex_exact _ hS) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.DualBaseChange |