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.Dual.NumberCoefficients |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.LiftDerivations |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.ConormalDerivations |
| 4 | import Mathlib.Algebra.DualNumber |
| 5 | |
| 6 | /-! # Algebra Lift Coordinates -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.AlgebraLiftCoordinates.DualCoefficientLifts |
| 13 | |
| 14 | /-! Actual dual-number algebra lifts over an arbitrary coefficient ring |
| 15 | are the linear dual of the smooth section's conormal. These constructions |
| 16 | retain nilpotent coefficients and require no field hypothesis. -/ |
| 17 | |
| 18 | variable (C : Type) [CommRing C] |
| 19 | |
| 20 | def reduction : DualNumber C →+* C := (TrivSqZeroExt.fstHom C C C).toRingHom |
| 21 | |
| 22 | def ideal : Ideal (DualNumber C) := RingHom.ker (reduction C) |
| 23 | |
| 24 | theorem ideal_square : ideal C ^ 2 = ⊥ := by |
| 25 | apply le_antisymm |
| 26 | · rw [pow_two] |
| 27 | apply Ideal.mul_le.mpr |
| 28 | intro x hx y hy |
| 29 | change x * y = 0 |
| 30 | change x.fst = 0 at hx |
| 31 | change y.fst = 0 at hy |
| 32 | apply TrivSqZeroExt.ext |
| 33 | · change x.fst * y.fst = 0 |
| 34 | rw [hx, zero_mul] |
| 35 | · rw [DualNumber.snd_mul, hx, hy, zero_mul, mul_zero, add_zero] |
| 36 | rfl |
| 37 | · exact bot_le |
| 38 | |
| 39 | def idealEquiv : ideal C ≃ₗ[C] C where |
| 40 | toFun v := v.val.snd |
| 41 | invFun c := ⟨TrivSqZeroExt.inr c, by change (TrivSqZeroExt.inr c : DualNumber C).fst = 0; rfl⟩ |
| 42 | left_inv v := by |
| 43 | apply Subtype.ext |
| 44 | apply TrivSqZeroExt.ext |
| 45 | · exact v.property.symm |
| 46 | · rfl |
| 47 | right_inv _ := rfl |
| 48 | map_add' _ _ := rfl |
| 49 | map_smul' _ _ := rfl |
| 50 | |
| 51 | variable (R B : Type) [CommRing R] [CommRing B] |
| 52 | [Algebra R B] [Algebra R C] [Algebra B C] [IsScalarTower R B C] |
| 53 | |
| 54 | def derivationIdealEquiv : Derivation R B (ideal C) ≃ₗ[C] Derivation R B C where |
| 55 | toEquiv := ((idealEquiv C).restrictScalars B).compDer.toEquiv |
| 56 | map_add' := ((idealEquiv C).restrictScalars B).compDer.map_add |
| 57 | map_smul' c d := by |
| 58 | apply Derivation.ext |
| 59 | intro b |
| 60 | exact (idealEquiv C).map_smul c (d b) |
| 61 | |
| 62 | def Space := PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts.module R B (DualNumber C) (ideal C) (ideal_square C) |
| 63 | |
| 64 | instance : AddCommGroup (Space C R B) := |
| 65 | inferInstanceAs (AddCommGroup (PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts.module R B (DualNumber C) (ideal C) (ideal_square C))) |
| 66 | |
| 67 | instance : Module (DualNumber C) (Space C R B) := |
| 68 | inferInstanceAs (Module (DualNumber C) |
| 69 | (PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts.module R B (DualNumber C) (ideal C) (ideal_square C))) |
| 70 | |
| 71 | instance : Module C (Space C R B) := Module.compHom (Space C R B) (algebraMap C (DualNumber C)) |
| 72 | |
| 73 | instance : IsScalarTower C (DualNumber C) (Space C R B) := by |
| 74 | constructor |
| 75 | intro a b v |
| 76 | change (a • b) • v = (algebraMap C (DualNumber C) a) • (b • v) |
| 77 | have h : (a • b : DualNumber C) = algebraMap C (DualNumber C) a * b := by |
| 78 | apply TrivSqZeroExt.ext <;> |
| 79 | simp [TrivSqZeroExt.algebraMap_eq_inl] |
| 80 | rw [h, mul_smul] |
| 81 | |
| 82 | def derivationEquiv : Space C R B ≃ₗ[C] Derivation R B C := by |
| 83 | let e : Space C R B ≃ₗ[DualNumber C] Derivation R B (ideal C) := |
| 84 | PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts.derivationEquiv R B (DualNumber C) (ideal C) (ideal_square C) |
| 85 | exact (e.restrictScalars C).trans (derivationIdealEquiv C R B) |
| 86 | |
| 87 | theorem derivationEquiv_apply (v : Space C R B) (b : B) : |
| 88 | derivationEquiv C R B v b = (v.val.hom b).snd := by |
| 89 | change (v.val.hom b - algebraMap B (DualNumber C) b).snd = (v.val.hom b).snd |
| 90 | rw [TrivSqZeroExt.snd_sub, IsScalarTower.algebraMap_apply B C (DualNumber C), |
| 91 | TrivSqZeroExt.algebraMap_eq_inl, TrivSqZeroExt.snd_inl, sub_zero] |
| 92 | |
| 93 | variable [Algebra B R] [IsScalarTower R B R] [IsScalarTower B R C] |
| 94 | [Algebra.FormallySmooth R B] |
| 95 | |
| 96 | def conormalEquiv : Space C R B ≃ₗ[C] |
| 97 | ((RingHom.ker (algebraMap B R)).Cotangent →ₗ[R] C) := |
| 98 | (derivationEquiv C R B).trans (PELModuli.IntegralModel.Section.ConormalDerivations.SectionConormal.derivationConormalEquiv R B C) |
| 99 | |
| 100 | theorem conormalEquiv_toCotangent (v : Space C R B) (b : RingHom.ker (algebraMap B R)) : |
| 101 | conormalEquiv C R B v (Ideal.toCotangent _ b) = (v.val.hom b).snd := by |
| 102 | change PELModuli.IntegralModel.Section.ConormalDerivations.SectionConormal.derivationConormalEquiv R B C (derivationEquiv C R B v) |
| 103 | (Ideal.toCotangent _ b) = _ |
| 104 | rw [PELModuli.IntegralModel.Section.ConormalDerivations.SectionConormal.derivationConormalEquiv_toCotangent, derivationEquiv_apply] |
| 105 | |
| 106 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.AlgebraLiftCoordinates.DualCoefficientLifts |
| 107 | |
| 108 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.AlgebraLiftCoordinates |
| 109 | |
| 110 | /-! Algebra maps to actual dual numbers with a prescribed reduction |
| 111 | are exactly the constructed square-zero lifts, over arbitrary coefficient |
| 112 | algebras. This retains the original map rather than just its class. -/ |
| 113 | |
| 114 | variable (k B C : Type) [CommRing k] [CommRing B] [CommRing C] |
| 115 | [Algebra k B] [Algebra k C] [Algebra B C] [IsScalarTower k B C] |
| 116 | |
| 117 | def dualAlgebraLiftEquiv : |
| 118 | {f : B →ₐ[k] DualNumber C // (TrivSqZeroExt.fstHom k C C).comp f = IsScalarTower.toAlgHom k B C} ≃ |
| 119 | DualCoefficientLifts.Space C k B where |
| 120 | toFun f := ⟨⟨f.val.toRingHom, fun b => by |
| 121 | change (f.val b - algebraMap B (DualNumber C) b).fst = 0 |
| 122 | rw [TrivSqZeroExt.fst_sub, IsScalarTower.algebraMap_apply B C (DualNumber C), |
| 123 | TrivSqZeroExt.algebraMap_eq_inl, TrivSqZeroExt.fst_inl] |
| 124 | exact sub_eq_zero.mpr (AlgHom.congr_fun f.property b)⟩, f.val.commutes⟩ |
| 125 | invFun v := ⟨{ v.val.hom with commutes' := v.property }, by |
| 126 | apply AlgHom.ext |
| 127 | intro b |
| 128 | have h := v.val.congruent b |
| 129 | change (v.val.hom b - algebraMap B (DualNumber C) b).fst = 0 at h |
| 130 | rw [TrivSqZeroExt.fst_sub, IsScalarTower.algebraMap_apply B C (DualNumber C), |
| 131 | TrivSqZeroExt.algebraMap_eq_inl, TrivSqZeroExt.fst_inl] at h |
| 132 | exact sub_eq_zero.mp h⟩ |
| 133 | left_inv f := by |
| 134 | apply Subtype.ext |
| 135 | rfl |
| 136 | right_inv v := by |
| 137 | apply Subtype.ext |
| 138 | apply AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.ext |
| 139 | rfl |
| 140 | |
| 141 | theorem dualAlgebraLiftEquiv_hom |
| 142 | (f : {f : B →ₐ[k] DualNumber C // (TrivSqZeroExt.fstHom k C C).comp f = IsScalarTower.toAlgHom k B C}) |
| 143 | (b : B) : (dualAlgebraLiftEquiv k B C f).val.hom b = f.val b := rfl |
| 144 | |
| 145 | def dualAlgebraLiftDerivationEquiv : |
| 146 | {f : B →ₐ[k] DualNumber C // (TrivSqZeroExt.fstHom k C C).comp f = IsScalarTower.toAlgHom k B C} ≃ |
| 147 | Derivation k B C := |
| 148 | (dualAlgebraLiftEquiv k B C).trans (DualCoefficientLifts.derivationEquiv C k B).toEquiv |
| 149 | |
| 150 | theorem dualAlgebraLiftDerivationEquiv_apply |
| 151 | (f : {f : B →ₐ[k] DualNumber C // (TrivSqZeroExt.fstHom k C C).comp f = IsScalarTower.toAlgHom k B C}) |
| 152 | (b : B) : dualAlgebraLiftDerivationEquiv k B C f b = (f.val b).snd := |
| 153 | DualCoefficientLifts.derivationEquiv_apply C k B (dualAlgebraLiftEquiv k B C f) b |
| 154 | |
| 155 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.AlgebraLiftCoordinates |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI |