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.AbelianScheme.TorsionQuotient.HomParametersMul |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.EtaleEqualityIs |
| 3 | |
| 4 | /-! # Embedding Parameters Is -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.EmbeddingParametersIs.EmbeddingParameters |
| 7 | |
| 8 | /-! |
| 9 | # TorsionQuotient: the clopen parameter locus of injective group markings |
| 10 | |
| 11 | Distinct labels must remain distinct on every field-valued test point. |
| 12 | This condition cuts out the complement of finitely many clopen collision |
| 13 | loci inside the actual homomorphism parameter scheme. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {S : Scheme.{u}} (H : Over S) [GrpObj H] |
| 22 | variable (M : Type u) [Group M] [Fintype M] |
| 23 | |
| 24 | def Distinct {T : Over S} (a : M →* (T ⟶ H)) : Prop := |
| 25 | ∀ (K : Type u) [Field K] (s : Spec (CommRingCat.of K) ⟶ S) (t : Over.mk s ⟶ T), |
| 26 | Function.Injective (fun m => t ≫ a m) |
| 27 | |
| 28 | abbrev Choice (T : Over S) := {a : M →* (T ⟶ H) // Distinct H M a} |
| 29 | |
| 30 | abbrev DifferentPairs := {p : M × M // p.1 ≠ p.2} |
| 31 | |
| 32 | noncomputable def collision (a b : M) : Set (HomParametersMul.HomParameters.parameter H M).left := |
| 33 | Set.range (equalizer.ι (HomParametersMul.HomParameters.coefficient H M a) (HomParametersMul.HomParameters.coefficient H M b)).left |
| 34 | |
| 35 | noncomputable def embeddingSet : Set (HomParametersMul.HomParameters.parameter H M).left := |
| 36 | ⋂ p : DifferentPairs M, (collision H M p.val.1 p.val.2)ᶜ |
| 37 | |
| 38 | variable [IsFinite H.hom] [Etale H.hom] |
| 39 | |
| 40 | theorem embeddingSet_isClopen : IsClopen (embeddingSet H M) := |
| 41 | isClopen_iInter_of_finite fun p => |
| 42 | (EtaleEqualityIs.EtaleEquality.range_isClopen (HomParametersMul.HomParameters.coefficient H M p.val.1) |
| 43 | (HomParametersMul.HomParameters.coefficient H M p.val.2)).compl |
| 44 | |
| 45 | noncomputable def locus : (HomParametersMul.HomParameters.parameter H M).left.Opens := |
| 46 | ⟨embeddingSet H M, (embeddingSet_isClopen H M).isOpen⟩ |
| 47 | |
| 48 | noncomputable def parameter : Over S := |
| 49 | Over.mk ((locus H M).ι ≫ (HomParametersMul.HomParameters.parameter H M).hom) |
| 50 | |
| 51 | noncomputable def inclusion : parameter H M ⟶ HomParametersMul.HomParameters.parameter H M := |
| 52 | Over.homMk (locus H M).ι rfl |
| 53 | |
| 54 | instance inclusion_mono : Mono (inclusion H M) := by |
| 55 | let : Mono (inclusion H M).left := inferInstanceAs (Mono (locus H M).ι) |
| 56 | exact Over.mono_of_mono_left _ |
| 57 | |
| 58 | theorem finite_etale : IsFinite (parameter H M).hom ∧ Etale (parameter H M).hom := by |
| 59 | have hc : IsClosed (Set.range (locus H M).ι) := by |
| 60 | rw [Scheme.Opens.range_ι] |
| 61 | exact (embeddingSet_isClopen H M).isClosed |
| 62 | let : IsClosedImmersion (locus H M).ι := IsClosedImmersion.of_isPreimmersion _ hc |
| 63 | change IsFinite ((locus H M).ι ≫ (HomParametersMul.HomParameters.parameter H M).hom) ∧ |
| 64 | Etale ((locus H M).ι ≫ (HomParametersMul.HomParameters.parameter H M).hom) |
| 65 | exact ⟨inferInstance, inferInstance⟩ |
| 66 | |
| 67 | theorem range_iff_distinct {T : Over S} (a : T ⟶ HomParametersMul.HomParameters.parameter H M) : |
| 68 | Set.range a.left ⊆ embeddingSet H M ↔ Distinct H M (HomParametersMul.HomParameters.points H M T a) := by |
| 69 | constructor |
| 70 | · intro hr K hK s t x y hxy |
| 71 | by_contra hne |
| 72 | have he : (t ≫ a) ≫ HomParametersMul.HomParameters.coefficient H M x = |
| 73 | (t ≫ a) ≫ HomParametersMul.HomParameters.coefficient H M y := by |
| 74 | exact (Category.assoc _ _ _).trans (hxy.trans (Category.assoc _ _ _).symm) |
| 75 | have hc := (EtaleEqualityIs.EtaleEquality.equalizes_iff_range_subset |
| 76 | (HomParametersMul.HomParameters.coefficient H M x) (HomParametersMul.HomParameters.coefficient H M y) (t ≫ a)).mp he |
| 77 | let z : Spec (CommRingCat.of K) := default |
| 78 | have hg := Set.mem_iInter.mp (hr ⟨t.left z, rfl⟩) ⟨(x, y), hne⟩ |
| 79 | exact hg (hc ⟨z, rfl⟩) |
| 80 | · intro hd |
| 81 | rintro _ ⟨x, rfl⟩ |
| 82 | apply Set.mem_iInter.mpr |
| 83 | intro p hp |
| 84 | let K := T.left.residueField x |
| 85 | let s := T.left.fromSpecResidueField x ≫ T.hom |
| 86 | let t : Over.mk s ⟶ T := Over.homMk (T.left.fromSpecResidueField x) rfl |
| 87 | have hr : Set.range (t ≫ a).left ⊆ collision H M p.val.1 p.val.2 := by |
| 88 | rintro _ ⟨z, rfl⟩ |
| 89 | change a.left (T.left.fromSpecResidueField x z) ∈ collision H M p.val.1 p.val.2 |
| 90 | rw [Scheme.fromSpecResidueField_apply] |
| 91 | exact hp |
| 92 | have he := (EtaleEqualityIs.EtaleEquality.equalizes_iff_range_subset |
| 93 | (HomParametersMul.HomParameters.coefficient H M p.val.1) (HomParametersMul.HomParameters.coefficient H M p.val.2) (t ≫ a)).mpr hr |
| 94 | apply p.property |
| 95 | apply hd K s t |
| 96 | exact (Category.assoc _ _ _).symm.trans (he.trans (Category.assoc _ _ _)) |
| 97 | |
| 98 | noncomputable def points (T : Over S) (a : T ⟶ parameter H M) : Choice H M T := |
| 99 | ⟨HomParametersMul.HomParameters.points H M T (a ≫ inclusion H M), |
| 100 | (range_iff_distinct H M (a ≫ inclusion H M)).mp (by |
| 101 | rintro _ ⟨x, rfl⟩ |
| 102 | exact (a.left x).property)⟩ |
| 103 | |
| 104 | theorem points_injective (T : Over S) : Function.Injective (points H M T) := by |
| 105 | intro a b hab |
| 106 | apply (cancel_mono (inclusion H M)).mp |
| 107 | apply (HomParametersMul.HomParameters.pointsEquiv H M T).injective |
| 108 | exact congrArg Subtype.val hab |
| 109 | |
| 110 | theorem points_surjective (T : Over S) : Function.Surjective (points H M T) := by |
| 111 | intro c |
| 112 | let f := HomParametersMul.HomParameters.fromPoints H M c.val |
| 113 | have hf : HomParametersMul.HomParameters.points H M T f = c.val := |
| 114 | (HomParametersMul.HomParameters.pointsEquiv H M T).apply_symm_apply c.val |
| 115 | have hr : Set.range f.left ⊆ embeddingSet H M := |
| 116 | (range_iff_distinct H M f).mpr (hf.symm ▸ c.property) |
| 117 | have hr' : Set.range f.left ⊆ Set.range (locus H M).ι := by |
| 118 | rw [Scheme.Opens.range_ι] |
| 119 | exact hr |
| 120 | let l := IsOpenImmersion.lift (locus H M).ι f.left hr' |
| 121 | have hl : l ≫ (locus H M).ι = f.left := IsOpenImmersion.lift_fac _ _ hr' |
| 122 | have hbase : l ≫ (parameter H M).hom = T.hom := by |
| 123 | change l ≫ ((locus H M).ι ≫ (HomParametersMul.HomParameters.parameter H M).hom) = T.hom |
| 124 | rw [← Category.assoc, hl] |
| 125 | exact Over.w f |
| 126 | let a : T ⟶ parameter H M := Over.homMk l hbase |
| 127 | have ha : a ≫ inclusion H M = f := Over.OverMorphism.ext hl |
| 128 | refine ⟨a, ?_⟩ |
| 129 | apply Subtype.ext |
| 130 | change HomParametersMul.HomParameters.points H M T (a ≫ inclusion H M) = c.val |
| 131 | rw [ha] |
| 132 | exact hf |
| 133 | |
| 134 | noncomputable def pointsEquiv (T : Over S) : (T ⟶ parameter H M) ≃ Choice H M T := |
| 135 | Equiv.ofBijective (points H M T) ⟨points_injective H M T, points_surjective H M T⟩ |
| 136 | |
| 137 | noncomputable def baseChange {T U : Over S} (a : Choice H M T) (f : U ⟶ T) : Choice H M U := |
| 138 | ⟨{ toFun := fun m => f ≫ a.val m |
| 139 | map_one' := by rw [a.val.map_one, MonObj.comp_one] |
| 140 | map_mul' x y := by rw [a.val.map_mul, MonObj.comp_mul] }, by |
| 141 | intro K hK s t x y hxy |
| 142 | apply a.property K s (t ≫ f) |
| 143 | exact (Category.assoc _ _ _).trans (hxy.trans (Category.assoc _ _ _).symm)⟩ |
| 144 | |
| 145 | noncomputable def pointFunctor : (Over S)ᵒᵖ ⥤ Type u where |
| 146 | obj T := Choice H M T.unop |
| 147 | map f := ↾fun a => baseChange H M a f.unop |
| 148 | map_id T := by |
| 149 | apply ConcreteCategory.hom_ext |
| 150 | intro a |
| 151 | apply Subtype.ext |
| 152 | apply MonoidHom.ext |
| 153 | intro m |
| 154 | change (𝟙 T.unop) ≫ a.val m = a.val m |
| 155 | exact Category.id_comp _ |
| 156 | map_comp f g := by |
| 157 | apply ConcreteCategory.hom_ext |
| 158 | intro a |
| 159 | apply Subtype.ext |
| 160 | apply MonoidHom.ext |
| 161 | intro m |
| 162 | change (g.unop ≫ f.unop) ≫ a.val m = g.unop ≫ f.unop ≫ a.val m |
| 163 | exact Category.assoc _ _ _ |
| 164 | |
| 165 | noncomputable def representable : (pointFunctor H M).RepresentableBy (parameter H M) where |
| 166 | homEquiv := pointsEquiv H M _ |
| 167 | homEquiv_comp f a := by |
| 168 | apply Subtype.ext |
| 169 | apply MonoidHom.ext |
| 170 | intro m |
| 171 | change ((f ≫ a) ≫ inclusion H M) ≫ HomParametersMul.HomParameters.coefficient H M m = |
| 172 | f ≫ ((a ≫ inclusion H M) ≫ HomParametersMul.HomParameters.coefficient H M m) |
| 173 | simp only [Category.assoc] |
| 174 | |
| 175 | instance parameter_isFinite : IsFinite (parameter H M).hom := (finite_etale H M).1 |
| 176 | |
| 177 | instance parameter_etale : Etale (parameter H M).hom := (finite_etale H M).2 |
| 178 | |
| 179 | end OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.EmbeddingParametersIs.EmbeddingParameters |