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.CycleClass.Thom.PolynomialShiftedRegularSequence |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightBaseChange |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal |
| 4 | import Mathlib.RingTheory.TensorProduct.MvPolynomial |
| 5 | |
| 6 | /-! # Polynomial Tensor Regular Sequence -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorRegularSequence.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! When an algebra is flat over polynomial coordinates, the |
| 13 | differences between the left and right coordinate values form a |
| 14 | regular sequence in its tensor square. -/ |
| 15 | |
| 16 | open scoped TensorProduct |
| 17 | open RingTheory.Sequence _root_.MvPolynomial |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightBaseChange.Constructions |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | variable (k R : Type u) [CommRing k] [CommRing R] [Algebra k R] {σ : Type} |
| 26 | [Algebra (MvPolynomial σ k) R] [IsScalarTower k (MvPolynomial σ k) R] |
| 27 | |
| 28 | def sourceDifference (i : σ) : R ⊗[k] MvPolynomial σ k := |
| 29 | algebraMap (MvPolynomial σ k) R (X i) ⊗ₜ[k] 1 - 1 ⊗ₜ[k] X i |
| 30 | |
| 31 | omit [IsScalarTower k (MvPolynomial σ k) R] in |
| 32 | theorem source_weaklyRegular (ls : List σ) (hl : ls.Nodup) : |
| 33 | IsWeaklyRegular (R ⊗[k] MvPolynomial σ k) (ls.map (sourceDifference k R)) := by |
| 34 | let c : σ → R := fun i => algebraMap (MvPolynomial σ k) R (X i) |
| 35 | let e := (MvPolynomial.algebraTensorAlgEquiv k R (σ := σ)).symm |
| 36 | apply (e.toAddEquiv.isWeaklyRegular_congr |
| 37 | (as := ls.map (fun i => C (c i) - X i)) (bs := ls.map (sourceDifference k R)) ?_).mp |
| 38 | (PolynomialShiftedRegularSequence.Constructions.reflected_weaklyRegular R c ls hl) |
| 39 | apply List.forall₂_map_left_iff.mpr |
| 40 | apply List.forall₂_map_right_iff.mpr |
| 41 | apply List.forall₂_same.mpr |
| 42 | intro i _ x |
| 43 | change e ((C (c i) - X i) * x) = sourceDifference k R i * e x |
| 44 | rw [map_mul, map_sub] |
| 45 | congr 1 |
| 46 | change e (algebraMap R (MvPolynomial σ R) (c i)) - e (X i) = _ |
| 47 | rw [AlgEquiv.commutes] |
| 48 | exact congrArg₂ (· - ·) rfl (MvPolynomial.algebraTensorAlgEquiv_symm_X k R i) |
| 49 | |
| 50 | attribute [local instance] Tensor.ProductRightBaseChange.Constructions.baseChangeAlgebra |
| 51 | |
| 52 | theorem difference_weaklyRegular [Module.Flat (MvPolynomial σ k) R] |
| 53 | (ls : List σ) (hl : ls.Nodup) : |
| 54 | IsWeaklyRegular (R ⊗[k] R) |
| 55 | (ls.map (fun i => Tensor.BalanceIdeal.Constructions.difference k (MvPolynomial σ k) R (X i))) := by |
| 56 | let : Module.Flat (R ⊗[k] MvPolynomial σ k) (R ⊗[k] R) := |
| 57 | Tensor.ProductRightBaseChange.Constructions.flat k R (MvPolynomial σ k) R |
| 58 | have h := (source_weaklyRegular k R ls hl).of_flat (S := R ⊗[k] R) |
| 59 | have hm : ∀ i : σ, algebraMap (R ⊗[k] MvPolynomial σ k) (R ⊗[k] R) |
| 60 | (sourceDifference k R i) = Tensor.BalanceIdeal.Constructions.difference k (MvPolynomial σ k) R (X i) := by |
| 61 | intro i |
| 62 | change Tensor.ProductRightBaseChange.Constructions.baseChangeMap k R (MvPolynomial σ k) R (sourceDifference k R i) = _ |
| 63 | simp only [sourceDifference, Tensor.ProductRightBaseChange.Constructions.baseChangeMap, map_sub, Algebra.TensorProduct.map_tmul, |
| 64 | AlgHom.id_apply, map_one, IsScalarTower.toAlgHom_apply, Tensor.BalanceIdeal.Constructions.difference] |
| 65 | simpa only [List.map_map, Function.comp_def, hm] using h |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialTensorRegularSequence.Constructions |