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.HilbertConstruction.Coefficient.BaseChangeComparison |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ImmersionTransport |
| 3 | |
| 4 | /-! # Descended Tensor Map Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DescendedTensorMapComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Coefficient-compatible descended maps recover the original map after iterated base change. -/ |
| 11 | |
| 12 | open TensorProduct _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {C R A B : Type u} [CommRing C] [CommRing R] [CommRing A] [CommRing B] |
| 17 | variable [Algebra C R] [Algebra C A] [Algebra C B] |
| 18 | |
| 19 | theorem coefficientBaseChangeIso_tmul (D : Subalgebra C R) (r : R) (x : D ⊗[C] A) : |
| 20 | Coefficient.BaseChangeComparison.coefficientBaseChangeIso D (r ⊗ₜ[D] x) = r • Coefficient.TensorMaps.coefficientTensorMap D x := by |
| 21 | have heq : r ⊗ₜ[D] x = r • ((1 : R) ⊗ₜ[D] x) := by |
| 22 | rw [smul_tmul', smul_eq_mul, mul_one] |
| 23 | calc |
| 24 | Coefficient.BaseChangeComparison.coefficientBaseChangeIso D (r ⊗ₜ[D] x) = |
| 25 | Coefficient.BaseChangeComparison.coefficientBaseChangeIso D (r • ((1 : R) ⊗ₜ[D] x)) := congrArg _ heq |
| 26 | _ = r • Coefficient.BaseChangeComparison.coefficientBaseChangeIso D ((1 : R) ⊗ₜ[D] x) := |
| 27 | (Coefficient.BaseChangeComparison.coefficientBaseChangeIso D).toLinearMap.map_smul r _ |
| 28 | _ = r • Coefficient.TensorMaps.coefficientTensorMap D x := congrArg (r • ·) (Coefficient.BaseChangeComparison.coefficientBaseChangeIso_one_tmul D x) |
| 29 | |
| 30 | theorem descended_tensorMap_comparison (D : Subalgebra C R) |
| 31 | (φ : R ⊗[C] A →ₐ[R] R ⊗[C] B) (ψ : D ⊗[C] A →ₐ[D] D ⊗[C] B) |
| 32 | (h : ∀ x, Coefficient.TensorMaps.coefficientTensorMap D (ψ x) = φ (Coefficient.TensorMaps.coefficientTensorMap D x)) : |
| 33 | (Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := B) D).toAlgHom.comp |
| 34 | (Algebra.TensorProduct.map (AlgHom.id R R) ψ) = |
| 35 | φ.comp (Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := A) D).toAlgHom := by |
| 36 | apply AlgHom.ext |
| 37 | intro z |
| 38 | induction z using TensorProduct.inductionOn with |
| 39 | | tmul r x => |
| 40 | change Coefficient.BaseChangeComparison.coefficientBaseChangeIso D (r ⊗ₜ[D] ψ x) = φ (Coefficient.BaseChangeComparison.coefficientBaseChangeIso D (r ⊗ₜ[D] x)) |
| 41 | rw [coefficientBaseChangeIso_tmul, coefficientBaseChangeIso_tmul, h] |
| 42 | exact (φ.toLinearMap.map_smul r _).symm |
| 43 | | add x y hx hy => simp only [map_add, hx, hy] |
| 44 | |
| 45 | theorem descended_tensorMap_isOpenImmersion (D : Subalgebra C R) |
| 46 | (φ : R ⊗[C] A →ₐ[R] R ⊗[C] B) (ψ : D ⊗[C] A →ₐ[D] D ⊗[C] B) |
| 47 | (h : ∀ x, Coefficient.TensorMaps.coefficientTensorMap D (ψ x) = φ (Coefficient.TensorMaps.coefficientTensorMap D x)) |
| 48 | [IsOpenImmersion (Spec.map (CommRingCat.ofHom φ.toRingHom))] : |
| 49 | IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 50 | (R := R ⊗[D] (D ⊗[C] A)) (S := R ⊗[D] (D ⊗[C] B)) |
| 51 | (Algebra.TensorProduct.map (AlgHom.id R R) ψ).toRingHom)) := by |
| 52 | let eA := Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := A) D |
| 53 | let eB := Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := B) D |
| 54 | let q := Algebra.TensorProduct.map (AlgHom.id R R) ψ |
| 55 | have hw (x : R ⊗[D] (D ⊗[C] A)) : eB (q x) = φ (eA x) := |
| 56 | DFunLike.congr_fun (descended_tensorMap_comparison D φ ψ h) x |
| 57 | apply Affine.ImmersionTransport.isOpenImmersion_SpecMap_of_conjugate |
| 58 | (A := R ⊗[C] A) (B := R ⊗[C] B) |
| 59 | (A' := R ⊗[D] (D ⊗[C] A)) (B' := R ⊗[D] (D ⊗[C] B)) φ.toRingHom q.toRingHom |
| 60 | eA.symm.toRingEquiv eB.symm.toRingEquiv |
| 61 | intro x |
| 62 | apply eB.injective |
| 63 | change eB (eB.symm (φ x)) = eB (q (eA.symm x)) |
| 64 | rw [eB.apply_symm_apply, hw, eA.apply_symm_apply] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DescendedTensorMapComparison |