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.Kaehler.Basic |
| 2 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 3 | |
| 4 | /-! # Differential Base Iso -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialBaseIso |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Kähler differentials under an isomorphism of the base ring |
| 12 | |
| 13 | Changing the base ring along a surjective map does not change the module of |
| 14 | differentials of an algebra over the target. In particular, this gives explicit |
| 15 | transport along a base-ring isomorphism, with the induced scalar structure. |
| 16 | -/ |
| 17 | |
| 18 | section SurjectiveBase |
| 19 | |
| 20 | variable (R S T : Type*) [CommRing R] [CommRing S] [CommRing T] |
| 21 | variable [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T] |
| 22 | |
| 23 | /-- The universal `R`-derivation is also `S`-linear when `R → S` is surjective. -/ |
| 24 | def kaehlerDerivationOfSurjectiveBase |
| 25 | (h : Function.Surjective (algebraMap R S)) : Derivation S T Ω[T⁄R] where |
| 26 | toFun := KaehlerDifferential.D R T |
| 27 | map_add' := map_add (KaehlerDifferential.D R T) |
| 28 | map_smul' s x := by |
| 29 | obtain ⟨r, rfl⟩ := h s |
| 30 | simpa only [RingHom.id_apply, IsScalarTower.algebraMap_smul] using |
| 31 | (KaehlerDifferential.D R T).map_smul r x |
| 32 | map_one_eq_zero' := (KaehlerDifferential.D R T).map_one_eq_zero |
| 33 | leibniz' := (KaehlerDifferential.D R T).leibniz |
| 34 | |
| 35 | @[simp] |
| 36 | theorem kaehlerDerivationOfSurjectiveBase_apply |
| 37 | (h : Function.Surjective (algebraMap R S)) (x : T) : |
| 38 | kaehlerDerivationOfSurjectiveBase R S T h x = KaehlerDifferential.D R T x := rfl |
| 39 | |
| 40 | /-- A surjective change of base gives an actual linear equivalence between |
| 41 | the two modules of Kähler differentials. -/ |
| 42 | def kaehlerDifferentialEquivOfSurjectiveBase |
| 43 | (h : Function.Surjective (algebraMap R S)) : Ω[T⁄R] ≃ₗ[T] Ω[T⁄S] := by |
| 44 | let f := KaehlerDifferential.map R S T T |
| 45 | let g := (kaehlerDerivationOfSurjectiveBase R S T h).liftKaehlerDifferential |
| 46 | have hgf : g.comp f = LinearMap.id := by |
| 47 | apply Derivation.liftKaehlerDifferential_unique |
| 48 | ext x |
| 49 | simp [f, g] |
| 50 | have hfg : f.comp g = LinearMap.id := by |
| 51 | apply Derivation.liftKaehlerDifferential_unique |
| 52 | ext x |
| 53 | simp [f, g] |
| 54 | exact |
| 55 | { f with |
| 56 | invFun := g |
| 57 | left_inv := fun x => LinearMap.congr_fun hgf x |
| 58 | right_inv := fun x => LinearMap.congr_fun hfg x } |
| 59 | |
| 60 | @[simp] |
| 61 | theorem kaehlerDifferentialEquivOfSurjectiveBase_D |
| 62 | (h : Function.Surjective (algebraMap R S)) (x : T) : |
| 63 | kaehlerDifferentialEquivOfSurjectiveBase R S T h (KaehlerDifferential.D R T x) = |
| 64 | KaehlerDifferential.D S T x := by |
| 65 | change KaehlerDifferential.map R S T T (KaehlerDifferential.D R T x) = _ |
| 66 | simp |
| 67 | |
| 68 | @[simp] |
| 69 | theorem kaehlerDifferentialEquivOfSurjectiveBase_symm_D |
| 70 | (h : Function.Surjective (algebraMap R S)) (x : T) : |
| 71 | (kaehlerDifferentialEquivOfSurjectiveBase R S T h).symm |
| 72 | (KaehlerDifferential.D S T x) = KaehlerDifferential.D R T x := by |
| 73 | apply (kaehlerDifferentialEquivOfSurjectiveBase R S T h).injective |
| 74 | simp |
| 75 | |
| 76 | theorem kaehlerDifferential_rank_eq_of_surjectiveBase |
| 77 | (h : Function.Surjective (algebraMap R S)) : |
| 78 | Module.rank T Ω[T⁄R] = Module.rank T Ω[T⁄S] := |
| 79 | (kaehlerDifferentialEquivOfSurjectiveBase R S T h).rank_eq |
| 80 | |
| 81 | theorem kaehlerDifferential_finrank_eq_of_surjectiveBase |
| 82 | (h : Function.Surjective (algebraMap R S)) : |
| 83 | Module.finrank T Ω[T⁄R] = Module.finrank T Ω[T⁄S] := |
| 84 | (kaehlerDifferentialEquivOfSurjectiveBase R S T h).finrank_eq |
| 85 | |
| 86 | end SurjectiveBase |
| 87 | |
| 88 | variable {R S : Type*} (T : Type*) [CommRing R] [CommRing S] [CommRing T] |
| 89 | variable [Algebra R T] |
| 90 | |
| 91 | /-- The scalar structure obtained by transporting the base along a ring |
| 92 | isomorphism. -/ |
| 93 | abbrev differentialBaseIsoAlgebra (e : S ≃+* R) : Algebra S T := |
| 94 | ((algebraMap R T).comp e.toRingHom).toAlgebra |
| 95 | |
| 96 | /-- Kähler differentials are unchanged by transporting the base ring through |
| 97 | an isomorphism. The new scalar structure is specified by composition. -/ |
| 98 | def kaehlerDifferentialBaseIso (e : S ≃+* R) : |
| 99 | letI := differentialBaseIsoAlgebra T e |
| 100 | Ω[T⁄R] ≃ₗ[T] Ω[T⁄S] := by |
| 101 | let := differentialBaseIsoAlgebra T e |
| 102 | let : Algebra S R := e.toRingHom.toAlgebra |
| 103 | have : IsScalarTower S R T := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 104 | exact (kaehlerDifferentialEquivOfSurjectiveBase S R T e.surjective).symm |
| 105 | |
| 106 | @[simp] |
| 107 | theorem kaehlerDifferentialBaseIso_D (e : S ≃+* R) (x : T) : |
| 108 | letI := differentialBaseIsoAlgebra T e |
| 109 | kaehlerDifferentialBaseIso T e (KaehlerDifferential.D R T x) = |
| 110 | KaehlerDifferential.D S T x := by |
| 111 | let := differentialBaseIsoAlgebra T e |
| 112 | let : Algebra S R := e.toRingHom.toAlgebra |
| 113 | have : IsScalarTower S R T := IsScalarTower.of_algebraMap_eq (fun _ => rfl) |
| 114 | exact kaehlerDifferentialEquivOfSurjectiveBase_symm_D S R T e.surjective x |
| 115 | |
| 116 | theorem kaehlerDifferential_rank_eq_of_baseIso (e : S ≃+* R) : |
| 117 | letI := differentialBaseIsoAlgebra T e |
| 118 | Module.rank T Ω[T⁄R] = Module.rank T Ω[T⁄S] := by |
| 119 | let := differentialBaseIsoAlgebra T e |
| 120 | exact (kaehlerDifferentialBaseIso T e).rank_eq |
| 121 | |
| 122 | theorem kaehlerDifferential_finrank_eq_of_baseIso (e : S ≃+* R) : |
| 123 | letI := differentialBaseIsoAlgebra T e |
| 124 | Module.finrank T Ω[T⁄R] = Module.finrank T Ω[T⁄S] := by |
| 125 | let := differentialBaseIsoAlgebra T e |
| 126 | exact (kaehlerDifferentialBaseIso T e).finrank_eq |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.AlgebraicGeometry.Foundations.Scheme.DifferentialBaseIso |