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 Mathlib.RingTheory.Ideal.Maps |
| 3 | |
| 4 | /-! # Tensor Reduction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.TensorReduction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The reduction of the actual dual-number tensor product is surjective, |
| 11 | and its kernel is exactly the extended square-zero ideal of the base. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable (k A : Type*) [CommRing k] [CommRing A] [Algebra k A] |
| 16 | |
| 17 | def dualScalarReductionIdeal : Ideal (DualNumber k) := |
| 18 | RingHom.ker (TrivSqZeroExt.fstHom k k k).toRingHom |
| 19 | |
| 20 | theorem dualScalarReductionIdeal_square : dualScalarReductionIdeal k * dualScalarReductionIdeal k = ⊥ := by |
| 21 | apply le_antisymm |
| 22 | · apply Ideal.mul_le.mpr |
| 23 | intro x hx y hy |
| 24 | change x * y = 0 |
| 25 | change x.fst = 0 at hx |
| 26 | change y.fst = 0 at hy |
| 27 | apply TrivSqZeroExt.ext |
| 28 | · change x.fst * y.fst = 0 |
| 29 | rw [hx, zero_mul] |
| 30 | · rw [DualNumber.snd_mul, hx, hy, zero_mul, mul_zero, add_zero] |
| 31 | rfl |
| 32 | · exact bot_le |
| 33 | |
| 34 | def dualTensorReduction : (DualNumber k ⊗[k] A) →ₐ[k] A := |
| 35 | (TrivSqZeroExt.fstHom k A A).comp (NumberCoefficients.dualTensorCoefficients k A) |
| 36 | |
| 37 | theorem dualTensorReduction_tmul (c : DualNumber k) (a : A) : |
| 38 | dualTensorReduction k A (c ⊗ₜ[k] a) = c.fst • a := by |
| 39 | change (NumberCoefficients.dualTensorCoefficients k A (c ⊗ₜ[k] a)).fst = _ |
| 40 | rw [NumberCoefficients.dualTensorCoefficients_tmul] |
| 41 | rfl |
| 42 | |
| 43 | theorem dualTensorReduction_surjective : Function.Surjective (dualTensorReduction k A) := by |
| 44 | intro a |
| 45 | refine ⟨(1 : DualNumber k) ⊗ₜ[k] a, ?_⟩ |
| 46 | rw [dualTensorReduction_tmul] |
| 47 | exact one_smul k a |
| 48 | |
| 49 | def dualTensorReductionIdeal : Ideal (DualNumber k ⊗[k] A) := |
| 50 | (dualScalarReductionIdeal k).map |
| 51 | (Algebra.TensorProduct.includeLeft : DualNumber k →ₐ[k] DualNumber k ⊗[k] A).toRingHom |
| 52 | |
| 53 | theorem dualTensorReduction_ker : |
| 54 | RingHom.ker (dualTensorReduction k A) = dualTensorReductionIdeal k A := by |
| 55 | apply le_antisymm |
| 56 | · intro u hu |
| 57 | change (NumberCoefficients.dualTensorCoefficients k A u).fst = 0 at hu |
| 58 | have hrepr := NumberCoefficients.dualTensorCoefficients_leftInverse (k := k) (R := A) u |
| 59 | rw [NumberCoefficients.dualTensorFromCoefficients_apply, hu, TensorProduct.tmul_zero, zero_add] at hrepr |
| 60 | rw [← hrepr] |
| 61 | have heps : (DualNumber.eps : DualNumber k) ∈ dualScalarReductionIdeal k := by |
| 62 | change (DualNumber.eps : DualNumber k).fst = 0 |
| 63 | rfl |
| 64 | have hm := (dualTensorReductionIdeal k A).mul_mem_left |
| 65 | ((1 : DualNumber k) ⊗ₜ[k] (NumberCoefficients.dualTensorCoefficients k A u).snd) |
| 66 | (Ideal.mem_map_of_mem |
| 67 | (Algebra.TensorProduct.includeLeft : DualNumber k →ₐ[k] DualNumber k ⊗[k] A).toRingHom heps) |
| 68 | change ((1 : DualNumber k) ⊗ₜ[k] (NumberCoefficients.dualTensorCoefficients k A u).snd) * |
| 69 | ((DualNumber.eps : DualNumber k) ⊗ₜ[k] (1 : A)) ∈ _ at hm |
| 70 | simpa only [Algebra.TensorProduct.tmul_mul_tmul, one_mul, mul_one] using hm |
| 71 | · unfold dualTensorReductionIdeal |
| 72 | apply (Ideal.map_le_iff_le_comap).mpr |
| 73 | intro c hc |
| 74 | change dualTensorReduction k A (c ⊗ₜ[k] (1 : A)) = 0 |
| 75 | change c.fst = 0 at hc |
| 76 | rw [dualTensorReduction_tmul, hc, zero_smul] |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Dual.TensorReduction |