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.Tensor.ProductRightAlgebra |
| 2 | import Mathlib.RingTheory.Flat.Stability |
| 3 | |
| 4 | /-! # Product Right Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightBaseChange.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Base changing the right factor of a tensor algebra preserves |
| 11 | flatness. The proof exhibits the actual tensor cancellation as an |
| 12 | equivalence over the source tensor algebra. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightAlgebra.Constructions |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u |
| 22 | variable (k R P S : Type u) [CommRing k] [CommRing R] [CommRing P] [CommRing S] |
| 23 | [Algebra k R] [Algebra k P] [Algebra k S] [Algebra P S] [IsScalarTower k P S] |
| 24 | |
| 25 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 26 | |
| 27 | def baseChangeMap : R ⊗[k] P →ₐ[R] R ⊗[k] S := |
| 28 | Algebra.TensorProduct.map (AlgHom.id R R) (IsScalarTower.toAlgHom k P S) |
| 29 | |
| 30 | def cancel : (R ⊗[k] P) ⊗[P] S ≃ₐ[k] R ⊗[k] S := |
| 31 | ((((Algebra.TensorProduct.congr (ProductRightAlgebra.Constructions.rightSwap k R P) (AlgEquiv.refl : S ≃ₐ[P] S)).trans |
| 32 | (Algebra.TensorProduct.comm P (P ⊗[k] R) S)).trans |
| 33 | (Algebra.TensorProduct.cancelBaseChange k P P S R)).restrictScalars k).trans |
| 34 | (Algebra.TensorProduct.comm k S R) |
| 35 | |
| 36 | theorem cancel_tmul (r : R) (p : P) (s : S) : |
| 37 | cancel k R P S ((r ⊗ₜ[k] p) ⊗ₜ[P] s) = r ⊗ₜ[k] (p • s) := by |
| 38 | simp only [cancel, AlgEquiv.trans_apply, AlgEquiv.restrictScalars_apply, |
| 39 | Algebra.TensorProduct.congr_apply, Algebra.TensorProduct.map_tmul, AlgEquiv.coe_toAlgHom, ProductRightAlgebra.Constructions.rightSwap_tmul, |
| 40 | AlgEquiv.coe_refl, id_eq, Algebra.TensorProduct.comm_tmul, Algebra.TensorProduct.cancelBaseChange_tmul] |
| 41 | |
| 42 | theorem cancel_algebraMap (b : R ⊗[k] P) : |
| 43 | cancel k R P S (algebraMap (R ⊗[k] P) ((R ⊗[k] P) ⊗[P] S) b) = baseChangeMap k R P S b := by |
| 44 | induction b using TensorProduct.inductionOn with |
| 45 | | add x y hx hy => simp only [map_add, hx, hy] |
| 46 | | tmul r p => |
| 47 | change cancel k R P S ((r ⊗ₜ[k] p) ⊗ₜ[P] 1) = r ⊗ₜ[k] algebraMap P S p |
| 48 | rw [cancel_tmul, Algebra.smul_def, mul_one] |
| 49 | |
| 50 | local instance baseChangeAlgebra : Algebra (R ⊗[k] P) (R ⊗[k] S) := |
| 51 | (baseChangeMap k R P S).toRingHom.toAlgebra |
| 52 | |
| 53 | def baseChangeEquiv : (R ⊗[k] P) ⊗[P] S ≃ₐ[R ⊗[k] P] R ⊗[k] S where |
| 54 | __ := (cancel k R P S).toRingEquiv |
| 55 | commutes' := cancel_algebraMap k R P S |
| 56 | |
| 57 | theorem flat [Module.Flat P S] : Module.Flat (R ⊗[k] P) (R ⊗[k] S) := |
| 58 | Module.Flat.of_linearEquiv (baseChangeEquiv k R P S).symm.toLinearEquiv |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.ProductRightBaseChange.Constructions |