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.RepresentationTheory.Theta.Geometric.FlatEqualizerCoefficients |
| 2 | import OAI.RepresentationTheory.Theta.Geometric.AffineChartSectionCoordinates |
| 3 | |
| 4 | /-! # Flat Affine Function Descent -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.FlatAffineFunctionDescent |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual compatible regular functions descend on every flat affine |
| 11 | chart over the parameter equalizer. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | def flatEqualizerSpecMap (A R T : Type) [CommRing A] [CommRing R] [CommRing T] |
| 17 | [Algebra A R] [Algebra A T] : Spec (.of (T ⊗[A] R)) ⟶ Spec (.of T) := |
| 18 | Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.includeLeft : T →ₐ[A] T ⊗[A] R).toRingHom) |
| 19 | |
| 20 | variable {A R P T : Type} [CommRing A] [CommRing R] [CommRing P] [CommRing T] |
| 21 | [Algebra A R] [Algebra A P] [Algebra A T] [Module.Flat A T] |
| 22 | |
| 23 | theorem flatEqualizerSpecMap_appTop_injective (hi : Function.Injective (algebraMap A R)) : |
| 24 | Function.Injective (flatEqualizerSpecMap A R T).appTop := |
| 25 | AffineChartSectionCoordinates.specMap_appTop_injective _ (Algebra.TensorProduct.includeLeft_injective hi) |
| 26 | |
| 27 | theorem existsUnique_flatEqualizer_function_descent |
| 28 | (hi : Function.Injective (algebraMap A R)) (f g : R →ₐ[A] P) |
| 29 | (he : Function.Exact (Algebra.linearMap A R) (f.toLinearMap - g.toLinearMap)) |
| 30 | (r : Γ(Spec (.of (T ⊗[A] R)), ⊤)) |
| 31 | (hr : ∀ {Z : Scheme} (a b : Z ⟶ Spec (.of (T ⊗[A] R))), |
| 32 | a ≫ flatEqualizerSpecMap A R T = b ≫ flatEqualizerSpecMap A R T → a.appTop r = b.appTop r) : |
| 33 | ∃! s : Γ(Spec (.of T), ⊤), (flatEqualizerSpecMap A R T).appTop s = r := by |
| 34 | let a := Algebra.TensorProduct.map (AlgHom.id A T) f |
| 35 | let b := Algebra.TensorProduct.map (AlgHom.id A T) g |
| 36 | have hc : a.comp (Algebra.TensorProduct.includeLeft : T →ₐ[A] T ⊗[A] R) = |
| 37 | b.comp (Algebra.TensorProduct.includeLeft : T →ₐ[A] T ⊗[A] R) := by |
| 38 | simp only [a, b, Algebra.TensorProduct.map_comp_includeLeft] |
| 39 | have hp : Spec.map (CommRingCat.ofHom a.toRingHom) ≫ flatEqualizerSpecMap A R T = |
| 40 | Spec.map (CommRingCat.ofHom b.toRingHom) ≫ flatEqualizerSpecMap A R T := |
| 41 | AffineChartSectionCoordinates.specMap_pair_comp_of_ring_eq _ a.toRingHom b.toRingHom (congrArg AlgHom.toRingHom hc) |
| 42 | have H := hr (Spec.map (CommRingCat.ofHom a.toRingHom)) (Spec.map (CommRingCat.ofHom b.toRingHom)) hp |
| 43 | have hcoeff : a ((Scheme.ΓSpecIso (.of (T ⊗[A] R))).hom r) = |
| 44 | b ((Scheme.ΓSpecIso (.of (T ⊗[A] R))).hom r) := |
| 45 | (AffineChartSectionCoordinates.specMap_section_naturality a.toRingHom r).symm.trans |
| 46 | ((congrArg (Scheme.ΓSpecIso (.of (T ⊗[A] P))).hom H).trans |
| 47 | (AffineChartSectionCoordinates.specMap_section_naturality b.toRingHom r)) |
| 48 | obtain ⟨t, ht⟩ := FlatEqualizerCoefficients.flat_equalizer_coefficient_lift f g he _ hcoeff |
| 49 | let s := (Scheme.ΓSpecIso (.of T)).inv t |
| 50 | have hs : (flatEqualizerSpecMap A R T).appTop s = r := by |
| 51 | apply (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of (T ⊗[A] R))).hom).injective |
| 52 | unfold flatEqualizerSpecMap |
| 53 | rw [AffineChartSectionCoordinates.specMap_section_naturality] |
| 54 | change (Algebra.TensorProduct.includeLeft : T →ₐ[A] T ⊗[A] R) |
| 55 | ((Scheme.ΓSpecIso (.of T)).hom ((Scheme.ΓSpecIso (.of T)).inv t)) = _ |
| 56 | rw [Iso.inv_hom_id_apply] |
| 57 | exact ht |
| 58 | exact ⟨s, hs, fun u hu => flatEqualizerSpecMap_appTop_injective hi (hu.trans hs.symm)⟩ |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.RepresentationTheory.Theta.Geometric.FlatAffineFunctionDescent |