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.Resolution.Blowups.LocalCoordinatePrime |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.FactorUniqueness |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.TransverseHypersurfaceCoordinates |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.CoefficientStep |
| 5 | |
| 6 | /-! # Boundary Factor Uniqueness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.BoundaryFactorUniqueness.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Canonical boundary exponents and residual ideals in actual étale local rings. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {σ K S : Type u} [Field K] [IsAlgClosed K] [CharZero K] [CommRing S] |
| 17 | [Finite σ] [DecidableEq σ] |
| 18 | [Algebra (MvPolynomial σ K) S] [Algebra.Etale (MvPolynomial σ K) S] |
| 19 | |
| 20 | /-- Local boundary coordinates are regular, prime, and do not divide one |
| 21 | another. These are proved properties of the actual étale local ring. -/ |
| 22 | theorem etale_local_boundary_factor_properties (B : Finset σ) (q : Ideal S) [q.IsMaximal] |
| 23 | (hB : ∀ i ∈ B, algebraMap (MvPolynomial σ K) S (MvPolynomial.X i) ∈ q) : |
| 24 | let w := fun i : σ => algebraMap S (Localization.AtPrime q) |
| 25 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i)) |
| 26 | (∀ i ∈ B, IsRegular (w i)) ∧ (∀ i ∈ B, (Ideal.span {w i}).IsPrime) ∧ |
| 27 | ∀ i ∈ B, ∀ j ∈ B, j ≠ i → w j ∉ Ideal.span {w i} := by |
| 28 | let T := Localization.AtPrime q |
| 29 | let : IsNoetherianRing S := Algebra.FiniteType.isNoetherianRing (MvPolynomial σ K) S |
| 30 | let : Algebra ℚ T := ((algebraMap (MvPolynomial σ K) T).comp |
| 31 | ((MvPolynomial.C : K →+* MvPolynomial σ K).comp (algebraMap ℚ K))).toAlgebra |
| 32 | let : Algebra.FormallyEtale S T := Algebra.FormallyEtale.of_isLocalization q.primeCompl |
| 33 | let w := fun i : σ => algebraMap S T (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i)) |
| 34 | let D := fun i : σ => Derivation.Construction.extendEtaleRingDerivation (S := T) |
| 35 | (LocalOrder.Construction.etalePolynomialCoordinateDerivation (K := K) (S := S) i) |
| 36 | have hD : ∀ i j : σ, D i (w j) = if i = j then 1 else 0 := by |
| 37 | intro i j |
| 38 | rw [show D i (w j) = algebraMap S T |
| 39 | (LocalOrder.Construction.etalePolynomialCoordinateDerivation (K := K) (S := S) i |
| 40 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X j))) from |
| 41 | Derivation.Construction.extendEtaleRingDerivation_algebraMap _ _, CoefficientStep.Construction.etalePolynomialCoordinateDerivation_X] |
| 42 | split_ifs <;> simp only [map_one, map_zero] |
| 43 | refine ⟨?_, ?_, ?_⟩ |
| 44 | · intro i _ |
| 45 | exact Coordinate.Regularity.Construction.coordinate_isRegular (D i) (w i) (by rw [hD, ite_eq_left rfl]) |
| 46 | · intro i hi |
| 47 | exact LocalCoordinatePrime.Construction.etale_boundary_coordinate_atPrime_isPrime (K := K) i q (hB i hi) |
| 48 | · intro i hi j _ hji |
| 49 | let M := IsLocalRing.maximalIdeal T |
| 50 | have hwi : w i ∈ M := by |
| 51 | change algebraMap (MvPolynomial σ K) S (MvPolynomial.X i) ∈ |
| 52 | M.comap (algebraMap S T) |
| 53 | change algebraMap (MvPolynomial σ K) S (MvPolynomial.X i) ∈ |
| 54 | (IsLocalRing.maximalIdeal (Localization.AtPrime q)).under S |
| 55 | rw [Localization.AtPrime.under_maximalIdeal] |
| 56 | exact hB i hi |
| 57 | exact Boundary.FactorUniqueness.Construction.transverse_coordinate_not_mem_span (D j) (w i) (w j) |
| 58 | (by rw [hD, ite_eq_right hji]) (by rw [hD, ite_eq_left rfl]) M |
| 59 | (IsLocalRing.maximalIdeal.isMaximal T).ne_top hwi |
| 60 | |
| 61 | /-- Two primitive local boundary factorizations have the same exponent |
| 62 | function and the same residual ideal. -/ |
| 63 | theorem etale_local_boundary_factorization_unique (B : Finset σ) (q : Ideal S) [q.IsMaximal] |
| 64 | (hB : ∀ i ∈ B, algebraMap (MvPolynomial σ K) S (MvPolynomial.X i) ∈ q) |
| 65 | (a b : σ → ℕ) (L M : Ideal (Localization.AtPrime q)) |
| 66 | (ha0 : ∀ i ∉ B, a i = 0) (hb0 : ∀ i ∉ B, b i = 0) |
| 67 | (hL : ∀ i ∈ B, ¬ L ≤ Ideal.span {algebraMap S (Localization.AtPrime q) |
| 68 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i))}) |
| 69 | (hM : ∀ i ∈ B, ¬ M ≤ Ideal.span {algebraMap S (Localization.AtPrime q) |
| 70 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i))}) |
| 71 | (he : Ideal.span {∏ i ∈ B, (algebraMap S (Localization.AtPrime q) |
| 72 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i))) ^ a i} * L = |
| 73 | Ideal.span {∏ i ∈ B, (algebraMap S (Localization.AtPrime q) |
| 74 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i))) ^ b i} * M) : a = b ∧ L = M := by |
| 75 | obtain ⟨hreg, hprime, hind⟩ := etale_local_boundary_factor_properties (K := K) B q hB |
| 76 | have hab := Boundary.FactorUniqueness.Construction.finite_prime_boundary_exponents_unique B _ a b L M hreg hprime hind hL hM he |
| 77 | refine ⟨?_, Boundary.FactorUniqueness.Construction.finite_regular_boundary_residual_unique B _ a b L M hreg hab he⟩ |
| 78 | funext i |
| 79 | by_cases hi : i ∈ B |
| 80 | · exact hab i hi |
| 81 | · rw [ha0 i hi, hb0 i hi] |
| 82 | |
| 83 | /-- Every nonzero ideal of the actual local ring has a unique primitive |
| 84 | boundary factorization with exponents zero off the retained boundary. -/ |
| 85 | theorem existsUnique_etale_local_boundary_factorization |
| 86 | (B : Finset σ) (q : Ideal S) [q.IsMaximal] |
| 87 | (hB : ∀ i ∈ B, algebraMap (MvPolynomial σ K) S (MvPolynomial.X i) ∈ q) |
| 88 | (J : Ideal (Localization.AtPrime q)) (hJ : J ≠ ⊥) : |
| 89 | let w := fun i : σ => algebraMap S (Localization.AtPrime q) |
| 90 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i)) |
| 91 | ∃! v : (σ → ℕ) × Ideal (Localization.AtPrime q), |
| 92 | (∀ i ∉ B, v.1 i = 0) ∧ J = Ideal.span {∏ i ∈ B, w i ^ v.1 i} * v.2 ∧ |
| 93 | ∀ i ∈ B, ¬ v.2 ≤ Ideal.span {w i} := by |
| 94 | let : IsNoetherianRing S := Algebra.FiniteType.isNoetherianRing (MvPolynomial σ K) S |
| 95 | let w := fun i : σ => algebraMap S (Localization.AtPrime q) |
| 96 | (algebraMap (MvPolynomial σ K) S (MvPolynomial.X i)) |
| 97 | obtain ⟨_, hprime, _⟩ := etale_local_boundary_factor_properties (K := K) B q hB |
| 98 | obtain ⟨a, L, ha0, hfactor, _, _, hL⟩ := Boundary.FactorExtraction.Construction.exists_finite_boundary_factorization B w |
| 99 | (fun i hi => (hprime i hi).ne_top) J hJ |
| 100 | refine ⟨(a, L), ⟨ha0, hfactor, hL⟩, ?_⟩ |
| 101 | rintro ⟨b, M⟩ ⟨hb0, hfactor', hM⟩ |
| 102 | obtain ⟨hab, hLM⟩ := etale_local_boundary_factorization_unique (K := K) B q hB b a M L |
| 103 | hb0 ha0 hM hL (hfactor'.symm.trans hfactor) |
| 104 | exact Prod.ext hab hLM |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.BoundaryFactorUniqueness.Construction |