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.Finite.ProjectiveFieldExactness |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.KernelExactCriterion |
| 3 | |
| 4 | /-! # Kernel Field Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Universal.KernelFieldCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Specified cycles in finite projective modules are a complete kernel |
| 11 | basis after every ring extension if they are complete after all field-valued |
| 12 | scalar maps. This includes arbitrary nonreduced coefficient rings. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | open scoped TensorProduct |
| 15 | universe u |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | variable {V M N : Type u} |
| 18 | variable [AddCommGroup V] [Module R V] [Module.Finite R V] [Module.Projective R V] |
| 19 | variable [AddCommGroup M] [Module R M] [Module.Finite R M] [Module.Projective R M] |
| 20 | variable [AddCommGroup N] [Module R N] [Module.Finite R N] [Module.Projective R N] |
| 21 | variable (s : V →ₗ[R] M) (d : M →ₗ[R] N) (h : d.comp s = 0) |
| 22 | |
| 23 | def scalarExtendedCycleComparison (B : Type u) [CommRing B] [Algebra R B] : |
| 24 | (B ⊗[R] V) →ₗ[B] (d.baseChange B).ker := |
| 25 | KernelDimensionCriterion.linearKernelComparison (s.baseChange B) (d.baseChange B) (by |
| 26 | rw [← LinearMap.baseChange_comp, h, LinearMap.baseChange_zero]) |
| 27 | |
| 28 | theorem completeKernel_universal_of_field_tests |
| 29 | (hfield : ∀ (K : Type u) [Field K] (q : R →+* K), |
| 30 | letI := q.toAlgebra |
| 31 | Function.Bijective (scalarExtendedCycleComparison s d h K)) |
| 32 | (B : Type u) [CommRing B] [Algebra R B] : |
| 33 | Function.Bijective (scalarExtendedCycleComparison s d h B) := by |
| 34 | let C : ShortComplex (ModuleCat.{u} R) := { |
| 35 | X₁ := ModuleCat.of R V |
| 36 | X₂ := ModuleCat.of R M |
| 37 | X₃ := ModuleCat.of R N |
| 38 | f := ModuleCat.ofHom s |
| 39 | g := ModuleCat.ofHom d |
| 40 | zero := ModuleCat.hom_ext h } |
| 41 | let Z : ShortComplex (ModuleCat.{u} R) := { |
| 42 | X₁ := ModuleCat.of R V |
| 43 | X₂ := ModuleCat.of R V |
| 44 | X₃ := ModuleCat.of R M |
| 45 | f := 0 |
| 46 | g := ModuleCat.ofHom s |
| 47 | zero := zero_comp } |
| 48 | have hC : ∀ (K : Type u) [Field K] (q : R →+* K), |
| 49 | (C.map (ModuleCat.extendScalars q)).Exact := by |
| 50 | intro K _ q |
| 51 | let := q.toAlgebra |
| 52 | have hk := hfield K q |
| 53 | have ht : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R K C).Exact := by |
| 54 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 55 | intro x hx |
| 56 | obtain ⟨y, hy⟩ := hk.surjective ⟨x, hx⟩ |
| 57 | exact ⟨y, congrArg Subtype.val hy⟩ |
| 58 | exact (ShortComplex.exact_iff_of_iso |
| 59 | (C.mapNatIso (Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R K q))).mp ht |
| 60 | have hZ : ∀ (K : Type u) [Field K] (q : R →+* K), |
| 61 | (Z.map (ModuleCat.extendScalars q)).Exact := by |
| 62 | intro K _ q |
| 63 | let := q.toAlgebra |
| 64 | have hk := hfield K q |
| 65 | have hi : Function.Injective (s.baseChange K) := |
| 66 | (Linear.KernelExactCriterion.linearKernelComparison_injective_iff _ _ _).mp hk.injective |
| 67 | have ht : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R K Z).Exact := by |
| 68 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 69 | intro x hx |
| 70 | have hx0 : x = 0 := hi (hx.trans (s.baseChange K).map_zero.symm) |
| 71 | exact ⟨0, (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R K Z).f.hom.map_zero.trans hx0.symm⟩ |
| 72 | exact (ShortComplex.exact_iff_of_iso |
| 73 | (Z.mapNatIso (Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R K q))).mp ht |
| 74 | have hCB : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B C).Exact := |
| 75 | HilbertConstruction.Finite.ProjectiveFieldExactness.finiteProjectiveShortComplex_universal_exact_of_field_tests C hC B |
| 76 | have hZB : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B Z).Exact := |
| 77 | HilbertConstruction.Finite.ProjectiveFieldExactness.finiteProjectiveShortComplex_universal_exact_of_field_tests Z hZ B |
| 78 | have hi : Function.Injective (s.baseChange B) := by |
| 79 | apply LinearMap.ker_eq_bot.mp |
| 80 | apply eq_bot_iff.mpr |
| 81 | intro x hx |
| 82 | obtain ⟨y, hy⟩ := (ShortComplex.moduleCat_exact_iff _).mp hZB x hx |
| 83 | have hy0 : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B Z).f y = 0 := by |
| 84 | change ((0 : V →ₗ[R] V).baseChange B) y = 0 |
| 85 | rw [LinearMap.baseChange_zero] |
| 86 | rfl |
| 87 | exact hy.symm.trans hy0 |
| 88 | refine ⟨(Linear.KernelExactCriterion.linearKernelComparison_injective_iff _ _ _).mpr hi, ?_⟩ |
| 89 | intro x |
| 90 | obtain ⟨y, hy⟩ := (ShortComplex.moduleCat_exact_iff _).mp hCB x.val x.property |
| 91 | exact ⟨y, Subtype.ext hy⟩ |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Universal.KernelFieldCriterion |