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.Section.KernelOpenAllTests |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FiniteProjectiveExactness |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.KernelExactCriterion |
| 4 | |
| 5 | /-! # Kernel Open Affine Completeness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.KernelOpenAffineCompleteness |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On an arbitrary affine test mapping to the cycle-completeness open, |
| 12 | the specified cycles give an actual basis of the scalar-extended kernel. |
| 13 | The test scheme need not be Noetherian or reduced. -/ |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | variable {S Y : Scheme.{u}} [IsAffine Y] {r : ℕ} |
| 18 | variable {M N : Type u} [AddCommGroup M] [Module Γ(S, ⊤) M] |
| 19 | variable [AddCommGroup N] [Module Γ(S, ⊤) N] |
| 20 | variable [Module.Finite Γ(S, ⊤) M] [Module.Projective Γ(S, ⊤) M] |
| 21 | variable [Module.Finite Γ(S, ⊤) N] [Module.Projective Γ(S, ⊤) N] |
| 22 | variable (s : (Fin r →₀ Γ(S, ⊤)) →ₗ[Γ(S, ⊤)] M) (d : M →ₗ[Γ(S, ⊤)] N) (h : d.comp s = 0) |
| 23 | |
| 24 | theorem sectionKernelOpen_affine_comparison_bijective (b : Y ⟶ S) |
| 25 | (hb : Set.range b ⊆ (HilbertConstruction.Finite.ProjectiveSectionKernelOpen.finiteProjectiveSectionKernelOpen s d : Set S)) : |
| 26 | (letI := b.appTop.hom.toAlgebra; |
| 27 | Function.Bijective (HilbertConstruction.Finite.ProjectiveSectionKernelOpen.baseChangedSectionKernelComparison s d h Γ(Y, ⊤))) := by |
| 28 | let := b.appTop.hom.toAlgebra |
| 29 | let R := Γ(S, ⊤) |
| 30 | let V := Fin r →₀ R |
| 31 | let B := Γ(Y, ⊤) |
| 32 | let C : ShortComplex (ModuleCat.{u} R) := { |
| 33 | X₁ := ModuleCat.of R V |
| 34 | X₂ := ModuleCat.of R M |
| 35 | X₃ := ModuleCat.of R N |
| 36 | f := ModuleCat.ofHom s |
| 37 | g := ModuleCat.ofHom d |
| 38 | zero := ModuleCat.hom_ext h } |
| 39 | let Z : ShortComplex (ModuleCat.{u} R) := { |
| 40 | X₁ := ModuleCat.of R V |
| 41 | X₂ := ModuleCat.of R V |
| 42 | X₃ := ModuleCat.of R M |
| 43 | f := 0 |
| 44 | g := ModuleCat.ofHom s |
| 45 | zero := by simp } |
| 46 | have hgeo := (KernelOpenAllTests.finiteProjectiveSectionKernelOpen_all_tests s d h b).mpr hb |
| 47 | have hC : ∀ (K : Type u) [Field K] (q : Spec (.of K) ⟶ Y), |
| 48 | (C.map (ModuleCat.extendScalars (q ≫ b).appTop.hom)).Exact := by |
| 49 | intro K _ q |
| 50 | let := (q ≫ b).appTop.hom.toAlgebra |
| 51 | have hk := hgeo K q |
| 52 | have ht : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R Γ(Spec (.of K), ⊤) C).Exact := by |
| 53 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 54 | intro x hx |
| 55 | obtain ⟨y, hy⟩ := hk.surjective ⟨x, hx⟩ |
| 56 | exact ⟨y, congrArg Subtype.val hy⟩ |
| 57 | exact (ShortComplex.exact_iff_of_iso |
| 58 | (C.mapNatIso (Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R Γ(Spec (.of K), ⊤) (q ≫ b).appTop.hom))).mp ht |
| 59 | have hZ : ∀ (K : Type u) [Field K] (q : Spec (.of K) ⟶ Y), |
| 60 | (Z.map (ModuleCat.extendScalars (q ≫ b).appTop.hom)).Exact := by |
| 61 | intro K _ q |
| 62 | let := (q ≫ b).appTop.hom.toAlgebra |
| 63 | have hk := hgeo K q |
| 64 | have hi : Function.Injective (s.baseChange Γ(Spec (.of K), ⊤)) := |
| 65 | (Linear.KernelExactCriterion.linearKernelComparison_injective_iff _ _ _).mp hk.injective |
| 66 | have ht : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R Γ(Spec (.of K), ⊤) Z).Exact := by |
| 67 | apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 68 | intro x hx |
| 69 | have hx0 : x = 0 := hi (hx.trans (s.baseChange Γ(Spec (.of K), ⊤)).map_zero.symm) |
| 70 | exact ⟨0, (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R Γ(Spec (.of K), ⊤) Z).f.hom.map_zero.trans hx0.symm⟩ |
| 71 | exact (ShortComplex.exact_iff_of_iso |
| 72 | (Z.mapNatIso (Scalar.FunctorComparison.ScalarFunctorComparison.isoOfHom R Γ(Spec (.of K), ⊤) (q ≫ b).appTop.hom))).mp ht |
| 73 | have hCB : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B C).Exact := |
| 74 | Geometric.FiniteProjectiveExactness.geometric_finiteProjectiveShortComplex_baseChange_exact b C hC |
| 75 | have hZB : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B Z).Exact := |
| 76 | Geometric.FiniteProjectiveExactness.geometric_finiteProjectiveShortComplex_baseChange_exact b Z hZ |
| 77 | have hi : Function.Injective (s.baseChange B) := by |
| 78 | apply LinearMap.ker_eq_bot.mp |
| 79 | apply eq_bot_iff.mpr |
| 80 | intro x hx |
| 81 | obtain ⟨y, hy⟩ := (ShortComplex.moduleCat_exact_iff _).mp hZB x hx |
| 82 | have hy0 : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R B Z).f y = 0 := by |
| 83 | change ((0 : V →ₗ[R] V).baseChange B) y = 0 |
| 84 | rw [LinearMap.baseChange_zero] |
| 85 | rfl |
| 86 | exact hy.symm.trans hy0 |
| 87 | refine ⟨(Linear.KernelExactCriterion.linearKernelComparison_injective_iff _ _ _).mpr hi, ?_⟩ |
| 88 | intro x |
| 89 | obtain ⟨y, hy⟩ := (ShortComplex.moduleCat_exact_iff _).mp hCB x.val x.property |
| 90 | exact ⟨y, Subtype.ext hy⟩ |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.KernelOpenAffineCompleteness |