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 | /-! # Algebra Automorphism Naturality -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.AlgebraAutomorphismNaturality |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The literal affine tensor presentation of a scheme pullback is |
| 13 | natural in algebra maps, as verified by its two pullback projections. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting |
| 19 | |
| 20 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 21 | |
| 22 | variable (R A B T : Type) [CommRing R] [CommRing A] [CommRing B] [CommRing T] |
| 23 | [Algebra R A] [Algebra R B] [Algebra R T] |
| 24 | |
| 25 | def affineOverAlgHom (f : A →ₐ[R] B) : EtaleSplittingAt.EtaleSplitting.affineOver R B ⟶ EtaleSplittingAt.EtaleSplitting.affineOver R A := |
| 26 | (algSpec (CommRingCat.of R)).map |
| 27 | (CommAlgCat.ofHom (X := A) (Y := B) f).op |
| 28 | |
| 29 | theorem affineOverAlgHom_left (f : A →ₐ[R] B) : |
| 30 | (affineOverAlgHom R A B f).left = Spec.map (CommRingCat.ofHom f.toRingHom) := rfl |
| 31 | |
| 32 | theorem affineBaseChangeIso_hom_fst : |
| 33 | (EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R A T).hom.left ≫ |
| 34 | pullback.fst (EtaleSplittingAt.EtaleSplitting.affineOver R A).hom (Spec.map (CommRingCat.ofHom (algebraMap R T))) = |
| 35 | Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.includeRight : A →ₐ[R] T ⊗[R] A).toRingHom) := by |
| 36 | change ((pullbackSpecIso R T A).inv ≫ (pullbackSymmetry _ _).hom) ≫ pullback.fst _ _ = _ |
| 37 | rw [Category.assoc, pullbackSymmetry_hom_comp_fst] |
| 38 | exact pullbackSpecIso_inv_snd R T A |
| 39 | |
| 40 | theorem affineBaseChangeIso_natural (f : A →ₐ[R] B) : |
| 41 | (EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R B T).hom ≫ |
| 42 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R T)))).map (affineOverAlgHom R A B f) = |
| 43 | affineOverAlgHom T (T ⊗[R] A) (T ⊗[R] B) |
| 44 | (Algebra.TensorProduct.map (AlgHom.id T T) f) ≫ (EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R A T).hom := by |
| 45 | apply Over.OverMorphism.ext |
| 46 | apply pullback.hom_ext |
| 47 | · change ((EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R B T).hom.left ≫ |
| 48 | ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R T)))).map |
| 49 | (affineOverAlgHom R A B f)).left) ≫ pullback.fst _ _ = |
| 50 | ((affineOverAlgHom T (T ⊗[R] A) (T ⊗[R] B) |
| 51 | (Algebra.TensorProduct.map (AlgHom.id T T) f)).left ≫ |
| 52 | (EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R A T).hom.left) ≫ pullback.fst _ _ |
| 53 | simp only [Category.assoc, Over.pullback_map_left, pullback.lift_fst] |
| 54 | rw [← Category.assoc, affineBaseChangeIso_hom_fst, affineOverAlgHom_left, |
| 55 | affineBaseChangeIso_hom_fst, affineOverAlgHom_left, ← Spec.map_comp, ← Spec.map_comp] |
| 56 | apply congrArg Spec.map |
| 57 | apply CommRingCat.hom_ext |
| 58 | apply RingHom.ext |
| 59 | intro a |
| 60 | change (1 : T) ⊗ₜ[R] f a = |
| 61 | Algebra.TensorProduct.map (AlgHom.id T T) f ((1 : T) ⊗ₜ[R] a) |
| 62 | rfl |
| 63 | · exact (Over.w ((EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R B T).hom ≫ |
| 64 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R T)))).map |
| 65 | (affineOverAlgHom R A B f))).trans |
| 66 | (Over.w (affineOverAlgHom T (T ⊗[R] A) (T ⊗[R] B) |
| 67 | (Algebra.TensorProduct.map (AlgHom.id T T) f) ≫ (EtaleSplittingAt.EtaleSplitting.affineBaseChangeIso R A T).hom)).symm |
| 68 | |
| 69 | end |
| 70 | |
| 71 | /-! An actual commuting algebra square gives the corresponding |
| 72 | commuting square of affine scheme automorphisms over the same base. -/ |
| 73 | |
| 74 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 75 | |
| 76 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.EtaleSplittingAt.EtaleSplitting |
| 77 | |
| 78 | attribute [local implicit_reducible] EtaleSplittingAt.EtaleSplitting.affineOver |
| 79 | |
| 80 | variable (R A B : Type) [CommRing R] [CommRing A] [CommRing B] [Algebra R A] [Algebra R B] |
| 81 | |
| 82 | theorem affineAlgIso_natural (q : A →ₐ[R] B) (e : A ≃ₐ[R] A) (f : B ≃ₐ[R] B) |
| 83 | (h : q.comp e.toAlgHom = f.toAlgHom.comp q) : |
| 84 | (EtaleSplittingAt.EtaleSplitting.affineAlgIso R B f).hom ≫ affineOverAlgHom R A B q = |
| 85 | affineOverAlgHom R A B q ≫ (EtaleSplittingAt.EtaleSplitting.affineAlgIso R A e).hom := by |
| 86 | apply Over.OverMorphism.ext |
| 87 | change Spec.map (CommRingCat.ofHom f.toRingHom) ≫ Spec.map (CommRingCat.ofHom q.toRingHom) = |
| 88 | Spec.map (CommRingCat.ofHom q.toRingHom) ≫ Spec.map (CommRingCat.ofHom e.toRingHom) |
| 89 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 90 | apply congrArg Spec.map |
| 91 | apply CommRingCat.hom_ext |
| 92 | exact congrArg AlgHom.toRingHom h.symm |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Affine.AlgebraAutomorphismNaturality |