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 Mathlib.AlgebraicGeometry.Group.Affine |
| 2 | import Mathlib.Analysis.Complex.Basic |
| 3 | |
| 4 | /-! # Affine Complex Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |
| 7 | |
| 8 | /-! |
| 9 | # Affine complex points and scheme morphisms |
| 10 | |
| 11 | The carrier of affine complex points is the standard algebraic one: complex-algebra |
| 12 | homomorphisms to `ℂ`. Fully faithfulness of mathlib's relative `Spec` functor identifies |
| 13 | these points with scheme morphisms over `Spec ℂ`. No topology is installed here. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory Opposite _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | /-- The complex points of an affine complex algebra are its complex-algebra characters. -/ |
| 21 | abbrev affineComplexPoints (A : Type u) [CommRing A] [Algebra ℂ A] := A →ₐ[ℂ] ℂ |
| 22 | |
| 23 | /-- The affine scheme of an algebra, equipped with its actual structure morphism. -/ |
| 24 | noncomputable abbrev affineSchemeOver (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] : |
| 25 | Over (Spec (CommRingCat.of R)) := |
| 26 | (algSpec (CommRingCat.of R)).obj (op (CommAlgCat.of R A)) |
| 27 | |
| 28 | /-- Packaging an algebra homomorphism as an arrow in the opposite algebra category. -/ |
| 29 | def algHomOppositeEquiv (R A B : Type u) [CommRing R] [CommRing A] [CommRing B] |
| 30 | [Algebra R A] [Algebra R B] : |
| 31 | (A →ₐ[R] B) ≃ (op (CommAlgCat.of R B) ⟶ op (CommAlgCat.of R A)) where |
| 32 | toFun f := (CommAlgCat.ofHom f).op |
| 33 | invFun f := f.unop.hom |
| 34 | left_inv _ := rfl |
| 35 | right_inv _ := rfl |
| 36 | |
| 37 | /-- The fully faithful relative spectrum functor, written on ordinary algebra homomorphisms. -/ |
| 38 | noncomputable def affineAlgHomOverSpecEquiv (R A B : Type u) |
| 39 | [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] : |
| 40 | (A →ₐ[R] B) ≃ (affineSchemeOver R B ⟶ affineSchemeOver R A) := |
| 41 | (algHomOppositeEquiv R A B).trans (algSpec.fullyFaithful (R := CommRingCat.of R)).homEquiv |
| 42 | |
| 43 | /-- The scheme morphism underlying the equivalence is precisely `Spec.map`. -/ |
| 44 | @[simp] theorem affineAlgHomOverSpecEquiv_left (R A B : Type u) |
| 45 | [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 46 | (f : A →ₐ[R] B) : |
| 47 | (affineAlgHomOverSpecEquiv R A B f).left = |
| 48 | Spec.map (CommRingCat.ofHom f.toRingHom) := rfl |
| 49 | |
| 50 | /-- Complex-algebra characters are exactly morphisms from the complex point over `Spec ℂ`. -/ |
| 51 | noncomputable def affineComplexPointsEquiv (A : Type) [CommRing A] [Algebra ℂ A] : |
| 52 | affineComplexPoints A ≃ (affineSchemeOver ℂ ℂ ⟶ affineSchemeOver ℂ A) := |
| 53 | affineAlgHomOverSpecEquiv ℂ A ℂ |
| 54 | |
| 55 | /-- This correspondence sends a complex character to its usual spectrum morphism. -/ |
| 56 | @[simp] theorem affineComplexPointsEquiv_left (A : Type) [CommRing A] [Algebra ℂ A] |
| 57 | (x : affineComplexPoints A) : |
| 58 | (affineComplexPointsEquiv A x).left = |
| 59 | Spec.map (CommRingCat.ofHom x.toRingHom) := rfl |
| 60 | |
| 61 | /-- The base object used for points has identity structure morphism. -/ |
| 62 | @[simp] theorem affineComplexBase_hom : |
| 63 | (affineSchemeOver ℂ ℂ).hom = 𝟙 (Spec (CommRingCat.of ℂ)) := by |
| 64 | change Spec.map (CommRingCat.ofHom (algebraMap ℂ ℂ)) = _ |
| 65 | simp |
| 66 | |
| 67 | /-- The spectrum of `ℂ` as a relative affine scheme is the identity object over the base. -/ |
| 68 | noncomputable def affineComplexBaseIso : |
| 69 | affineSchemeOver ℂ ℂ ≅ Over.mk (𝟙 (Spec (CommRingCat.of ℂ))) := |
| 70 | Over.isoMk (Iso.refl _) (by |
| 71 | change 𝟙 (Spec (CommRingCat.of ℂ)) ≫ 𝟙 (Spec (CommRingCat.of ℂ)) = |
| 72 | (affineSchemeOver ℂ ℂ).hom |
| 73 | simp) |
| 74 | |
| 75 | /-- The standard relative-points formulation, with the literal identity object as source. -/ |
| 76 | noncomputable def affineComplexPointsOverEquiv (A : Type) [CommRing A] [Algebra ℂ A] : |
| 77 | affineComplexPoints A ≃ |
| 78 | (Over.mk (𝟙 (Spec (CommRingCat.of ℂ))) ⟶ affineSchemeOver ℂ A) := |
| 79 | (affineComplexPointsEquiv A).trans |
| 80 | { toFun := fun f => affineComplexBaseIso.inv ≫ f |
| 81 | invFun := fun f => affineComplexBaseIso.hom ≫ f |
| 82 | left_inv := fun f => by simp |
| 83 | right_inv := fun f => by simp } |
| 84 | |
| 85 | /-- The relative-points equivalence has the usual underlying spectrum map. -/ |
| 86 | @[simp] theorem affineComplexPointsOverEquiv_left (A : Type) [CommRing A] [Algebra ℂ A] |
| 87 | (x : affineComplexPoints A) : |
| 88 | (affineComplexPointsOverEquiv A x).left = |
| 89 | Spec.map (CommRingCat.ofHom x.toRingHom) := by |
| 90 | change 𝟙 _ ≫ Spec.map (CommRingCat.ofHom x.toRingHom) = _ |
| 91 | simp |
| 92 | |
| 93 | end OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |