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 | |
| 3 | /-! # Affine Points -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The affine-spectrum adjunction over a base ring, expressed as algebra maps |
| 11 | into the actual global sections of a test scheme. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : CommRingCat.{u}) (A : Type u) [CommRing A] [Algebra R A] |
| 19 | |
| 20 | abbrev relativeGlobalAlgebra (T : Over (Spec R)) : CommAlgCat R := ((algΓ R).obj T).unop |
| 21 | |
| 22 | def relativeAffineScheme : Over (Spec R) := (algSpec R).obj (.op (CommAlgCat.of R A)) |
| 23 | |
| 24 | def relativeAffinePointEquiv (T : Over (Spec R)) : |
| 25 | (T ⟶ relativeAffineScheme R A) ≃ (A →ₐ[R] relativeGlobalAlgebra R T) where |
| 26 | toFun f := (((algΓAlgSpecAdjunction R).homEquiv T (.op (CommAlgCat.of R A))).symm f).unop.hom |
| 27 | invFun f := (algΓAlgSpecAdjunction R).homEquiv T (.op (CommAlgCat.of R A)) |
| 28 | (CommAlgCat.ofHom f).op |
| 29 | left_inv f := ((algΓAlgSpecAdjunction R).homEquiv T (.op (CommAlgCat.of R A))).apply_symm_apply f |
| 30 | right_inv f := congrArg (fun g => g.unop.hom) |
| 31 | (((algΓAlgSpecAdjunction R).homEquiv T (.op (CommAlgCat.of R A))).symm_apply_apply |
| 32 | (CommAlgCat.ofHom f).op) |
| 33 | |
| 34 | theorem relativeGlobalAlgebra_map {T U : Over (Spec R)} (f : U ⟶ T) (s : relativeGlobalAlgebra R T) : |
| 35 | ((algΓ R).map f).unop.hom s = f.left.appTop s := rfl |
| 36 | |
| 37 | theorem relativeAffinePointEquiv_natural {T U : Over (Spec R)} |
| 38 | (f : U ⟶ T) (g : T ⟶ relativeAffineScheme R A) : |
| 39 | relativeAffinePointEquiv R A U (f ≫ g) = |
| 40 | ((algΓ R).map f).unop.hom.comp (relativeAffinePointEquiv R A T g) := |
| 41 | congrArg (fun h => h.unop.hom) ((algΓAlgSpecAdjunction R).homEquiv_naturality_left_symm f g) |
| 42 | |
| 43 | theorem relativeAffinePointEquiv_apply {T : Over (Spec R)} |
| 44 | (f : T ⟶ relativeAffineScheme R A) (x : A) : |
| 45 | relativeAffinePointEquiv R A T f x = |
| 46 | f.left.appTop ((Scheme.ΓSpecIso (CommRingCat.of A)).inv x) := rfl |
| 47 | |
| 48 | theorem relativeAffinePointEquiv_postcomp |
| 49 | {B : Type u} [CommRing B] [Algebra R B] (φ : A →ₐ[R] B) {T : Over (Spec R)} |
| 50 | (f : T ⟶ relativeAffineScheme R B) : |
| 51 | relativeAffinePointEquiv R A T (f ≫ (algSpec R).map (CommAlgCat.ofHom φ).op) = |
| 52 | (relativeAffinePointEquiv R B T f).comp φ := |
| 53 | congrArg (fun h => h.unop.hom) |
| 54 | ((algΓAlgSpecAdjunction R).homEquiv_naturality_right_symm f (CommAlgCat.ofHom φ).op) |
| 55 | |
| 56 | def relativeAffineGlobalEquiv : A ≃ₐ[R] relativeGlobalAlgebra R (relativeAffineScheme R A) where |
| 57 | __ := (Scheme.ΓSpecIso (CommRingCat.of A)).symm.commRingCatIsoToRingEquiv |
| 58 | commutes' r := (relativeAffinePointEquiv R A (relativeAffineScheme R A) (𝟙 _)).commutes r |
| 59 | |
| 60 | theorem relativeAffineGlobalEquiv_apply (x : A) : |
| 61 | relativeAffineGlobalEquiv R A x = (Scheme.ΓSpecIso (CommRingCat.of A)).inv x := rfl |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.AffinePoints |