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.RingTheory.PicardGroup |
| 2 | import Mathlib.RingTheory.Finiteness.Descent |
| 3 | import Mathlib.LinearAlgebra.Dual.BaseChange |
| 4 | |
| 5 | /-! # Line Descent -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Affine.LineDescent |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Faithfully flat descent of invertible modules for PoincareBundle |
| 13 | |
| 14 | The contraction map M* tensor M → R detects invertibility. For a finitely |
| 15 | presented module, flat base change commutes with its dual, so faithful |
| 16 | flatness detects invertibility of the contraction map. This is the |
| 17 | affine algebra needed for descent of algebraic line bundles. |
| 18 | -/ |
| 19 | |
| 20 | open TensorProduct |
| 21 | |
| 22 | variable (R S M : Type*) [CommRing R] [CommRing S] [Algebra R S] |
| 23 | [AddCommGroup M] [Module R M] |
| 24 | |
| 25 | /-- Flat base change commutes with the dual of a finitely presented module. -/ |
| 26 | def dualBaseChangeEquiv [Module.Flat R S] [Module.FinitePresentation R M] : |
| 27 | S ⊗[R] Module.Dual R M ≃ₗ[S] Module.Dual S (S ⊗[R] M) := |
| 28 | (Module.FinitePresentation.isBaseChange_map R M R S).equiv ≪≫ₗ |
| 29 | (AlgebraTensorModule.rid R S S).congrRight |
| 30 | |
| 31 | @[simp] |
| 32 | theorem dualBaseChangeEquiv_tmul [Module.Flat R S] [Module.FinitePresentation R M] |
| 33 | (s t : S) (φ : Module.Dual R M) (m : M) : |
| 34 | dualBaseChangeEquiv R S M (s ⊗ₜ[R] φ) (t ⊗ₜ[R] m) = |
| 35 | s * t * algebraMap R S (φ m) := by |
| 36 | simp [dualBaseChangeEquiv, LinearEquiv.congrRight, LinearEquiv.arrowCongr, |
| 37 | IsBaseChange.equiv_tmul, Algebra.smul_def, mul_assoc, mul_comm] |
| 38 | |
| 39 | /-- Over the cover, the original contraction becomes the invertible |
| 40 | module's evaluation isomorphism after the canonical tensor identifications. -/ |
| 41 | def evaluationAfterBaseChangeEquiv |
| 42 | [Module.Flat R S] [Module.FinitePresentation R M] |
| 43 | [Module.Invertible S (S ⊗[R] M)] : |
| 44 | S ⊗[R] (Module.Dual R M ⊗[R] M) ≃ₗ[S] S := |
| 45 | AlgebraTensorModule.distribBaseChange R S (Module.Dual R M) M ≪≫ₗ |
| 46 | TensorProduct.congr (dualBaseChangeEquiv R S M) (LinearEquiv.refl S (S ⊗[R] M)) ≪≫ₗ |
| 47 | Module.Invertible.linearEquiv S (S ⊗[R] M) |
| 48 | |
| 49 | @[simp] |
| 50 | theorem evaluationAfterBaseChangeEquiv_tmul |
| 51 | [Module.Flat R S] [Module.FinitePresentation R M] |
| 52 | [Module.Invertible S (S ⊗[R] M)] |
| 53 | (s : S) (φ : Module.Dual R M) (m : M) : |
| 54 | evaluationAfterBaseChangeEquiv R S M (s ⊗ₜ[R] (φ ⊗ₜ[R] m)) = |
| 55 | s * algebraMap R S (φ m) := by |
| 56 | simp [evaluationAfterBaseChangeEquiv, Module.Invertible.linearEquiv] |
| 57 | |
| 58 | /-- The base-changed contraction is the evaluation equivalence. -/ |
| 59 | theorem evaluationAfterBaseChange_eq |
| 60 | [Module.Flat R S] [Module.FinitePresentation R M] |
| 61 | [Module.Invertible S (S ⊗[R] M)] : |
| 62 | (AlgebraTensorModule.rid R S S).toLinearMap ∘ₗ |
| 63 | AlgebraTensorModule.lTensor S S (contractLeft R M) = |
| 64 | (evaluationAfterBaseChangeEquiv R S M).toLinearMap := by |
| 65 | ext φ m |
| 66 | simp [Algebra.smul_def] |
| 67 | |
| 68 | /-- Invertibility of finitely presented modules descends along faithfully |
| 69 | flat ring maps. This asserts invertibility of the actual evaluation map. -/ |
| 70 | theorem invertible_of_faithfullyFlat_baseChange |
| 71 | [Module.FaithfullyFlat R S] [Module.FinitePresentation R M] |
| 72 | [Module.Invertible S (S ⊗[R] M)] : Module.Invertible R M := by |
| 73 | constructor |
| 74 | let c : (Module.Dual R M ⊗[R] M) →ₗ[R] R := { |
| 75 | toFun := contractLeft R M |
| 76 | map_add' := (contractLeft R M).map_add |
| 77 | map_smul' := (contractLeft R M).map_smul |
| 78 | } |
| 79 | change Function.Bijective c |
| 80 | have hreflect := @Module.FaithfullyFlat.lTensor_bijective_iff_bijective |
| 81 | R S inferInstance inferInstance inferInstance |
| 82 | (Module.Dual R M ⊗[R] M) R inferInstance inferInstance inferInstance inferInstance |
| 83 | c inferInstance |
| 84 | apply hreflect.mp |
| 85 | have heq := evaluationAfterBaseChange_eq R S M |
| 86 | have heval := (evaluationAfterBaseChangeEquiv R S M).bijective |
| 87 | let F := AlgebraTensorModule.lTensor S S (contractLeft R M) |
| 88 | let e := AlgebraTensorModule.rid R S S |
| 89 | have hcomp (x : S ⊗[R] (Module.Dual R M ⊗[R] M)) : |
| 90 | e (F x) = evaluationAfterBaseChangeEquiv R S M x := |
| 91 | LinearMap.congr_fun heq x |
| 92 | change Function.Bijective F |
| 93 | constructor |
| 94 | · intro x y hxy |
| 95 | apply heval.1 |
| 96 | rw [← hcomp x, ← hcomp y] |
| 97 | exact congrArg e hxy |
| 98 | · intro y |
| 99 | obtain ⟨x, hx⟩ := heval.2 (e y) |
| 100 | refine ⟨x, e.injective ?_⟩ |
| 101 | rw [hcomp x] |
| 102 | exact hx |
| 103 | |
| 104 | /-- On noetherian affine schemes, no finite-presentation hypothesis on |
| 105 | the descended module is needed: it follows by faithful flat descent of |
| 106 | finite generation. -/ |
| 107 | theorem invertible_of_faithfullyFlat_baseChange_noetherian |
| 108 | [IsNoetherianRing R] [Module.FaithfullyFlat R S] |
| 109 | [Module.Invertible S (S ⊗[R] M)] : Module.Invertible R M := by |
| 110 | have : Module.Finite R M := |
| 111 | Module.Finite.of_finite_tensorProduct_of_faithfullyFlat S |
| 112 | have : Module.FinitePresentation R M := Module.finitePresentation_of_finite R M |
| 113 | exact invertible_of_faithfullyFlat_baseChange R S M |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Affine.LineDescent |