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.Cech.Switch |
| 2 | |
| 3 | /-! # Diagonal -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Diagonal |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The actual diagonal compatibility of affine gluing implies the switch diagonal law |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.ModuleCat TensorProduct |
| 14 | open scoped TensorProduct ChangeOfRings |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.ModuleModels OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Switch |
| 19 | |
| 20 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 21 | |
| 22 | /-- The coordinate map of the actual affine diagonal. -/ |
| 23 | def diagonalMap : S ⊗[R] S →+* S := (Algebra.TensorProduct.lmul' R).toRingHom |
| 24 | |
| 25 | variable (M : ModuleCat.{u} S) |
| 26 | |
| 27 | /-- The identity map after restricting scalars along a projection and the diagonal. -/ |
| 28 | def diagonalInput (i : S →+* S ⊗[R] S) (hi : ∀ s, diagonalMap R S (i s) = s) : |
| 29 | M ⟶ (restrictScalars i).obj ((restrictScalars (diagonalMap R S)).obj M) := |
| 30 | ofHom (Y := (restrictScalars i).obj ((restrictScalars (diagonalMap R S)).obj M)) { |
| 31 | toFun := fun m => m |
| 32 | map_add' := fun _ _ => rfl |
| 33 | map_smul' := fun s m => by |
| 34 | change s • m = diagonalMap R S (i s) • m |
| 35 | rw [hi] } |
| 36 | |
| 37 | /-- Evaluation on the diagonal, as a morphism of actual tensor-ring modules. -/ |
| 38 | def evaluation (i : S →+* S ⊗[R] S) (hi : ∀ s, diagonalMap R S (i s) = s) : |
| 39 | (extendScalars i).obj M ⟶ (restrictScalars (diagonalMap R S)).obj M := |
| 40 | ((extendRestrictScalarsAdj i).homEquiv _ _).symm (diagonalInput R S M i hi) |
| 41 | |
| 42 | @[simp] |
| 43 | theorem evaluation_tmul (i : S →+* S ⊗[R] S) |
| 44 | (hi : ∀ s, diagonalMap R S (i s) = s) (x : S ⊗[R] S) (m : M) : |
| 45 | evaluation R S M i hi (x ⊗ₜ[S,i] m) = |
| 46 | (show (restrictScalars (diagonalMap R S)).obj M from diagonalMap R S x • m) := rfl |
| 47 | |
| 48 | /-- Evaluation of the first pullback on the diagonal. -/ |
| 49 | def firstEvaluation : ModuleModels.firstPullback R S M ⟶ (restrictScalars (diagonalMap R S)).obj M := |
| 50 | evaluation R S M (ModuleModels.firstMap R S) (fun s => mul_one s) |
| 51 | |
| 52 | /-- Evaluation of the second pullback on the diagonal. -/ |
| 53 | def secondEvaluation : ModuleModels.secondPullback R S M ⟶ (restrictScalars (diagonalMap R S)).obj M := |
| 54 | evaluation R S M (ModuleModels.secondMap R S) (fun s => one_mul s) |
| 55 | |
| 56 | /-- The first tensor model identifies geometric diagonal evaluation with scalar multiplication. -/ |
| 57 | theorem diagonal_firstModel (z : ModuleModels.firstPullback R S M) : |
| 58 | DescentSwitch.diagonal R S ((restrictScalars (algebraMap R S)).obj M) |
| 59 | (ModuleModels.firstModel R S M z) = |
| 60 | (show (restrictScalars (algebraMap R S)).obj M from firstEvaluation R S M z) := by |
| 61 | induction z using TensorProduct.inductionOn with |
| 62 | | add x y hx hy => |
| 63 | erw [map_add, map_add, hx, hy, map_add] |
| 64 | rfl |
| 65 | | tmul x m => |
| 66 | induction x using TensorProduct.inductionOn with |
| 67 | | add x y hx hy => |
| 68 | erw [add_tmul, map_add, map_add, hx, hy, map_add] |
| 69 | rfl |
| 70 | | tmul s t => |
| 71 | erw [ModuleModels.firstModel_tmul, DescentSwitch.diagonal_tmul] |
| 72 | change t • (s • m) = (s * t) • m |
| 73 | rw [← mul_smul, mul_comm] |
| 74 | |
| 75 | /-- The second tensor model identifies geometric diagonal evaluation with scalar multiplication. -/ |
| 76 | theorem diagonal_secondModel (z : ModuleModels.secondPullback R S M) : |
| 77 | DescentSwitch.diagonal R S ((restrictScalars (algebraMap R S)).obj M) |
| 78 | (ModuleModels.secondModel R S M z) = |
| 79 | (show (restrictScalars (algebraMap R S)).obj M from secondEvaluation R S M z) := by |
| 80 | induction z using TensorProduct.inductionOn with |
| 81 | | add x y hx hy => |
| 82 | erw [map_add, map_add, hx, hy, map_add] |
| 83 | rfl |
| 84 | | tmul x m => |
| 85 | induction x using TensorProduct.inductionOn with |
| 86 | | add x y hx hy => |
| 87 | erw [add_tmul, map_add, map_add, hx, hy, map_add] |
| 88 | rfl |
| 89 | | tmul s t => |
| 90 | erw [ModuleModels.secondModel_tmul, DescentSwitch.diagonal_tmul] |
| 91 | exact (mul_smul s t m).symm |
| 92 | |
| 93 | /-- Compatibility of the actual gluing isomorphism with the diagonal gives the switch law. -/ |
| 94 | theorem gluingSwitch_diagonal (σ : ModuleModels.firstPullback R S M ≅ ModuleModels.secondPullback R S M) |
| 95 | (h : σ.hom ≫ secondEvaluation R S M = firstEvaluation R S M) |
| 96 | (z : S ⊗[R] (restrictScalars (algebraMap R S)).obj M) : |
| 97 | DescentSwitch.diagonal R S ((restrictScalars (algebraMap R S)).obj M) |
| 98 | (Switch.gluingSwitch R S M σ z) = |
| 99 | DescentSwitch.diagonal R S ((restrictScalars (algebraMap R S)).obj M) z := by |
| 100 | have hh := ConcreteCategory.congr_hom h ((ModuleModels.firstModel R S M).symm z) |
| 101 | calc |
| 102 | _ = (show (restrictScalars (algebraMap R S)).obj M from |
| 103 | secondEvaluation R S M (σ.hom ((ModuleModels.firstModel R S M).symm z))) := |
| 104 | diagonal_secondModel R S M _ |
| 105 | _ = (show (restrictScalars (algebraMap R S)).obj M from |
| 106 | firstEvaluation R S M ((ModuleModels.firstModel R S M).symm z)) := hh |
| 107 | _ = DescentSwitch.diagonal R S ((restrictScalars (algebraMap R S)).obj M) |
| 108 | (ModuleModels.firstModel R S M ((ModuleModels.firstModel R S M).symm z)) := |
| 109 | (diagonal_firstModel R S M _).symm |
| 110 | _ = _ := by rw [AddEquiv.apply_symm_apply] |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Cech.Diagonal |