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 Mathlib.RingTheory.LocalRing.Module |
| 2 | import Mathlib.RingTheory.Kaehler.TensorProduct |
| 3 | import Mathlib.RingTheory.Unramified.Basic |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 5 | |
| 6 | /-! # Local Unramified Fiber Reflection -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Picard.ThetaConstruction.LocalUnramifiedFiberReflection.Geometric |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! For a local map of local rings, vanishing of a finite module on |
| 13 | the closed ground-field fiber forces it to vanish. Applied to actual |
| 14 | relative differentials, this reflects formal unramifiedness from the |
| 15 | closed fiber without a flatness assumption. -/ |
| 16 | |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | variable (R B : Type u) [CommRing R] [CommRing B] [IsLocalRing R] [IsLocalRing B] |
| 21 | [Algebra R B] [IsLocalHom (algebraMap R B)] |
| 22 | |
| 23 | theorem localAlgebraModule_subsingleton_of_closedFiber |
| 24 | (M : Type u) [AddCommGroup M] [Module B M] [Module R M] [IsScalarTower R B M] |
| 25 | [Module.Finite B M] [Subsingleton (IsLocalRing.ResidueField R ⊗[R] M)] : Subsingleton M := by |
| 26 | let k := IsLocalRing.ResidueField R |
| 27 | let l := IsLocalRing.ResidueField B |
| 28 | let : Algebra R l := ((IsLocalRing.residue B).comp (algebraMap R B)).toAlgebra |
| 29 | let : IsScalarTower R B l := IsScalarTower.of_algebraMap_eq' rfl |
| 30 | let : Algebra k l := (IsLocalRing.ResidueField.map (algebraMap R B)).toAlgebra |
| 31 | let : IsScalarTower R k l := IsScalarTower.of_algebraMap_eq' (by |
| 32 | ext r |
| 33 | exact (IsLocalRing.ResidueField.map_residue (algebraMap R B) r).symm) |
| 34 | let : Subsingleton (l ⊗[k] (k ⊗[R] M)) := inferInstance |
| 35 | let : Subsingleton (l ⊗[R] M) := |
| 36 | (TensorProduct.AlgebraTensorModule.cancelBaseChange R k k l M).surjective.subsingleton |
| 37 | have hs : Subsingleton (l ⊗[B] M) := |
| 38 | (TensorProduct.mapOfCompatibleSMul_surjective B R R l M).subsingleton |
| 39 | exact (IsLocalRing.subsingleton_tensorProduct (R := B) (M := M)).mp hs |
| 40 | |
| 41 | theorem localAlgebra_formallyUnramified_of_closedFiber [Algebra.EssFiniteType R B] |
| 42 | [Algebra.FormallyUnramified (IsLocalRing.ResidueField R) (IsLocalRing.ResidueField R ⊗[R] B)] : |
| 43 | Algebra.FormallyUnramified R B := by |
| 44 | let k := IsLocalRing.ResidueField R |
| 45 | let : Algebra B (k ⊗[R] B) := Algebra.TensorProduct.rightAlgebra |
| 46 | let : Subsingleton (k ⊗[R] Ω[B⁄R]) := |
| 47 | (KaehlerDifferential.tensorKaehlerEquivBase R k B (k ⊗[R] B)).injective.subsingleton |
| 48 | exact ⟨localAlgebraModule_subsingleton_of_closedFiber R B Ω[B⁄R]⟩ |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.Picard.ThetaConstruction.LocalUnramifiedFiberReflection.Geometric |