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.NumberTheory.ArithmeticGroups.Lattices.Zariski |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.IrreducibleGroup |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Lattices.CoordinateIdeal |
| 4 | |
| 5 | /-! # Geometric Irreducibility -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.GeometricIrreducibility.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Irreducibility and the geometric prime ideal of a connected matrix group. -/ |
| 14 | |
| 15 | open _root_.TopologicalSpace Set |
| 16 | |
| 17 | theorem geometrically_connected_irreducible |
| 18 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 19 | (hG : G.IsGeometricallyConnected) : |
| 20 | @IrreducibleSpace G.GeometricPoints G.geometricTopology := by |
| 21 | let : TopologicalSpace G.GeometricPoints := G.geometricTopology |
| 22 | let : SeparatelyContinuousMul G.GeometricPoints := { |
| 23 | continuous_const_mul := fun {g} => Zariski.Construction.geometric_left_mul_continuous G g |
| 24 | continuous_mul_const := fun {g} => Zariski.Construction.geometric_right_mul_continuous G g } |
| 25 | let : ContinuousInv G.GeometricPoints := ⟨Zariski.Construction.geometric_inv_continuous G⟩ |
| 26 | let : NoetherianSpace G.GeometricPoints := Zariski.Construction.geometric_noetherian G |
| 27 | let : ConnectedSpace G.GeometricPoints := hG |
| 28 | exact IrreducibleGroup.Construction.irreducible_of_connected_noetherian_group G.GeometricPoints |
| 29 | |
| 30 | def geometricVanishingIdeal {k : Type} [Field k] {n : ℕ} |
| 31 | (G : Algebraic.MatrixAlgebraicGroup k n) : Ideal (Algebraic.CoordinatePolynomial n (AlgebraicClosure k)) := |
| 32 | PrimeSpectrum.vanishingIdeal (range G.geometricPrime) |
| 33 | |
| 34 | theorem geometricVanishingIdeal_isPrime |
| 35 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 36 | (hG : G.IsGeometricallyConnected) : (geometricVanishingIdeal G).IsPrime := by |
| 37 | let : TopologicalSpace G.GeometricPoints := G.geometricTopology |
| 38 | let : IrreducibleSpace G.GeometricPoints := geometrically_connected_irreducible G hG |
| 39 | apply PrimeSpectrum.isIrreducible_iff_vanishingIdeal_isPrime.mp |
| 40 | simpa only [Set.image_univ] using |
| 41 | (IrreducibleSpace.isIrreducible_univ G.GeometricPoints).image G.geometricPrime |
| 42 | (Zariski.Construction.continuous_geometricPrime G).continuousOn |
| 43 | |
| 44 | theorem geometricVanishingIdeal_comap {k : Type} [Field k] {n : ℕ} |
| 45 | (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 46 | (geometricVanishingIdeal G).comap (MvPolynomial.map (algebraMap k (AlgebraicClosure k))) = |
| 47 | VanishingIdeal.Construction.coordinateVanishingIdeal G := by |
| 48 | ext p |
| 49 | rw [Ideal.mem_comap, CoordinateIdeal.Construction.mem_vanishingIdeal_iff_geometric] |
| 50 | simp only [geometricVanishingIdeal, PrimeSpectrum.mem_vanishingIdeal, forall_mem_range] |
| 51 | change (∀ x : G.GeometricPoints, |
| 52 | Algebraic.evaluateMatrix (RingHom.id _) x.val (MvPolynomial.map (algebraMap k (AlgebraicClosure k)) p) = 0) ↔ _ |
| 53 | simp only [Algebraic.evaluateMatrix, MvPolynomial.eval₂Hom_map_hom, RingHom.id_comp] |
| 54 | |
| 55 | theorem coordinateVanishingIdeal_isPrime {k : Type} [Field k] {n : ℕ} |
| 56 | (G : Algebraic.MatrixAlgebraicGroup k n) (hG : G.IsGeometricallyConnected) : |
| 57 | (VanishingIdeal.Construction.coordinateVanishingIdeal G).IsPrime := by |
| 58 | let : (geometricVanishingIdeal G).IsPrime := geometricVanishingIdeal_isPrime G hG |
| 59 | rw [← geometricVanishingIdeal_comap G] |
| 60 | infer_instance |
| 61 | |
| 62 | end |
| 63 | |
| 64 | /-! Reducedness after a separable algebraic field extension, used for |
| 65 | extension of coordinate ideals. -/ |
| 66 | |
| 67 | open scoped Classical TensorProduct |
| 68 | |
| 69 | theorem domain_tensor_separable_reduced_of_essFiniteType |
| 70 | (k K A : Type*) [Field k] [Field K] [Algebra k K] [Algebra.IsSeparable k K] |
| 71 | [Algebra.EssFiniteType k K] |
| 72 | [CommRing A] [IsDomain A] [Algebra k A] : IsReduced (A ⊗[k] K) := by |
| 73 | let F := FractionRing A |
| 74 | let : Algebra.FormallyUnramified k K := Algebra.FormallyUnramified.of_isSeparable k K |
| 75 | let : IsReduced (F ⊗[k] K) := Algebra.FormallyUnramified.isReduced_of_field F (F ⊗[k] K) |
| 76 | let f : A →ₐ[k] F := IsScalarTower.toAlgHom k A F |
| 77 | have hf : Function.Injective f := IsFractionRing.injective A F |
| 78 | exact isReduced_of_injective (Algebra.TensorProduct.map f 1) |
| 79 | (Module.Flat.rTensor_preserves_injective_linearMap f.toLinearMap hf) |
| 80 | |
| 81 | theorem domain_tensor_separable_reduced |
| 82 | (k K A : Type*) [Field k] [Field K] [Algebra k K] [Algebra.IsSeparable k K] |
| 83 | [CommRing A] [IsDomain A] [Algebra k A] : IsReduced (A ⊗[k] K) := by |
| 84 | apply IsReduced.tensorProduct_of_flat_of_forall_fg |
| 85 | intro B hB |
| 86 | let : Algebra.IsSeparable k B := Subalgebra.isSeparable_iff.mpr |
| 87 | (fun x _ => Algebra.IsSeparable.isSeparable k x) |
| 88 | let B' := Algebra.IsAlgebraic.toIntermediateField B |
| 89 | let e : B ≃ₐ[k] B' := |
| 90 | { toFun := fun x => ⟨x.val, x.property⟩ |
| 91 | invFun := fun x => ⟨x.val, x.property⟩ |
| 92 | left_inv := fun _ => rfl |
| 93 | right_inv := fun _ => rfl |
| 94 | map_mul' := fun _ _ => rfl |
| 95 | map_add' := fun _ _ => rfl |
| 96 | commutes' := fun _ => rfl } |
| 97 | let : Algebra.FiniteType k B' := (B.fg_iff_finiteType.mp hB).equiv e |
| 98 | let : Algebra.IsSeparable k B' := |
| 99 | ⟨fun x => (isSeparable_map_iff B'.val Subtype.val_injective).mp |
| 100 | (Algebra.IsSeparable.isSeparable k x.val)⟩ |
| 101 | let : IsReduced (A ⊗[k] B') := domain_tensor_separable_reduced_of_essFiniteType k B' A |
| 102 | let E := Algebra.TensorProduct.congr (AlgEquiv.refl : A ≃ₐ[k] A) e |
| 103 | exact isReduced_of_injective E E.injective |
| 104 | |
| 105 | theorem separable_tensor_domain_reduced |
| 106 | (k K A : Type*) [Field k] [Field K] [Algebra k K] [Algebra.IsSeparable k K] |
| 107 | [CommRing A] [IsDomain A] [Algebra k A] : IsReduced (K ⊗[k] A) := by |
| 108 | let : IsReduced (A ⊗[k] K) := domain_tensor_separable_reduced k K A |
| 109 | exact isReduced_of_injective (Algebra.TensorProduct.comm k K A) |
| 110 | (Algebra.TensorProduct.comm k K A).injective |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.ArithmeticGroups.Lattices.GeometricIrreducibility.Construction |