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.Quotients.FiniteDescent.FiberScalar |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.FieldPoint |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.FieldTensor |
| 4 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ScalarFunctor |
| 5 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ShortComplexFirstCycles |
| 6 | |
| 7 | /-! # Residue Model -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ResidueModel |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Support of the model's dual cokernel supplies a nonzero cycle in |
| 14 | the tensor over the local ring and its residue field. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | open scoped TensorProduct ChangeOfRings |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace Construction.ResidueModelCycles |
| 24 | |
| 25 | def firstCyclesIso {R : Type u} [CommRing R] {C D : ShortComplex (ModuleCat.{u} R)} (e : C ≅ D) : |
| 26 | C.f.hom.ker ≃ₗ[R] D.f.hom.ker := |
| 27 | LinearEquiv.ofLinearMap (ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap e.hom) |
| 28 | (ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap e.inv) |
| 29 | (by rw [← ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap_comp, e.inv_hom_id, |
| 30 | ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap_id]) |
| 31 | (by rw [← ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap_comp, e.hom_inv_id, |
| 32 | ShortComplexFirstCycles.Construction.LocalSectionLifting.shortComplexFirstCyclesMap_id]) |
| 33 | |
| 34 | theorem evaluation_kernel (S : Scheme.{u}) (x : S) : |
| 35 | (S.toSpecΓ x).asIdeal = RingHom.ker (S.Γevaluation x).hom := by |
| 36 | have ht := FieldPoint.Construction.FieldPointPrime.kernel (S.fromSpecResidueField x) (default : Spec (S.residueField x)) |
| 37 | have ht' : (S.toSpecΓ x).asIdeal = RingHom.ker (S.fromSpecResidueField x).appTop.hom := |
| 38 | (congrArg (fun y : S => (S.toSpecΓ y).asIdeal) |
| 39 | (S.fromSpecResidueField_apply x (default : Spec (S.residueField x)))).symm.trans ht |
| 40 | have he : (S.Γevaluation x).hom = (Scheme.ΓSpecIso (S.residueField x)).hom.hom.comp |
| 41 | (S.fromSpecResidueField x).appTop.hom := |
| 42 | (congrArg (fun a : Γ(S, ⊤) ⟶ S.residueField x => a.hom) |
| 43 | (FiberScalar.Construction.FiberScalarMaps.fromResidue_appTop S x)).symm |
| 44 | rw [he, RingHom.ker_comp_of_injective _ (Scheme.ΓSpecIso (S.residueField x)).commRingCatIsoToRingEquiv.injective] |
| 45 | exact ht' |
| 46 | |
| 47 | theorem exists_cycle (S : Scheme.{u}) (x : S) (C : ShortComplex (ModuleCat.{u} Γ(S, ⊤))) |
| 48 | [Module.Finite Γ(S, ⊤) C.X₁] [Module.Projective Γ(S, ⊤) C.X₁] |
| 49 | [Module.Finite Γ(S, ⊤) C.X₂] [Module.Projective Γ(S, ⊤) C.X₂] |
| 50 | (hs : S.toSpecΓ x ∈ Module.support Γ(S, ⊤) (KernelSupportIs.Construction.KernelSupport.dualCokernel C.f.hom)) : |
| 51 | letI : Algebra Γ(S, ⊤) (S.presheaf.stalk x) := (S.presheaf.germ ⊤ x trivial).hom.toAlgebra |
| 52 | ∃ z : IsLocalRing.ResidueField (S.presheaf.stalk x) ⊗[S.presheaf.stalk x] |
| 53 | ((S.presheaf.stalk x) ⊗[Γ(S, ⊤)] C.X₁), |
| 54 | (C.f.hom.baseChange (S.presheaf.stalk x)).baseChange |
| 55 | (IsLocalRing.ResidueField (S.presheaf.stalk x)) z = 0 ∧ z ≠ 0 := by |
| 56 | let R := Γ(S, ⊤) |
| 57 | let A := S.presheaf.stalk x |
| 58 | let K := IsLocalRing.ResidueField A |
| 59 | let f : R →+* A := (S.presheaf.germ ⊤ x trivial).hom |
| 60 | let g : A →+* K := (S.residue x).hom |
| 61 | let : Algebra R A := f.toAlgebra |
| 62 | let : Algebra R K := (S.Γevaluation x).hom.toAlgebra |
| 63 | have hn : Nontrivial (C.f.hom.baseChange K).ker := |
| 64 | (KernelSupportIs.Construction.KernelSupport.field_kernel_iff K C.f.hom).mpr |
| 65 | ((FieldTensor.Construction.FieldTensorSupport.nontrivial_iff K (KernelSupportIs.Construction.KernelSupport.dualCokernel C.f.hom) |
| 66 | (S.toSpecΓ x) (evaluation_kernel S x)).mpr hs) |
| 67 | let F := ModuleBaseChangeComplex.Construction.LocalSectionLifting.moduleBaseChangeFunctor R A |
| 68 | let G := ModuleCat.extendScalars g |
| 69 | let e : ModuleCat.extendScalars (S.Γevaluation x).hom ≅ F ⋙ G := |
| 70 | ModuleCat.extendScalarsComp f g ≪≫ |
| 71 | Functor.isoWhiskerRight (ScalarFunctor.Construction.ScalarFunctorComparison.iso R A).symm G |
| 72 | have hn' : Nontrivial (C.map (ModuleCat.extendScalars (S.Γevaluation x).hom)).f.hom.ker := hn |
| 73 | have ht : Nontrivial (C.map (F ⋙ G)).f.hom.ker := (firstCyclesIso (C.mapNatIso e)).nontrivial_congr.mp hn' |
| 74 | obtain ⟨z, hz⟩ := exists_ne (0 : (C.map (F ⋙ G)).f.hom.ker) |
| 75 | refine ⟨z.val, z.property, ?_⟩ |
| 76 | intro hzero |
| 77 | exact hz (Subtype.ext hzero) |
| 78 | |
| 79 | end Construction.ResidueModelCycles |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ResidueModel |