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.Algebra.Category.CommAlgCat.Basic |
| 2 | import Mathlib.RingTheory.TensorProduct.Basic |
| 3 | import Mathlib.CategoryTheory.Adjunction.Basic |
| 4 | |
| 5 | /-! # Comm Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.CommBaseChange.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: base change and restriction for commutative algebras |
| 13 | |
| 14 | These are the algebra functors needed to descend the finite affine local |
| 15 | representatives. The adjunction is the actual tensor-product universal property. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory TensorProduct |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {R S : Type u} [CommRing R] [CommRing S] (f : R →+* S) |
| 26 | |
| 27 | /-- Restriction along the actual ring map. -/ |
| 28 | def commAlgRestrict : CommAlgCat.{u} S ⥤ CommAlgCat.{u} R where |
| 29 | obj A := |
| 30 | letI : Algebra R A := Algebra.compHom _ f |
| 31 | CommAlgCat.of R A |
| 32 | map {A B} g := |
| 33 | letI : Algebra R A := Algebra.compHom _ f |
| 34 | letI : Algebra R B := Algebra.compHom _ f |
| 35 | letI : Algebra R S := f.toAlgebra |
| 36 | haveI : IsScalarTower R S A := .of_algebraMap_eq' rfl |
| 37 | haveI : IsScalarTower R S B := .of_algebraMap_eq' rfl |
| 38 | CommAlgCat.ofHom (g.hom.restrictScalars R) |
| 39 | |
| 40 | /-- Actual tensor-product base change of commutative algebras. -/ |
| 41 | def commAlgExtend : CommAlgCat.{u} R ⥤ CommAlgCat.{u} S := by |
| 42 | letI : Algebra R S := f.toAlgebra |
| 43 | exact { |
| 44 | obj A := CommAlgCat.of S (S ⊗[R] A) |
| 45 | map {A B} g := CommAlgCat.ofHom |
| 46 | ((AlgHom.liftEquiv R S A (S ⊗[R] B)) (Algebra.TensorProduct.includeRight.comp g.hom)) |
| 47 | map_id A := by |
| 48 | apply CommAlgCat.hom_ext |
| 49 | apply (AlgHom.liftEquiv R S A (S ⊗[R] A)).symm.injective |
| 50 | ext a |
| 51 | simp |
| 52 | map_comp {A B C} g h := by |
| 53 | apply CommAlgCat.hom_ext |
| 54 | apply (AlgHom.liftEquiv R S A (S ⊗[R] C)).symm.injective |
| 55 | ext a |
| 56 | simp } |
| 57 | |
| 58 | /-- The tensor-product adjunction on actual commutative algebras. -/ |
| 59 | def commAlgExtendRestrictAdj : commAlgExtend f ⊣ commAlgRestrict f := by |
| 60 | letI : Algebra R S := f.toAlgebra |
| 61 | apply Adjunction.mkOfHomEquiv |
| 62 | refine { |
| 63 | homEquiv := fun A B => ?_ |
| 64 | homEquiv_naturality_left_symm := ?_ |
| 65 | homEquiv_naturality_right := ?_ } |
| 66 | · letI : Algebra R B := Algebra.compHom _ f |
| 67 | haveI : IsScalarTower R S B := .of_algebraMap_eq' rfl |
| 68 | exact { |
| 69 | toFun g := CommAlgCat.ofHom ((AlgHom.liftEquiv R S A B).symm g.hom) |
| 70 | invFun g := CommAlgCat.ofHom ((AlgHom.liftEquiv R S A B) g.hom) |
| 71 | left_inv g := CommAlgCat.hom_ext ((AlgHom.liftEquiv R S A B).apply_symm_apply g.hom) |
| 72 | right_inv g := CommAlgCat.hom_ext ((AlgHom.liftEquiv R S A B).symm_apply_apply g.hom) } |
| 73 | · intro A B C g h |
| 74 | let : Algebra R C := Algebra.compHom _ f |
| 75 | have : IsScalarTower R S C := .of_algebraMap_eq' rfl |
| 76 | apply CommAlgCat.hom_ext |
| 77 | apply (AlgHom.liftEquiv R S A C).symm.injective |
| 78 | ext a |
| 79 | simp [commAlgExtend, commAlgRestrict] |
| 80 | · intro A B C g h |
| 81 | apply CommAlgCat.hom_ext |
| 82 | ext a |
| 83 | rfl |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.CommBaseChange.Construction |