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.ArithmeticGeometry.Models.SpreadingOut.AlgebraicSpecialization |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.DirectLimitFG |
| 4 | import Mathlib.RingTheory.Flat.Basic |
| 5 | |
| 6 | /-! # Tensor Specialization -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.TensorSpecialization.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A nonzero tensor over a finitely generated coefficient domain stays |
| 13 | nonzero under a suitable specialization to the algebraic closure. -/ |
| 14 | |
| 15 | universe u |
| 16 | open scoped Classical TensorProduct |
| 17 | |
| 18 | theorem tensor_basis_coordinate_map |
| 19 | {k A B C ι : Type u} [Field k] [CommRing A] [Algebra k A] |
| 20 | [CommRing B] [Algebra k B] [CommRing C] [Algebra k C] |
| 21 | (b : Module.Basis ι k A) (φ : B →ₐ[k] C) (x : B ⊗[k] A) (i : ι) : |
| 22 | (b.baseChange C).repr (Algebra.TensorProduct.map φ (AlgHom.id k A) x) i = |
| 23 | φ ((b.baseChange B).repr x i) := by |
| 24 | induction x using TensorProduct.inductionOn with |
| 25 | | tmul a c => simp [Module.Basis.baseChange_repr_tmul] |
| 26 | | add x y hx hy => simp [hx, hy] |
| 27 | |
| 28 | theorem exists_nonzero_tensor_specialization |
| 29 | (k A B : Type u) [Field k] [CommRing A] [Algebra k A] |
| 30 | [CommRing B] [IsDomain B] [Algebra k B] [Algebra.FiniteType k B] |
| 31 | {x : B ⊗[k] A} (hx : x ≠ 0) : |
| 32 | ∃ φ : B →ₐ[k] AlgebraicClosure k, |
| 33 | Algebra.TensorProduct.map φ (AlgHom.id k A) x ≠ 0 := by |
| 34 | let b := Module.Free.chooseBasis k A |
| 35 | have hc : ∃ i, (b.baseChange B).repr x i ≠ 0 := by |
| 36 | by_contra h |
| 37 | apply hx |
| 38 | apply (b.baseChange B).repr.injective |
| 39 | ext i |
| 40 | simpa only [map_zero, Finsupp.zero_apply] using not_exists_not.mp h i |
| 41 | obtain ⟨i, hi⟩ := hc |
| 42 | obtain ⟨φ, hφ⟩ := AlgebraicSpecialization.Construction.finiteType_specialization_nonzero k B hi |
| 43 | refine ⟨φ, fun hzero => hφ ?_⟩ |
| 44 | have he := congrArg (fun z => (b.baseChange (AlgebraicClosure k)).repr z i) hzero |
| 45 | simpa only [tensor_basis_coordinate_map, map_zero, Finsupp.zero_apply] using he |
| 46 | |
| 47 | theorem exists_nonzero_pair_tensor_specialization |
| 48 | (k A B : Type u) [Field k] [CommRing A] [Algebra k A] |
| 49 | [CommRing B] [IsDomain B] [Algebra k B] [Algebra.FiniteType k B] |
| 50 | {x y : B ⊗[k] A} (hx : x ≠ 0) (hy : y ≠ 0) : |
| 51 | ∃ φ : B →ₐ[k] AlgebraicClosure k, |
| 52 | Algebra.TensorProduct.map φ (AlgHom.id k A) x ≠ 0 ∧ |
| 53 | Algebra.TensorProduct.map φ (AlgHom.id k A) y ≠ 0 := by |
| 54 | let b := Module.Free.chooseBasis k A |
| 55 | have hc (z : B ⊗[k] A) (hz : z ≠ 0) : ∃ i, (b.baseChange B).repr z i ≠ 0 := by |
| 56 | by_contra h |
| 57 | apply hz |
| 58 | apply (b.baseChange B).repr.injective |
| 59 | ext i |
| 60 | simpa only [map_zero, Finsupp.zero_apply] using not_exists_not.mp h i |
| 61 | obtain ⟨i, hi⟩ := hc x hx |
| 62 | obtain ⟨j, hj⟩ := hc y hy |
| 63 | obtain ⟨φ, hφ⟩ := AlgebraicSpecialization.Construction.finiteType_specialization_nonzero k B (mul_ne_zero hi hj) |
| 64 | rw [map_mul] at hφ |
| 65 | obtain ⟨hφi, hφj⟩ := mul_ne_zero_iff.mp hφ |
| 66 | have hd (z : B ⊗[k] A) (i) (hi : φ ((b.baseChange B).repr z i) ≠ 0) : |
| 67 | Algebra.TensorProduct.map φ (AlgHom.id k A) z ≠ 0 := by |
| 68 | intro hzero |
| 69 | apply hi |
| 70 | have he := congrArg (fun w => (b.baseChange (AlgebraicClosure k)).repr w i) hzero |
| 71 | simpa only [tensor_basis_coordinate_map, map_zero, Finsupp.zero_apply] using he |
| 72 | exact ⟨φ, hd x i hφi, hd y j hφj⟩ |
| 73 | |
| 74 | theorem finiteType_domain_tensor_noZeroDivisors_of_algClosure |
| 75 | (k A B : Type u) [Field k] [CommRing A] [Algebra k A] |
| 76 | [CommRing B] [IsDomain B] [Algebra k B] [Algebra.FiniteType k B] |
| 77 | [NoZeroDivisors (AlgebraicClosure k ⊗[k] A)] : NoZeroDivisors (B ⊗[k] A) := by |
| 78 | constructor |
| 79 | intro x y hxy |
| 80 | by_contra h |
| 81 | obtain ⟨hx, hy⟩ := not_or.mp h |
| 82 | obtain ⟨φ, hφx, hφy⟩ := exists_nonzero_pair_tensor_specialization k A B hx hy |
| 83 | have he := congrArg (Algebra.TensorProduct.map φ (AlgHom.id k A)) hxy |
| 84 | rw [map_mul, map_zero] at he |
| 85 | exact (mul_ne_zero hφx hφy) he |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.ArithmeticGeometry.Models.SpreadingOut.TensorSpecialization.Construction |