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.AbelianModuli.ReferenceFamily.PointFiberTensorRestriction |
| 2 | import Mathlib.RingTheory.RingHom.Etale |
| 3 | |
| 4 | /-! # Point Fiber Etale Map -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PointFiberEtaleMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A specified etale coordinate map gives a linear map of |
| 13 | coefficient derivations in the fixed fibers. It is determined uniquely |
| 14 | by the literal tensor restriction on the original regular functions. -/ |
| 15 | |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | variable (k R A D : Type) [Field k] [CommRing R] [CommRing A] [CommRing D] |
| 19 | [Algebra k R] [Algebra k A] [Algebra k D] [Algebra R k] [Algebra R A] [Algebra R D] |
| 20 | [IsScalarTower k R k] [IsScalarTower k R A] [IsScalarTower k R D] |
| 21 | |
| 22 | local instance pointFiberEtaleMap_sourceRing : CommRing (k ⊗[R] A) := |
| 23 | Algebra.TensorProduct.instCommRing (R := R) (A := k) (B := A) |
| 24 | |
| 25 | local instance pointFiberEtaleMap_targetRing : CommRing (k ⊗[R] D) := |
| 26 | Algebra.TensorProduct.instCommRing (R := R) (A := k) (B := D) |
| 27 | |
| 28 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 29 | |
| 30 | def pointFiberEtaleDerivationMap (q : A →ₐ[R] D) (hq : q.toRingHom.Etale) : |
| 31 | Derivation k A (k ⊗[R] A) →ₗ[k] Derivation k D (k ⊗[R] D) := by |
| 32 | let : Algebra A D := q.toRingHom.toAlgebra |
| 33 | let : IsScalarTower R A D := IsScalarTower.of_algebraMap_eq (fun r => (q.commutes r).symm) |
| 34 | let : IsScalarTower k A D := |
| 35 | IsScalarTower.of_algebraMap_eq (fun c => ((q.restrictScalars k).commutes c).symm) |
| 36 | have : Algebra.Etale A D := hq |
| 37 | exact PointFiberTensorRestriction.pointFiberTensorDerivationRestriction k R A D |
| 38 | |
| 39 | theorem pointFiberEtaleDerivationMap_apply (q : A →ₐ[R] D) (hq : q.toRingHom.Etale) |
| 40 | (d : Derivation k A (k ⊗[R] A)) (a : A) : |
| 41 | pointFiberEtaleDerivationMap k R A D q hq d (q a) = |
| 42 | Algebra.TensorProduct.map (AlgHom.id k k) q (d a) := by |
| 43 | let : Algebra A D := q.toRingHom.toAlgebra |
| 44 | let : IsScalarTower R A D := IsScalarTower.of_algebraMap_eq (fun r => (q.commutes r).symm) |
| 45 | let : IsScalarTower k A D := |
| 46 | IsScalarTower.of_algebraMap_eq (fun c => ((q.restrictScalars k).commutes c).symm) |
| 47 | have : Algebra.Etale A D := hq |
| 48 | exact PointFiberTensorRestriction.pointFiberTensorDerivationRestriction_algebraMap k R A D d a |
| 49 | |
| 50 | theorem pointFiberEtaleDerivationMap_unique (q : A →ₐ[R] D) (hq : q.toRingHom.Etale) |
| 51 | (d : Derivation k A (k ⊗[R] A)) (e : Derivation k D (k ⊗[R] D)) |
| 52 | (h : ∀ a, e (q a) = Algebra.TensorProduct.map (AlgHom.id k k) q (d a)) : |
| 53 | e = pointFiberEtaleDerivationMap k R A D q hq d := by |
| 54 | let : Algebra A D := q.toRingHom.toAlgebra |
| 55 | let : IsScalarTower R A D := IsScalarTower.of_algebraMap_eq (fun r => (q.commutes r).symm) |
| 56 | let : IsScalarTower k A D := |
| 57 | IsScalarTower.of_algebraMap_eq (fun c => ((q.restrictScalars k).commutes c).symm) |
| 58 | have : Algebra.Etale A D := hq |
| 59 | exact PointFiberTensorRestriction.pointFiberTensorDerivationRestriction_unique k R A D d e h |
| 60 | |
| 61 | end |
| 62 | |
| 63 | /-! Fixed-fiber coefficient derivation maps respect equal maps, |
| 64 | identity maps, and successive etale restrictions. -/ |
| 65 | |
| 66 | open scoped TensorProduct |
| 67 | |
| 68 | variable (k R A D : Type) [Field k] [CommRing R] [CommRing A] [CommRing D] |
| 69 | [Algebra k R] [Algebra k A] [Algebra k D] [Algebra R k] [Algebra R A] [Algebra R D] |
| 70 | [IsScalarTower k R k] [IsScalarTower k R A] [IsScalarTower k R D] |
| 71 | |
| 72 | theorem pointFiberEtaleDerivationMap_congr (q r : A →ₐ[R] D) |
| 73 | (hq : q.toRingHom.Etale) (hr : r.toRingHom.Etale) (h : q = r) : |
| 74 | pointFiberEtaleDerivationMap k R A D q hq = pointFiberEtaleDerivationMap k R A D r hr := by |
| 75 | subst r |
| 76 | rfl |
| 77 | |
| 78 | omit [Algebra k D] [Algebra R D] [IsScalarTower k R D] in |
| 79 | theorem pointFiberEtaleDerivationMap_id (h : (AlgHom.id R A).toRingHom.Etale) : |
| 80 | pointFiberEtaleDerivationMap k R A A (AlgHom.id R A) h = LinearMap.id := by |
| 81 | apply LinearMap.ext |
| 82 | intro d |
| 83 | apply Eq.symm |
| 84 | apply pointFiberEtaleDerivationMap_unique k R A A (AlgHom.id R A) h |
| 85 | intro a |
| 86 | rw [Algebra.TensorProduct.map_id] |
| 87 | rfl |
| 88 | |
| 89 | variable (F : Type) [CommRing F] [Algebra k F] [Algebra R F] [IsScalarTower k R F] |
| 90 | |
| 91 | theorem pointFiberEtaleDerivationMap_comp (q : A →ₐ[R] D) (r : D →ₐ[R] F) |
| 92 | (hq : q.toRingHom.Etale) (hr : r.toRingHom.Etale) (hrq : (r.comp q).toRingHom.Etale) : |
| 93 | pointFiberEtaleDerivationMap k R A F (r.comp q) hrq = |
| 94 | (pointFiberEtaleDerivationMap k R D F r hr).comp (pointFiberEtaleDerivationMap k R A D q hq) := by |
| 95 | apply LinearMap.ext |
| 96 | intro d |
| 97 | apply Eq.symm |
| 98 | apply pointFiberEtaleDerivationMap_unique k R A F (r.comp q) hrq |
| 99 | intro a |
| 100 | change pointFiberEtaleDerivationMap k R D F r hr |
| 101 | (pointFiberEtaleDerivationMap k R A D q hq d) (r (q a)) = _ |
| 102 | rw [pointFiberEtaleDerivationMap_apply, pointFiberEtaleDerivationMap_apply, |
| 103 | Algebra.TensorProduct.map_id_comp] |
| 104 | rfl |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PointFiberEtaleMap |