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.ArithmeticGeometry.OrdinaryLocus.Openness.FlatBaseChangeFunctions |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.RelativeBaseChange |
| 3 | |
| 4 | /-! # Tensor Picard Descent -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorPicardDescent.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Products over a field preserve Picard descent for a quasi-compact quasi-separated map preserving functions. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open CartesianMonoidalCategory MonoidalCategory |
| 14 | |
| 15 | variable {K : Type} [Field K] |
| 16 | |
| 17 | theorem isPullback_tensor_left {A B : Over (Spec (.of K))} (f : A ⟶ B) (T : Over (Spec (.of K))) : |
| 18 | IsPullback (fst A T).left (f ⊗ₘ 𝟙 T).left f.left (fst B T).left := by |
| 19 | exact RelativeBaseChange.Construction.isPullback_overPullback_map f T.hom |
| 20 | |
| 21 | theorem isPullback_tensor_right {A B : Over (Spec (.of K))} (f : A ⟶ B) (T : Over (Spec (.of K))) : |
| 22 | IsPullback (snd T A).left (𝟙 T ⊗ₘ f).left f.left (snd T B).left := by |
| 23 | refine IsPullback.of_bot ?_ ?_ (IsPullback.of_hasPullback T.hom B.hom).flip |
| 24 | · have he : (𝟙 T ⊗ₘ f).left ≫ (fst T B).left = (fst T A).left := |
| 25 | congrArg Over.Hom.left ((tensorHom_fst (𝟙 T) f).trans (Category.comp_id _)) |
| 26 | rw [Over.w f] |
| 27 | change IsPullback (snd T A).left ((𝟙 T ⊗ₘ f).left ≫ (fst T B).left) A.hom T.hom |
| 28 | rw [he] |
| 29 | exact (IsPullback.of_hasPullback T.hom A.hom).flip |
| 30 | · exact (congrArg Over.Hom.left (tensorHom_snd (𝟙 T) f)).symm |
| 31 | |
| 32 | theorem tensor_left_preserves_functions |
| 33 | {A B : Over (Spec (.of K))} (f : A ⟶ B) [QuasiCompact f.left] [QuasiSeparated f.left] |
| 34 | (hf : ∀ U : B.left.Opens, IsIso (f.left.app U)) (T : Over (Spec (.of K))) |
| 35 | (U : (B ⊗ T).left.Opens) : IsIso ((f ⊗ₘ 𝟙 T).left.app U) := by |
| 36 | have : Flat (fst B T).left := inferInstanceAs (Flat (pullback.fst B.hom T.hom)) |
| 37 | exact FlatBaseChangeFunctions.Construction.isIso_app_flat_baseChange f.left (fst B T).left (fst A T).left (f ⊗ₘ 𝟙 T).left |
| 38 | (isPullback_tensor_left f T) hf U |
| 39 | |
| 40 | theorem tensor_right_preserves_functions |
| 41 | {A B : Over (Spec (.of K))} (f : A ⟶ B) [QuasiCompact f.left] [QuasiSeparated f.left] |
| 42 | (hf : ∀ U : B.left.Opens, IsIso (f.left.app U)) (T : Over (Spec (.of K))) |
| 43 | (U : (T ⊗ B).left.Opens) : IsIso ((𝟙 T ⊗ₘ f).left.app U) := by |
| 44 | have : Flat (snd T B).left := inferInstanceAs (Flat (pullback.snd T.hom B.hom)) |
| 45 | exact FlatBaseChangeFunctions.Construction.isIso_app_flat_baseChange f.left (snd T B).left (snd T A).left (𝟙 T ⊗ₘ f).left |
| 46 | (isPullback_tensor_right f T) hf U |
| 47 | |
| 48 | theorem picardPullback_tensor_left_injective |
| 49 | {A B : Over (Spec (.of K))} (f : A ⟶ B) [QuasiCompact f.left] [QuasiSeparated f.left] |
| 50 | (hf : ∀ U : B.left.Opens, IsIso (f.left.app U)) (T : Over (Spec (.of K))) : |
| 51 | Function.Injective (PicardPullback.Construction.picardPullback (f ⊗ₘ 𝟙 T).left) := |
| 52 | PicardPullback.Construction.picardPullback_injective_of_app _ (tensor_left_preserves_functions f hf T) |
| 53 | |
| 54 | theorem picardPullback_tensor_right_injective |
| 55 | {A B : Over (Spec (.of K))} (f : A ⟶ B) [QuasiCompact f.left] [QuasiSeparated f.left] |
| 56 | (hf : ∀ U : B.left.Opens, IsIso (f.left.app U)) (T : Over (Spec (.of K))) : |
| 57 | Function.Injective (PicardPullback.Construction.picardPullback (𝟙 T ⊗ₘ f).left) := |
| 58 | PicardPullback.Construction.picardPullback_injective_of_app _ (tensor_right_preserves_functions f hf T) |
| 59 | |
| 60 | theorem tensor_product_preserves_functions |
| 61 | {A B C D : Over (Spec (.of K))} (f : A ⟶ B) (g : C ⟶ D) |
| 62 | [QuasiCompact f.left] [QuasiSeparated f.left] [QuasiCompact g.left] [QuasiSeparated g.left] |
| 63 | (hf : ∀ U : B.left.Opens, IsIso (f.left.app U)) |
| 64 | (hg : ∀ U : D.left.Opens, IsIso (g.left.app U)) (U : (B ⊗ D).left.Opens) : |
| 65 | IsIso ((f ⊗ₘ g).left.app U) := by |
| 66 | have h : (f ⊗ₘ 𝟙 C) ≫ (𝟙 B ⊗ₘ g) = f ⊗ₘ g := tensor_id_comp_id_tensor g f |
| 67 | have : IsIso ((𝟙 B ⊗ₘ g).left.app U) := tensor_right_preserves_functions g hg B U |
| 68 | have : IsIso ((f ⊗ₘ 𝟙 C).left.app ((𝟙 B ⊗ₘ g).left ⁻¹ᵁ U)) := |
| 69 | tensor_left_preserves_functions f hf C _ |
| 70 | have hi : IsIso (((f ⊗ₘ 𝟙 C).left ≫ (𝟙 B ⊗ₘ g).left).app U) := by |
| 71 | exact (asIso ((𝟙 B ⊗ₘ g).left.app U) ≪≫ |
| 72 | asIso ((f ⊗ₘ 𝟙 C).left.app ((𝟙 B ⊗ₘ g).left ⁻¹ᵁ U))).isIso_hom |
| 73 | exact (congrArg (fun h => IsIso (h.left.app U)) h) ▸ hi |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorPicardDescent.Construction |