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.FormalGeometry.Completion.ProEtale.Algebras |
| 2 | import Mathlib.CategoryTheory.Adjunction.Restrict |
| 3 | import Mathlib.CategoryTheory.Adjunction.Opposites |
| 4 | |
| 5 | /-! # Algebra Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ProEtale.AlgebraBaseChange.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: the tensor adjunction on actual affine pro-étale objects |
| 13 | |
| 14 | The tensor product remains weakly étale by its spectrum pullback square. |
| 15 | Restriction along a weakly étale covering ring map remains weakly étale |
| 16 | by composition. The ordinary algebra adjunction therefore restricts. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite TensorProduct |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) |
| 27 | |
| 28 | /-- Tensor-product base change preserves the actual geometric weakly étale condition. -/ |
| 29 | theorem commAlgExtend_weaklyEtale (A : Algebras.Construction.ProEtaleAlgebra R) : |
| 30 | Algebras.Construction.weaklyEtaleAlgebra S ((CommBaseChange.Construction.commAlgExtend f).obj A.obj) := by |
| 31 | let : Algebra R S := f.toAlgebra |
| 32 | change WeaklyEtale (Spec.map (CommRingCat.ofHom (algebraMap S (S ⊗[R] A.obj)))) |
| 33 | rw [← pullbackSpecIso_inv_fst' R S A.obj] |
| 34 | infer_instance |
| 35 | |
| 36 | /-- Base change restricted to the affine objects of the actual site. -/ |
| 37 | def proEtaleAlgebraExtend : Algebras.Construction.ProEtaleAlgebra R ⥤ Algebras.Construction.ProEtaleAlgebra S where |
| 38 | obj A := ⟨(CommBaseChange.Construction.commAlgExtend f).obj A.obj, commAlgExtend_weaklyEtale f A⟩ |
| 39 | map g := ObjectProperty.homMk ((CommBaseChange.Construction.commAlgExtend f).map g.hom) |
| 40 | map_id A := ObjectProperty.hom_ext _ ((CommBaseChange.Construction.commAlgExtend f).map_id A.obj) |
| 41 | map_comp g h := ObjectProperty.hom_ext _ ((CommBaseChange.Construction.commAlgExtend f).map_comp g.hom h.hom) |
| 42 | |
| 43 | variable (hf : WeaklyEtale (Spec.map (CommRingCat.ofHom f))) |
| 44 | |
| 45 | include hf in |
| 46 | /-- Restricting scalars through a weakly étale base remains in the actual site. -/ |
| 47 | theorem commAlgRestrict_weaklyEtale (A : Algebras.Construction.ProEtaleAlgebra S) : |
| 48 | Algebras.Construction.weaklyEtaleAlgebra R ((CommBaseChange.Construction.commAlgRestrict f).obj A.obj) := by |
| 49 | have := hf |
| 50 | change WeaklyEtale (Spec.map (CommRingCat.ofHom f ≫ |
| 51 | CommRingCat.ofHom (algebraMap S A.obj))) |
| 52 | rw [Spec.map_comp] |
| 53 | infer_instance |
| 54 | |
| 55 | /-- Restriction along a weakly étale covering ring map. -/ |
| 56 | def proEtaleAlgebraRestrict : Algebras.Construction.ProEtaleAlgebra S ⥤ Algebras.Construction.ProEtaleAlgebra R where |
| 57 | obj A := ⟨(CommBaseChange.Construction.commAlgRestrict f).obj A.obj, commAlgRestrict_weaklyEtale f hf A⟩ |
| 58 | map g := ObjectProperty.homMk ((CommBaseChange.Construction.commAlgRestrict f).map g.hom) |
| 59 | |
| 60 | /-- The ordinary tensor-product adjunction restricted to actual affine site objects. -/ |
| 61 | def proEtaleAlgebraAdj : proEtaleAlgebraExtend f ⊣ proEtaleAlgebraRestrict f hf := |
| 62 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).restrictFullyFaithful |
| 63 | (Algebras.Construction.weaklyEtaleAlgebra R).fullyFaithfulι (Algebras.Construction.weaklyEtaleAlgebra S).fullyFaithfulι |
| 64 | (Iso.refl _) (Iso.refl _) |
| 65 | |
| 66 | theorem proEtaleAlgebraAdj_unit (A : Algebras.Construction.ProEtaleAlgebra R) : |
| 67 | ((proEtaleAlgebraAdj f hf).unit.app A).hom = |
| 68 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).unit.app A.obj := by |
| 69 | simpa [proEtaleAlgebraAdj] using! |
| 70 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).map_restrictFullyFaithful_unit_app |
| 71 | (L := proEtaleAlgebraExtend f) (R := proEtaleAlgebraRestrict f hf) |
| 72 | (Algebras.Construction.weaklyEtaleAlgebra R).fullyFaithfulι (Algebras.Construction.weaklyEtaleAlgebra S).fullyFaithfulι |
| 73 | (Iso.refl _) (Iso.refl _) A |
| 74 | |
| 75 | theorem proEtaleAlgebraAdj_counit (A : Algebras.Construction.ProEtaleAlgebra S) : |
| 76 | ((proEtaleAlgebraAdj f hf).counit.app A).hom = |
| 77 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).counit.app A.obj := by |
| 78 | have h := |
| 79 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).map_restrictFullyFaithful_counit_app |
| 80 | (L := proEtaleAlgebraExtend f) (R := proEtaleAlgebraRestrict f hf) |
| 81 | (Algebras.Construction.weaklyEtaleAlgebra R).fullyFaithfulι (Algebras.Construction.weaklyEtaleAlgebra S).fullyFaithfulι |
| 82 | (Iso.refl _) (Iso.refl _) A |
| 83 | change ((proEtaleAlgebraAdj f hf).counit.app A).hom = |
| 84 | 𝟙 _ ≫ (CommBaseChange.Construction.commAlgExtend f).map (𝟙 ((CommBaseChange.Construction.commAlgRestrict f).obj A.obj)) ≫ |
| 85 | (CommBaseChange.Construction.commAlgExtendRestrictAdj f).counit.app A.obj at h |
| 86 | erw [CategoryTheory.Functor.map_id, Category.id_comp, Category.id_comp] at h |
| 87 | exact h |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ProEtale.AlgebraBaseChange.Construction |