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.TensorProduct |
| 2 | |
| 3 | /-! # Base Changed Coefficient Derivations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.BaseChangedCoefficientDerivations |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Relative derivations extend to the actual base-changed algebra |
| 10 | through the canonical cotangent base-change equivalence. Their values on |
| 11 | the original affine algebra are retained. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable (R S A B C : Type) [CommRing R] [CommRing S] [CommRing A] [CommRing B] [CommRing C] |
| 16 | [Algebra R S] [Algebra R A] [Algebra R B] [Algebra R C] |
| 17 | [Algebra S B] [Algebra S C] [Algebra A B] [Algebra A C] [Algebra B C] |
| 18 | [IsScalarTower R S B] [IsScalarTower R A B] [IsScalarTower R S C] |
| 19 | [IsScalarTower R A C] [IsScalarTower S B C] [IsScalarTower A B C] |
| 20 | [Algebra.IsPushout R S A B] |
| 21 | |
| 22 | omit [CommRing C] [Algebra R C] [Algebra S C] [Algebra A C] [Algebra B C] |
| 23 | [IsScalarTower R S C] [IsScalarTower R A C] [IsScalarTower S B C] [IsScalarTower A B C] in |
| 24 | theorem tensorKaehlerEquiv_symm_D_algebraMap (a : A) : |
| 25 | (KaehlerDifferential.tensorKaehlerEquiv R S A B).symm |
| 26 | (KaehlerDifferential.D S B (algebraMap A B a)) = |
| 27 | (1 : B) ⊗ₜ[A] KaehlerDifferential.D R A a := by |
| 28 | apply (KaehlerDifferential.tensorKaehlerEquiv R S A B).symm_apply_eq.mpr |
| 29 | simpa only [one_smul] using (KaehlerDifferential.tensorKaehlerEquiv_tmul_D R S A B (1 : B) a).symm |
| 30 | |
| 31 | def baseChangedCoefficientDerivation (d : Derivation R A C) : Derivation S B C := |
| 32 | KaehlerDifferential.linearMapEquivDerivation S B |
| 33 | ((d.liftKaehlerDifferential.liftBaseChange B).comp |
| 34 | (KaehlerDifferential.tensorKaehlerEquiv R S A B).symm.toLinearMap) |
| 35 | |
| 36 | omit [IsScalarTower R S C] in |
| 37 | theorem baseChangedCoefficientDerivation_algebraMap (d : Derivation R A C) (a : A) : |
| 38 | baseChangedCoefficientDerivation R S A B C d (algebraMap A B a) = d a := by |
| 39 | change d.liftKaehlerDifferential.liftBaseChange B |
| 40 | ((KaehlerDifferential.tensorKaehlerEquiv R S A B).symm |
| 41 | (KaehlerDifferential.D S B (algebraMap A B a))) = d a |
| 42 | rw [tensorKaehlerEquiv_symm_D_algebraMap, |
| 43 | LinearMap.liftBaseChange_tmul, one_smul, Derivation.liftKaehlerDifferential_comp_D] |
| 44 | |
| 45 | include R in |
| 46 | theorem baseChangedCoefficientDerivation_ext (d e : Derivation S B C) |
| 47 | (h : ∀ a : A, d (algebraMap A B a) = e (algebraMap A B a)) : d = e := by |
| 48 | have hA : (d.liftKaehlerDifferential.restrictScalars A).comp (KaehlerDifferential.map R S A B) = |
| 49 | (e.liftKaehlerDifferential.restrictScalars A).comp (KaehlerDifferential.map R S A B) := by |
| 50 | apply Derivation.liftKaehlerDifferential_unique |
| 51 | apply Derivation.ext |
| 52 | intro a |
| 53 | change d.liftKaehlerDifferential |
| 54 | (KaehlerDifferential.map R S A B (KaehlerDifferential.D R A a)) = |
| 55 | e.liftKaehlerDifferential |
| 56 | (KaehlerDifferential.map R S A B (KaehlerDifferential.D R A a)) |
| 57 | rw [KaehlerDifferential.map_D, Derivation.liftKaehlerDifferential_comp_D, |
| 58 | Derivation.liftKaehlerDifferential_comp_D] |
| 59 | exact h a |
| 60 | have hS : d.liftKaehlerDifferential.restrictScalars S = e.liftKaehlerDifferential.restrictScalars S := |
| 61 | (KaehlerDifferential.isBaseChange R S A B).algHom_ext' _ _ |
| 62 | (congrArg (fun f : KaehlerDifferential R A →ₗ[A] C => f.restrictScalars R) hA) |
| 63 | apply Derivation.ext |
| 64 | intro b |
| 65 | have hb := LinearMap.congr_fun hS (KaehlerDifferential.D S B b) |
| 66 | change d.liftKaehlerDifferential (KaehlerDifferential.D S B b) = |
| 67 | e.liftKaehlerDifferential (KaehlerDifferential.D S B b) at hb |
| 68 | simpa only [Derivation.liftKaehlerDifferential_comp_D] using hb |
| 69 | |
| 70 | def baseChangedCoefficientDerivationLinear : Derivation R A C →ₗ[C] Derivation S B C where |
| 71 | toFun := baseChangedCoefficientDerivation R S A B C |
| 72 | map_add' d e := by |
| 73 | apply baseChangedCoefficientDerivation_ext R S A B C |
| 74 | intro a |
| 75 | simp only [baseChangedCoefficientDerivation_algebraMap, Derivation.add_apply] |
| 76 | map_smul' c d := by |
| 77 | apply baseChangedCoefficientDerivation_ext R S A B C |
| 78 | intro a |
| 79 | simp only [baseChangedCoefficientDerivation_algebraMap, Derivation.smul_apply, RingHom.id_apply] |
| 80 | |
| 81 | def baseChangedCoefficientDerivationRestrict : Derivation S B C →ₗ[C] Derivation R A C where |
| 82 | toFun d := (d.restrictScalars R).compAlgebraMap A |
| 83 | map_add' _ _ := rfl |
| 84 | map_smul' _ _ := rfl |
| 85 | |
| 86 | def baseChangedCoefficientDerivationEquiv : Derivation R A C ≃ₗ[C] Derivation S B C where |
| 87 | __ := baseChangedCoefficientDerivationLinear R S A B C |
| 88 | invFun := baseChangedCoefficientDerivationRestrict R S A B C |
| 89 | left_inv d := by |
| 90 | apply Derivation.ext |
| 91 | intro a |
| 92 | exact baseChangedCoefficientDerivation_algebraMap R S A B C d a |
| 93 | right_inv d := by |
| 94 | apply baseChangedCoefficientDerivation_ext R S A B C |
| 95 | intro a |
| 96 | exact baseChangedCoefficientDerivation_algebraMap R S A B C |
| 97 | (baseChangedCoefficientDerivationRestrict R S A B C d) a |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.BaseChangedCoefficientDerivations |