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.PrincipalPresentationTransport |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PrincipalMap |
| 3 | |
| 4 | /-! # Principal Coefficient Presentation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PrincipalCoefficientPresentation |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Denominators of an arbitrary affine open immersion lift to finite coefficients. -/ |
| 11 | |
| 12 | open TensorProduct _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem coefficient_principalMap_bijective |
| 17 | {C R A B : Type u} [CommRing C] [CommRing R] [CommRing A] [CommRing B] |
| 18 | [Algebra C R] [Algebra C A] [Algebra C B] (D : Subalgebra C R) (φ : A →ₐ[C] B) |
| 19 | (a : D ⊗[C] A) |
| 20 | (h : PrincipalMap.PrincipalMapCriterion (Algebra.TensorProduct.map (AlgHom.id R R) φ).toRingHom |
| 21 | (Coefficient.TensorMaps.coefficientTensorMap D a)) : |
| 22 | Function.Bijective (PrincipalLocalizationNaturality.principalBaseChangeMap (R := R) |
| 23 | (Algebra.TensorProduct.map (AlgHom.id D D) φ) a) := by |
| 24 | let φR := Algebra.TensorProduct.map (AlgHom.id R R) φ |
| 25 | let φD := Algebra.TensorProduct.map (AlgHom.id D D) φ |
| 26 | let φDR := Algebra.TensorProduct.map (AlgHom.id R R) φD |
| 27 | let eA := Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := A) D |
| 28 | let eB := Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := B) D |
| 29 | have hw (x : R ⊗[D] (D ⊗[C] A)) : eB (φDR x) = φR (eA x) := |
| 30 | DFunLike.congr_fun (Coefficient.BaseChangeComparison.coefficientBaseChangeIso_natural D φ) x |
| 31 | have hh : PrincipalMap.PrincipalMapCriterion φR.toRingHom (eA ((1 : R) ⊗ₜ[D] a)) := by |
| 32 | rw [show eA ((1 : R) ⊗ₜ[D] a) = Coefficient.TensorMaps.coefficientTensorMap D a from |
| 33 | Coefficient.BaseChangeComparison.coefficientBaseChangeIso_one_tmul D a] |
| 34 | exact h |
| 35 | have hb := PrincipalMap.principalMapCriterion_of_conjugate |
| 36 | (A := R ⊗[D] (D ⊗[C] A)) (B := R ⊗[D] (D ⊗[C] B)) |
| 37 | (A' := R ⊗[C] A) (B' := R ⊗[C] B) φDR.toRingHom φR.toRingHom |
| 38 | eA.toRingEquiv eB.toRingEquiv hw ((1 : R) ⊗ₜ[D] a) hh |
| 39 | exact (PrincipalMap.principalBaseChangeMap_bijective_iff_criterion φD a).mpr hb |
| 40 | |
| 41 | theorem exists_affine_principal_coefficient_presentation |
| 42 | {C R A B : Type u} [CommRing C] [CommRing R] [CommRing A] [CommRing B] |
| 43 | [Algebra C R] [Algebra C A] [Algebra C B] (φ : A →ₐ[C] B) |
| 44 | [IsOpenImmersion (Spec.map (CommRingCat.ofHom |
| 45 | (Algebra.TensorProduct.map (AlgHom.id R R) φ).toRingHom))] |
| 46 | (E : Subalgebra C R) (hE : E.FG) : |
| 47 | ∃ D : Subalgebra C R, E ≤ D ∧ D.FG ∧ |
| 48 | ∃ (k : ℕ) (f : Fin k → D ⊗[C] A), |
| 49 | Ideal.span (Set.range (fun i => (1 : R) ⊗ₜ[D] |
| 50 | Algebra.TensorProduct.map (AlgHom.id D D) φ (f i))) = ⊤ ∧ |
| 51 | ∀ i, Function.Bijective (PrincipalLocalizationNaturality.principalBaseChangeMap (R := R) |
| 52 | (Algebra.TensorProduct.map (AlgHom.id D D) φ) (f i)) := by |
| 53 | let φR := Algebra.TensorProduct.map (AlgHom.id R R) φ |
| 54 | obtain ⟨k, fR, hcover, hiso⟩ := AffineOpen.ImmersionPresentation.exists_finite_principal_openImmersion_presentation φR.toRingHom |
| 55 | obtain ⟨D, hED, hD, hd⟩ := Finite.TensorCoefficients.exists_finite_tensor_coefficients fR E hE |
| 56 | choose f hf using hd |
| 57 | let φD := Algebra.TensorProduct.map (AlgHom.id D D) φ |
| 58 | let eB := Coefficient.BaseChangeComparison.coefficientBaseChangeIso (A := B) D |
| 59 | refine ⟨D, hED, hD, k, f, ?_, ?_⟩ |
| 60 | · apply PrincipalPresentationTransport.principal_cover_of_ringEquiv (A := R ⊗[D] (D ⊗[C] B)) (B := R ⊗[C] B) |
| 61 | eB.toRingEquiv (fun i => (1 : R) ⊗ₜ[D] φD (f i)) |
| 62 | have heq : (fun i => eB ((1 : R) ⊗ₜ[D] φD (f i))) = fun i => φR (fR i) := by |
| 63 | funext i |
| 64 | exact (Coefficient.BaseChangeComparison.coefficientBaseChangeIso_one_tmul D (φD (f i))).trans |
| 65 | ((NaturalTensorMapDescent.coefficientTensorMap_natural D φ (f i)).trans (congrArg φR (hf i))) |
| 66 | change Ideal.span (Set.range (fun i => eB ((1 : R) ⊗ₜ[D] φD (f i)))) = ⊤ |
| 67 | rw [heq] |
| 68 | exact hcover |
| 69 | · intro i |
| 70 | apply coefficient_principalMap_bijective D φ (f i) |
| 71 | rw [show Coefficient.TensorMaps.coefficientTensorMap D (f i) = fR i from hf i] |
| 72 | exact (PrincipalMap.localizationMap_bijective_iff_criterion |
| 73 | (P := Localization.Away (fR i)) (Q := Localization.Away (φR (fR i))) |
| 74 | φR.toRingHom (fR i)).mp (hiso i) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PrincipalCoefficientPresentation |