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.ReferenceFamily.EtaleSplittingAt |
| 2 | import Mathlib.AlgebraicGeometry.Group.Affine |
| 3 | |
| 4 | /-! # Over Algebra Isomorphism -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.OverAlgebraIsomorphism |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Actual isomorphisms of affine schemes over a base spectrum give |
| 13 | algebra isomorphisms over that same base, with their scheme map retained. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting |
| 18 | |
| 19 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 20 | |
| 21 | variable (R A B : Type) [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 22 | |
| 23 | def affineOverIsoAlgebraEquiv (e : EtaleSplittingAt.EtaleSplitting.affineOver R A ≅ EtaleSplittingAt.EtaleSplitting.affineOver R B) : B ≃ₐ[R] A := |
| 24 | CommAlgCat.algEquivOfIso |
| 25 | (((algSpec.fullyFaithful (R := CommRingCat.of R)).preimageIso |
| 26 | (X := Opposite.op (CommAlgCat.of R A)) (Y := Opposite.op (CommAlgCat.of R B)) e).unop) |
| 27 | |
| 28 | theorem affineOverIsoAlgebraEquiv_spec (e : EtaleSplittingAt.EtaleSplitting.affineOver R A ≅ EtaleSplittingAt.EtaleSplitting.affineOver R B) : |
| 29 | Spec.map (CommRingCat.ofHom (affineOverIsoAlgebraEquiv R A B e).toRingHom) = e.hom.left := by |
| 30 | change ((algSpec (CommRingCat.of R)).map |
| 31 | ((algSpec.fullyFaithful (R := CommRingCat.of R)).preimage |
| 32 | (X := Opposite.op (CommAlgCat.of R A)) (Y := Opposite.op (CommAlgCat.of R B)) e.hom)).left = _ |
| 33 | exact congrArg Over.Hom.left ((algSpec.fullyFaithful (R := CommRingCat.of R)).map_preimage |
| 34 | (X := Opposite.op (CommAlgCat.of R A)) (Y := Opposite.op (CommAlgCat.of R B)) e.hom) |
| 35 | |
| 36 | end |
| 37 | |
| 38 | section |
| 39 | |
| 40 | /-! Reconstructing affine algebra isomorphisms is faithful and reverses |
| 41 | composition, with the literal scheme maps as witnesses. -/ |
| 42 | |
| 43 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 44 | |
| 45 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting |
| 46 | |
| 47 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 48 | |
| 49 | variable (R A B : Type) [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 50 | |
| 51 | theorem affineOverIsoAlgebraEquiv_injective : |
| 52 | Function.Injective (affineOverIsoAlgebraEquiv R A B) := by |
| 53 | intro e f h |
| 54 | apply Iso.ext |
| 55 | apply Over.OverMorphism.ext |
| 56 | have hs := congrArg (fun a : B ≃ₐ[R] A => Spec.map (CommRingCat.ofHom a.toRingHom)) h |
| 57 | simpa only [affineOverIsoAlgebraEquiv_spec] using hs |
| 58 | |
| 59 | theorem affineOverIsoAlgebraEquiv_refl : |
| 60 | affineOverIsoAlgebraEquiv R A A (Iso.refl (EtaleSplittingAt.EtaleSplitting.affineOver R A)) = AlgEquiv.refl := by |
| 61 | have hs : Spec.map (CommRingCat.ofHom |
| 62 | (affineOverIsoAlgebraEquiv R A A (Iso.refl (EtaleSplittingAt.EtaleSplitting.affineOver R A))).toRingHom) = |
| 63 | Spec.map (CommRingCat.ofHom (AlgEquiv.refl (R := R) (A₁ := A)).toRingHom) := by |
| 64 | rw [affineOverIsoAlgebraEquiv_spec] |
| 65 | exact (Spec.map_id (CommRingCat.of A)).symm |
| 66 | have hr := congrArg CommRingCat.Hom.hom (Spec.map_injective hs) |
| 67 | exact AlgEquiv.ext (fun a => RingHom.congr_fun hr a) |
| 68 | |
| 69 | variable (C : Type) [CommRing C] [Algebra R C] |
| 70 | |
| 71 | theorem affineOverIsoAlgebraEquiv_trans (e : EtaleSplittingAt.EtaleSplitting.affineOver R A ≅ EtaleSplittingAt.EtaleSplitting.affineOver R B) |
| 72 | (f : EtaleSplittingAt.EtaleSplitting.affineOver R B ≅ EtaleSplittingAt.EtaleSplitting.affineOver R C) : |
| 73 | affineOverIsoAlgebraEquiv R A C (e ≪≫ f) = |
| 74 | (affineOverIsoAlgebraEquiv R B C f).trans (affineOverIsoAlgebraEquiv R A B e) := by |
| 75 | have hs : Spec.map (CommRingCat.ofHom (affineOverIsoAlgebraEquiv R A C (e ≪≫ f)).toRingHom) = |
| 76 | Spec.map (CommRingCat.ofHom |
| 77 | ((affineOverIsoAlgebraEquiv R B C f).trans (affineOverIsoAlgebraEquiv R A B e)).toRingHom) := by |
| 78 | rw [affineOverIsoAlgebraEquiv_spec] |
| 79 | change e.hom.left ≫ f.hom.left = Spec.map |
| 80 | (CommRingCat.ofHom (affineOverIsoAlgebraEquiv R B C f).toRingHom ≫ |
| 81 | CommRingCat.ofHom (affineOverIsoAlgebraEquiv R A B e).toRingHom) |
| 82 | simp only [Spec.map_comp, affineOverIsoAlgebraEquiv_spec] |
| 83 | have hr := congrArg CommRingCat.Hom.hom (Spec.map_injective hs) |
| 84 | exact AlgEquiv.ext (fun a => RingHom.congr_fun hr a) |
| 85 | |
| 86 | end |
| 87 | |
| 88 | /-! Reconstructing the algebra from its induced affine scheme |
| 89 | isomorphism returns the original algebra isomorphism exactly. -/ |
| 90 | |
| 91 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 92 | |
| 93 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting |
| 94 | |
| 95 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 96 | |
| 97 | variable (R A B : Type) [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 98 | |
| 99 | theorem affineOverIsoAlgebraEquiv_affineAlgIso (e : A ≃ₐ[R] B) : |
| 100 | affineOverIsoAlgebraEquiv R B A (EtaleSplittingAt.EtaleSplitting.affineAlgIso R A e) = e := by |
| 101 | have hs : Spec.map (CommRingCat.ofHom |
| 102 | (affineOverIsoAlgebraEquiv R B A (EtaleSplittingAt.EtaleSplitting.affineAlgIso R A e)).toRingHom) = |
| 103 | Spec.map (CommRingCat.ofHom e.toRingHom) := |
| 104 | affineOverIsoAlgebraEquiv_spec R B A (EtaleSplittingAt.EtaleSplitting.affineAlgIso R A e) |
| 105 | have hr := congrArg CommRingCat.Hom.hom (Spec.map_injective hs) |
| 106 | exact AlgEquiv.ext (fun a => RingHom.congr_fun hr a) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.OverAlgebraIsomorphism |