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.Picard.PoincareBundle.ModuleBaseChange |
| 2 | |
| 3 | /-! # Module Base Change Functor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChangeFunctor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Functorial affine module base change for PoincareBundle |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory TensorProduct |
| 14 | open scoped TensorProduct |
| 15 | open scoped ChangeOfRings |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] |
| 20 | [Algebra R S] [Algebra R T] |
| 21 | |
| 22 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 23 | |
| 24 | /-- Restriction from S followed by extension to T. -/ |
| 25 | def sourceFunctor : ModuleCat.{u} S ⥤ ModuleCat.{u} T := |
| 26 | ModuleCat.restrictScalars (algebraMap R S) ⋙ ModuleCat.extendScalars (algebraMap R T) |
| 27 | |
| 28 | /-- Extension to the tensor ring followed by restriction to T. -/ |
| 29 | def targetFunctor : ModuleCat.{u} S ⥤ ModuleCat.{u} T := |
| 30 | ModuleCat.extendScalars (algebraMap S (S ⊗[R] T)) ⋙ |
| 31 | ModuleCat.restrictScalars (Algebra.TensorProduct.includeRight : T →ₐ[R] S ⊗[R] T).toRingHom |
| 32 | |
| 33 | instance restrictedScalarTower (M : ModuleCat.{u} S) : |
| 34 | IsScalarTower R S ((ModuleCat.restrictScalars (algebraMap R S)).obj M) := by |
| 35 | constructor |
| 36 | intro r s m |
| 37 | change (r • s) • m = (algebraMap R S r) • (s • m) |
| 38 | rw [Algebra.smul_def, mul_smul] |
| 39 | |
| 40 | /-- The library's extension-of-scalars object agrees with the ordinary tensor model. -/ |
| 41 | def sourceModelIso (M : ModuleCat.{u} S) : |
| 42 | (sourceFunctor R S T).obj M ≅ |
| 43 | ModuleCat.of T (T ⊗[R] (ModuleCat.restrictScalars (algebraMap R S)).obj M) := by |
| 44 | let T₀ := (ModuleCat.restrictScalars (algebraMap R T)).obj (ModuleCat.of T T) |
| 45 | let e : T₀ ≃ₗ[T] T := LinearEquiv.refl T T |
| 46 | exact (AlgebraTensorModule.congr e (LinearEquiv.refl R _)).toModuleIso |
| 47 | |
| 48 | /-- The library's tensor-ring extension agrees with the ordinary tensor model. -/ |
| 49 | def targetModelEquiv (M : ModuleCat.{u} S) : |
| 50 | (targetFunctor R S T).obj M ≃ₗ[T] (S ⊗[R] T) ⊗[S] M := by |
| 51 | let U₀ := (ModuleCat.restrictScalars (algebraMap S (S ⊗[R] T))).obj (ModuleCat.of (S ⊗[R] T) (S ⊗[R] T)) |
| 52 | let e : U₀ ≃ₗ[S] (S ⊗[R] T) := { |
| 53 | toFun := id |
| 54 | invFun := id |
| 55 | left_inv := fun _ => rfl |
| 56 | right_inv := fun _ => rfl |
| 57 | map_add' := fun _ _ => rfl |
| 58 | map_smul' := fun s u => by |
| 59 | change (algebraMap S (S ⊗[R] T) s) * (show (S ⊗[R] T) from u) = s • (show (S ⊗[R] T) from u) |
| 60 | exact (Algebra.smul_def s (show (S ⊗[R] T) from u)).symm } |
| 61 | let d := TensorProduct.congr e (LinearEquiv.refl S M) |
| 62 | refine { __ := d.toAddEquiv, map_smul' := ?_ } |
| 63 | intro t z |
| 64 | change d ((Algebra.TensorProduct.includeRight : T →ₐ[R] (S ⊗[R] T)) t • |
| 65 | (show U₀ ⊗[S] M from z)) = t • d z |
| 66 | induction z using TensorProduct.inductionOn with |
| 67 | | add x y hx hy => erw [smul_add, d.map_add, hx, hy, d.map_add, smul_add] |
| 68 | | tmul u m => |
| 69 | change d ((show U₀ from |
| 70 | (Algebra.TensorProduct.includeRight : T →ₐ[R] (S ⊗[R] T)) t * (show (S ⊗[R] T) from u)) ⊗ₜ[S] m) = _ |
| 71 | simp only [d, TensorProduct.congr_tmul, LinearEquiv.refl_apply] |
| 72 | rw [smul_tmul', Algebra.smul_def] |
| 73 | rfl |
| 74 | |
| 75 | /-- The objectwise affine base-change isomorphism between actual module functors. -/ |
| 76 | def objectIso (M : ModuleCat.{u} S) : |
| 77 | (sourceFunctor R S T).obj M ≅ (targetFunctor R S T).obj M := by |
| 78 | let M₀ := (ModuleCat.restrictScalars (algebraMap R S)).obj M |
| 79 | exact sourceModelIso R S T M ≪≫ |
| 80 | (ModuleBaseChange.baseChangeEquiv R S T M₀).symm.toModuleIso ≪≫ |
| 81 | (targetModelEquiv R S T M).symm.toModuleIso |
| 82 | |
| 83 | /-- The forward base-change map includes the T-scalar in the second tensor factor. -/ |
| 84 | theorem objectIso_hom_tmul (M : ModuleCat.{u} S) (t : T) |
| 85 | (m : (ModuleCat.restrictScalars (algebraMap R S)).obj M) : |
| 86 | (objectIso R S T M).hom (t ⊗ₜ[R,algebraMap R T] m) = |
| 87 | (1 ⊗ₜ[R] t) ⊗ₜ[S,algebraMap S (S ⊗[R] T)] (show M from m) := by |
| 88 | apply (targetModelEquiv R S T M).injective |
| 89 | change targetModelEquiv R S T M ((targetModelEquiv R S T M).symm |
| 90 | ((ModuleBaseChange.baseChangeEquiv R S T |
| 91 | ((ModuleCat.restrictScalars (algebraMap R S)).obj M)).symm (t ⊗ₜ[R] m))) = _ |
| 92 | erw [LinearEquiv.apply_symm_apply] |
| 93 | |
| 94 | /-- Module morphisms commute with the affine base-change comparison. -/ |
| 95 | theorem objectIso_naturality {M N : ModuleCat.{u} S} (a : M ⟶ N) : |
| 96 | (sourceFunctor R S T).map a ≫ (objectIso R S T N).hom = |
| 97 | (objectIso R S T M).hom ≫ (targetFunctor R S T).map a := by |
| 98 | apply ModuleCat.ExtendScalars.hom_ext (f := algebraMap R T) |
| 99 | intro m |
| 100 | change (objectIso R S T N).hom |
| 101 | ((ModuleCat.extendScalars (algebraMap R T)).map |
| 102 | ((ModuleCat.restrictScalars (algebraMap R S)).map a) ((1 : T) ⊗ₜ[R,algebraMap R T] m)) = |
| 103 | ((ModuleCat.extendScalars (algebraMap S (S ⊗[R] T))).map a) |
| 104 | ((objectIso R S T M).hom ((1 : T) ⊗ₜ[R,algebraMap R T] m)) |
| 105 | erw [ModuleCat.ExtendScalars.map_tmul, objectIso_hom_tmul] |
| 106 | |
| 107 | /-- The natural isomorphism for affine direct-image base change on modules. -/ |
| 108 | def baseChangeIso : sourceFunctor R S T ≅ targetFunctor R S T := |
| 109 | NatIso.ofComponents (objectIso R S T) (fun a => objectIso_naturality R S T a) |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChangeFunctor |