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.Cochain.DimensionBalance |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.ScalarExtensionKernel |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ProjectiveKernelOpen |
| 4 | |
| 5 | /-! # One Dimension Open -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.OneDimensionOpen |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The first cohomology dimension of a finite projective complex is |
| 12 | bounded on an explicit open. A fixed finite free cover of degree zero |
| 13 | turns the bound into a sum of two kernel-dimension bounds. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | section Complex |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] |
| 23 | variable (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 24 | variable [Module.Finite R (C.X 0)] [Module.Projective R (C.X 0)] |
| 25 | |
| 26 | def cochainOneIncomingFromFree : |
| 27 | (ULift.{u} (Fin (HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize R (C.X 0))) → R) →ₗ[R] C.X 1 := |
| 28 | (C.d 0 1).hom.comp (HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateEmbedding R (C.X 0)).projection |
| 29 | |
| 30 | theorem cochainOne_kernel_dimension_balance [Module.Finite R (C.X 1)] |
| 31 | (K : Type u) [Field K] [Algebra R K] : |
| 32 | Module.finrank K ((cochainOneIncomingFromFree C).baseChange K).ker + |
| 33 | Module.finrank K ((C.d 1 2).hom.baseChange K).ker = |
| 34 | Module.finrank K ((ScalarExtensionKernel.cochainScalarExtension C K).homology 1) + |
| 35 | HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize R (C.X 0) := by |
| 36 | let P := HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateEmbedding R (C.X 0) |
| 37 | have hproj : Function.Surjective (P.projection.baseChange K) := by |
| 38 | intro x |
| 39 | exact ⟨(P.baseChange K).inclusion x, (P.baseChange K).projection_inclusion x⟩ |
| 40 | have hcomp : (cochainOneIncomingFromFree C).baseChange K = |
| 41 | ((C.d 0 1).hom.baseChange K).comp (P.projection.baseChange K) := |
| 42 | LinearMap.baseChange_comp P.projection (C.d 0 1).hom |
| 43 | have hrange : ((cochainOneIncomingFromFree C).baseChange K).range = |
| 44 | ((C.d 0 1).hom.baseChange K).range := by |
| 45 | rw [hcomp] |
| 46 | exact LinearMap.range_comp_of_range_eq_top _ (LinearMap.range_eq_top.mpr hproj) |
| 47 | have hfree : Module.finrank K |
| 48 | (K ⊗[R] (ULift.{u} (Fin (HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize R (C.X 0))) → R)) = |
| 49 | HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize R (C.X 0) := by |
| 50 | rw [(TensorProduct.piScalarRight R K K |
| 51 | (ULift.{u} (Fin (HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize R (C.X 0))))).finrank_eq] |
| 52 | simp only [Module.finrank_fintype_fun_eq_card, Fintype.card_ulift, Fintype.card_fin] |
| 53 | have hzero := ((cochainOneIncomingFromFree C).baseChange K).finrank_range_add_finrank_ker |
| 54 | rw [hrange, hfree] at hzero |
| 55 | have hone := ((C.d 1 2).hom.baseChange K).finrank_range_add_finrank_ker |
| 56 | let : Module.Finite K ((ScalarExtensionKernel.cochainScalarExtension C K).X 0) := |
| 57 | inferInstanceAs (Module.Finite K (K ⊗[R] C.X 0)) |
| 58 | let : Module.Finite K ((ScalarExtensionKernel.cochainScalarExtension C K).X 1) := |
| 59 | inferInstanceAs (Module.Finite K (K ⊗[R] C.X 1)) |
| 60 | have hcoh := DimensionBalance.cochain_dimension_balance_succ (ScalarExtensionKernel.cochainScalarExtension C K) 0 |
| 61 | change Module.finrank K (K ⊗[R] C.X 1) = |
| 62 | Module.finrank K ((ScalarExtensionKernel.cochainScalarExtension C K).homology 1) + |
| 63 | Module.finrank K ((C.d 0 1).hom.baseChange K).range + |
| 64 | Module.finrank K ((C.d 1 2).hom.baseChange K).range at hcoh |
| 65 | omega |
| 66 | |
| 67 | end Complex |
| 68 | |
| 69 | variable {S : Scheme.{u}} (C : CochainComplex (ModuleCat.{u} Γ(S, ⊤)) ℕ) |
| 70 | variable [Module.Finite Γ(S, ⊤) (C.X 0)] [Module.Projective Γ(S, ⊤) (C.X 0)] |
| 71 | variable [Module.Finite Γ(S, ⊤) (C.X 1)] [Module.Projective Γ(S, ⊤) (C.X 1)] |
| 72 | variable [Module.Finite Γ(S, ⊤) (C.X 2)] [Module.Projective Γ(S, ⊤) (C.X 2)] |
| 73 | |
| 74 | def cochainOneDimensionOpen (d : ℕ) : S.Opens := |
| 75 | ⨆ (a : ℕ) (b : ℕ) (_ : a + b ≤ d + HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize Γ(S, ⊤) (C.X 0)), |
| 76 | HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (cochainOneIncomingFromFree C) a ⊓ |
| 77 | HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (C.d 1 2).hom b |
| 78 | |
| 79 | theorem cochainOneDimensionOpen_mem (d : ℕ) (x : S) : |
| 80 | x ∈ cochainOneDimensionOpen C d ↔ |
| 81 | ∃ a b : ℕ, a + b ≤ d + HilbertConstruction.Finite.ProjectiveKernelMatrix.finiteProjectiveCoordinateSize Γ(S, ⊤) (C.X 0) ∧ |
| 82 | x ∈ HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (cochainOneIncomingFromFree C) a ∧ |
| 83 | x ∈ HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (C.d 1 2).hom b := by |
| 84 | simp only [cochainOneDimensionOpen, TopologicalSpace.Opens.mem_iSup, |
| 85 | TopologicalSpace.Opens.mem_inf, exists_prop] |
| 86 | |
| 87 | theorem cochainOneDimensionOpen_field_point {K : Type u} [Field K] |
| 88 | (c : Spec (.of K) ⟶ S) (d : ℕ) : |
| 89 | (letI := c.appTop.hom.toAlgebra; |
| 90 | Set.range c ⊆ (cochainOneDimensionOpen C d : Set S) ↔ |
| 91 | Module.finrank Γ(Spec (.of K), ⊤) |
| 92 | ((ScalarExtensionKernel.cochainScalarExtension C Γ(Spec (.of K), ⊤)).homology 1) ≤ d) := by |
| 93 | let := c.appTop.hom.toAlgebra |
| 94 | let : Field Γ(Spec (.of K), ⊤) := |
| 95 | ((Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 96 | (Field.toIsField K)).toField |
| 97 | have hdim := cochainOne_kernel_dimension_balance C Γ(Spec (.of K), ⊤) |
| 98 | constructor |
| 99 | · intro h |
| 100 | let t : Spec (.of K) := (⊥ : PrimeSpectrum K) |
| 101 | obtain ⟨a, b, hab, ha, hb⟩ := |
| 102 | (cochainOneDimensionOpen_mem C d (c t)).mp (h ⟨t, rfl⟩) |
| 103 | have ha' : Set.range c ⊆ |
| 104 | (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (cochainOneIncomingFromFree C) a : Set S) := by |
| 105 | rintro y ⟨s, rfl⟩ |
| 106 | exact (Subsingleton.elim s t) ▸ ha |
| 107 | have hb' : Set.range c ⊆ |
| 108 | (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen (C.d 1 2).hom b : Set S) := by |
| 109 | rintro y ⟨s, rfl⟩ |
| 110 | exact (Subsingleton.elim s t) ▸ hb |
| 111 | have hka := (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen_field_point |
| 112 | c (cochainOneIncomingFromFree C) a).mp ha' |
| 113 | have hkb := (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen_field_point c (C.d 1 2).hom b).mp hb' |
| 114 | omega |
| 115 | · intro h |
| 116 | let a := Module.finrank Γ(Spec (.of K), ⊤) |
| 117 | ((cochainOneIncomingFromFree C).baseChange Γ(Spec (.of K), ⊤)).ker |
| 118 | let b := Module.finrank Γ(Spec (.of K), ⊤) |
| 119 | ((C.d 1 2).hom.baseChange Γ(Spec (.of K), ⊤)).ker |
| 120 | have ha := (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen_field_point |
| 121 | c (cochainOneIncomingFromFree C) a).mpr (le_refl a) |
| 122 | have hb := (HilbertConstruction.Finite.ProjectiveKernelOpen.finiteProjectiveKernelDimensionOpen_field_point |
| 123 | c (C.d 1 2).hom b).mpr (le_refl b) |
| 124 | intro x hx |
| 125 | apply (cochainOneDimensionOpen_mem C d x).mpr |
| 126 | refine ⟨a, b, ?_, ha hx, hb hx⟩ |
| 127 | dsimp only [a, b] |
| 128 | omega |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cochain.OneDimensionOpen |