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.AbelianScheme.TorsionQuotient.SquareZero |
| 2 | import Mathlib.RingTheory.Derivation.ToSquareZero |
| 3 | import Mathlib.RingTheory.Kaehler.Basic |
| 4 | |
| 5 | /-! # Lift Derivations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Relative square-zero lifts embed linearly in the actual module of |
| 14 | relative derivations into their square-zero ideal. -/ |
| 15 | |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | variable (R B C : Type) [CommRing R] [CommRing B] [CommRing C] |
| 19 | [Algebra R B] [Algebra B C] [Algebra R C] [IsScalarTower R B C] |
| 20 | (J : Ideal C) (hJ : J ^ 2 = ⊥) |
| 21 | |
| 22 | def module : Submodule C (AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift J hJ (algebraMap B C)) where |
| 23 | carrier := {f | ∀ r : R, f.hom (algebraMap R B r) = algebraMap R C r} |
| 24 | zero_mem' r := (IsScalarTower.algebraMap_apply R B C r).symm |
| 25 | add_mem' hf hg r := by |
| 26 | rw [AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.add_hom, hf, hg, ← IsScalarTower.algebraMap_apply] |
| 27 | exact add_sub_cancel_right _ _ |
| 28 | smul_mem' c f hf r := by |
| 29 | rw [AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.smul_hom, hf, ← IsScalarTower.algebraMap_apply, |
| 30 | sub_self, mul_zero, add_zero] |
| 31 | |
| 32 | def algebraHom (v : module R B C J hJ) : B →ₐ[R] C := |
| 33 | { v.val.hom with commutes' := v.property } |
| 34 | |
| 35 | theorem algebraHom_reduction (v : module R B C J hJ) : |
| 36 | (Ideal.Quotient.mkₐ R J).comp (algebraHom R B C J hJ v) = |
| 37 | IsScalarTower.toAlgHom R B (C ⧸ J) := by |
| 38 | apply AlgHom.ext |
| 39 | intro b |
| 40 | exact Ideal.Quotient.eq.mpr (v.val.congruent b) |
| 41 | |
| 42 | def derivation : module R B C J hJ →ₗ[C] Derivation R B J where |
| 43 | toFun v := derivationToSquareZeroOfLift J hJ (algebraHom R B C J hJ v) |
| 44 | (algebraHom_reduction R B C J hJ v) |
| 45 | map_add' v w := by |
| 46 | apply Derivation.ext |
| 47 | intro b |
| 48 | apply Subtype.ext |
| 49 | change (v.val + w.val).hom b - algebraMap B C b = |
| 50 | (v.val.hom b - algebraMap B C b) + (w.val.hom b - algebraMap B C b) |
| 51 | rw [AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.add_hom] |
| 52 | ring |
| 53 | map_smul' c v := by |
| 54 | apply Derivation.ext |
| 55 | intro b |
| 56 | apply Subtype.ext |
| 57 | change (c • v.val).hom b - algebraMap B C b = c * (v.val.hom b - algebraMap B C b) |
| 58 | rw [AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.smul_hom, add_sub_cancel_left] |
| 59 | |
| 60 | theorem derivation_injective : Function.Injective (derivation R B C J hJ) := by |
| 61 | intro v w h |
| 62 | apply Subtype.ext |
| 63 | apply AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.ext |
| 64 | apply RingHom.ext |
| 65 | intro b |
| 66 | have hb := congrArg (fun d : Derivation R B J => (d b : C)) h |
| 67 | exact sub_left_injective hb |
| 68 | |
| 69 | end |
| 70 | |
| 71 | /-! Every relative derivation integrates uniquely to its actual |
| 72 | square-zero algebra lift. This completes the linear cotangent comparison. -/ |
| 73 | |
| 74 | variable (R B C : Type) [CommRing R] [CommRing B] [CommRing C] |
| 75 | [Algebra R B] [Algebra B C] [Algebra R C] [IsScalarTower R B C] |
| 76 | (J : Ideal C) (hJ : J ^ 2 = ⊥) |
| 77 | |
| 78 | theorem derivation_surjective : Function.Surjective (derivation R B C J hJ) := by |
| 79 | intro d |
| 80 | let f := liftOfDerivationToSquareZero J hJ d |
| 81 | have hf (b : B) : f b - algebraMap B C b ∈ J := by |
| 82 | change liftOfDerivationToSquareZero J hJ d b - algebraMap B C b ∈ J |
| 83 | rw [liftOfDerivationToSquareZero_apply, add_sub_cancel_right] |
| 84 | exact (d b).property |
| 85 | let v : module R B C J hJ := ⟨⟨f.toRingHom, hf⟩, fun r => f.commutes r⟩ |
| 86 | refine ⟨v, ?_⟩ |
| 87 | apply Derivation.ext |
| 88 | intro b |
| 89 | apply Subtype.ext |
| 90 | change f b - algebraMap B C b = (d b : C) |
| 91 | rw [liftOfDerivationToSquareZero_apply, add_sub_cancel_right] |
| 92 | |
| 93 | def derivationEquiv : module R B C J hJ ≃ₗ[C] Derivation R B J := |
| 94 | LinearEquiv.ofBijective (derivation R B C J hJ) |
| 95 | ⟨derivation_injective R B C J hJ, derivation_surjective R B C J hJ⟩ |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.LiftDerivations.RelativeLifts |