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 Mathlib.RingTheory.TensorProduct.DirectLimitFG |
| 2 | import Mathlib.RingTheory.Flat.Basic |
| 3 | |
| 4 | /-! # Tensor Units -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Geometric.Finite.TensorUnits |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A regular unit on a flat scalar-extended affine chart is defined |
| 13 | over a finitely generated subalgebra of the ambient parameter algebra. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable {A R B : Type*} [CommRing A] [CommRing R] [CommRing B] [Algebra A R] [Algebra A B] |
| 18 | |
| 19 | theorem subalgebraTensorMap_inclusion {S T : Subalgebra A R} (hST : S ≤ T) |
| 20 | (x : S ⊗[A] B) : |
| 21 | Algebra.TensorProduct.map T.val (AlgHom.id A B) |
| 22 | (Algebra.TensorProduct.map (Subalgebra.inclusion hST) (AlgHom.id A B) x) = |
| 23 | Algebra.TensorProduct.map S.val (AlgHom.id A B) x := by |
| 24 | have h : (Algebra.TensorProduct.map T.val (AlgHom.id A B)).comp |
| 25 | (Algebra.TensorProduct.map (Subalgebra.inclusion hST) (AlgHom.id A B)) = |
| 26 | Algebra.TensorProduct.map S.val (AlgHom.id A B) := by |
| 27 | rw [← Algebra.TensorProduct.map_comp, Subalgebra.val_comp_inclusion, AlgHom.id_comp] |
| 28 | exact DFunLike.congr_fun h x |
| 29 | |
| 30 | theorem subalgebraTensorMap_mem_range_mono {S T : Subalgebra A R} (hST : S ≤ T) |
| 31 | {x : R ⊗[A] B} (hx : x ∈ LinearMap.range (S.val.toLinearMap.rTensor B)) : |
| 32 | x ∈ LinearMap.range (T.val.toLinearMap.rTensor B) := by |
| 33 | obtain ⟨y, hy⟩ := hx |
| 34 | refine ⟨Algebra.TensorProduct.map (Subalgebra.inclusion hST) (AlgHom.id A B) y, ?_⟩ |
| 35 | exact (subalgebraTensorMap_inclusion hST y).trans hy |
| 36 | |
| 37 | theorem exists_fg_subalgebra_tensor_unit [Module.Flat A B] (u : (R ⊗[A] B)ˣ) : |
| 38 | ∃ S : Subalgebra A R, S.FG ∧ ∃ v : (S ⊗[A] B)ˣ, |
| 39 | Algebra.TensorProduct.map S.val (AlgHom.id A B) (v : S ⊗[A] B) = u := by |
| 40 | obtain ⟨S, hS, hs⟩ := TensorProduct.Algebra.exists_of_fg (u : R ⊗[A] B) |
| 41 | obtain ⟨T, hT, ht⟩ := TensorProduct.Algebra.exists_of_fg u.inv |
| 42 | obtain ⟨x, hx⟩ := subalgebraTensorMap_mem_range_mono (show S ≤ S ⊔ T from le_sup_left) hs |
| 43 | obtain ⟨y, hy⟩ := subalgebraTensorMap_mem_range_mono (show T ≤ S ⊔ T from le_sup_right) ht |
| 44 | have hi : Function.Injective (Algebra.TensorProduct.map (S ⊔ T).val (AlgHom.id A B)) := |
| 45 | Module.Flat.rTensor_preserves_injective_linearMap (S ⊔ T).val.toLinearMap Subtype.val_injective |
| 46 | have hxy : x * y = 1 := by |
| 47 | apply hi |
| 48 | rw [map_mul, map_one] |
| 49 | change ((S ⊔ T).val.toLinearMap.rTensor B x) * ((S ⊔ T).val.toLinearMap.rTensor B y) = 1 |
| 50 | rw [hx, hy] |
| 51 | exact u.val_inv |
| 52 | exact ⟨S ⊔ T, hS.sup hT, ⟨x, y, hxy, (mul_comm y x).trans hxy⟩, hx⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | section |
| 57 | |
| 58 | /-! Finitely many regular units on flat affine charts are all defined |
| 59 | over one finitely generated parameter subalgebra. -/ |
| 60 | |
| 61 | open scoped TensorProduct |
| 62 | |
| 63 | theorem subalgebra_fg_finset_sup {A R ι : Type*} [CommRing A] [CommRing R] [Algebra A R] |
| 64 | (S : ι → Subalgebra A R) (hS : ∀ i, (S i).FG) (s : Finset ι) : (s.sup S).FG := by |
| 65 | classical |
| 66 | induction s using Finset.induction_on with |
| 67 | | empty => simpa only [Finset.sup_empty] using (Subalgebra.fg_bot (R := A) (A := R)) |
| 68 | | @insert i s _ ih => simpa only [Finset.sup_insert] using (hS i).sup ih |
| 69 | |
| 70 | theorem exists_fg_subalgebra_finite_tensor_units |
| 71 | {A R ι : Type*} [CommRing A] [CommRing R] [Algebra A R] [Fintype ι] |
| 72 | (B : ι → Type*) [∀ i, CommRing (B i)] [∀ i, Algebra A (B i)] [∀ i, Module.Flat A (B i)] |
| 73 | (u : ∀ i, (R ⊗[A] B i)ˣ) : |
| 74 | ∃ S : Subalgebra A R, S.FG ∧ ∃ v : ∀ i, (S ⊗[A] B i)ˣ, |
| 75 | ∀ i, Algebra.TensorProduct.map S.val (AlgHom.id A (B i)) (v i : S ⊗[A] B i) = u i := by |
| 76 | classical |
| 77 | choose S hS v hv using fun i => exists_fg_subalgebra_tensor_unit (u i) |
| 78 | let T : Subalgebra A R := Finset.univ.sup S |
| 79 | have hST (i : ι) : S i ≤ T := Finset.le_sup (Finset.mem_univ i) |
| 80 | refine ⟨T, subalgebra_fg_finset_sup S hS Finset.univ, |
| 81 | (fun i => Units.map (Algebra.TensorProduct.map (Subalgebra.inclusion (hST i)) |
| 82 | (AlgHom.id A (B i))).toMonoidHom (v i)), ?_⟩ |
| 83 | intro i |
| 84 | change Algebra.TensorProduct.map T.val (AlgHom.id A (B i)) |
| 85 | (Algebra.TensorProduct.map (Subalgebra.inclusion (hST i)) (AlgHom.id A (B i)) (v i : S i ⊗[A] B i)) = _ |
| 86 | exact (subalgebraTensorMap_inclusion (hST i) (v i : S i ⊗[A] B i)).trans (hv i) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | /-! Finite coefficient descent in the tensor order used by native |
| 91 | affine base-change coordinates. -/ |
| 92 | |
| 93 | open scoped TensorProduct |
| 94 | |
| 95 | theorem exists_fg_subalgebra_finite_right_tensor_units |
| 96 | {A R ι : Type*} [CommRing A] [CommRing R] [Algebra A R] [Fintype ι] |
| 97 | (B : ι → Type*) [∀ i, CommRing (B i)] [∀ i, Algebra A (B i)] [∀ i, Module.Flat A (B i)] |
| 98 | (u : ∀ i, (B i ⊗[A] R)ˣ) : |
| 99 | ∃ S : Subalgebra A R, S.FG ∧ ∃ v : ∀ i, (B i ⊗[A] S)ˣ, |
| 100 | ∀ i, Algebra.TensorProduct.map (AlgHom.id A (B i)) S.val (v i : B i ⊗[A] S) = u i := by |
| 101 | let w (i) := Units.map (Algebra.TensorProduct.comm A (B i) R).toMonoidHom (u i) |
| 102 | obtain ⟨S, hS, v, hv⟩ := exists_fg_subalgebra_finite_tensor_units B w |
| 103 | refine ⟨S, hS, (fun i => Units.map (Algebra.TensorProduct.comm A S (B i)).toMonoidHom (v i)), ?_⟩ |
| 104 | intro i |
| 105 | change Algebra.TensorProduct.map (AlgHom.id A (B i)) S.val |
| 106 | (Algebra.TensorProduct.comm A S (B i) (v i : S ⊗[A] B i)) = _ |
| 107 | rw [← Algebra.TensorProduct.comm_comp_map_apply, hv i] |
| 108 | change Algebra.TensorProduct.comm A R (B i) |
| 109 | (Algebra.TensorProduct.comm A (B i) R (u i : B i ⊗[A] R)) = _ |
| 110 | exact (Algebra.TensorProduct.comm A (B i) R).symm_apply_apply _ |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.RepresentationTheory.Theta.Geometric.Finite.TensorUnits |