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.IntersectionTheory.ProjectionFormula.Affine.DivisorDimension |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.FunctionFields |
| 3 | |
| 4 | /-! # Divisor Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.DivisorDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Dimension-one fibers in finite-type integral algebras. Primes over |
| 11 | the generic point have height at most one, and a height-one prime with |
| 12 | nonzero residue degree can only map to the generic point. -/ |
| 13 | |
| 14 | open _root_.Order |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorDimension |
| 17 | |
| 18 | theorem height_eq_zero_of_quotient_dimension_eq (K A : Type) [Field K] [CommRing A] |
| 19 | [IsDomain A] [Algebra K A] [Algebra.FiniteType K A] |
| 20 | (p : Ideal A) [p.IsPrime] |
| 21 | (hd : (Algebra.trdeg K (A ⧸ p)).toNat = (Algebra.trdeg K A).toNat) : p.height = 0 := by |
| 22 | have hb := Affine.DivisorDimension.quotient_dimension_add_height_le A ⟨p, inferInstance⟩ |
| 23 | rw [DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K A, DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K (A ⧸ p), hd] at hb |
| 24 | have hb' : (p.height : WithBot ℕ∞) + ((Algebra.trdeg K A).toNat : WithBot ℕ∞) ≤ |
| 25 | (0 : WithBot ℕ∞) + ((Algebra.trdeg K A).toNat : WithBot ℕ∞) := by simpa using hb |
| 26 | exact le_antisymm |
| 27 | (WithBot.coe_le_coe.mp (ENat.WithBot.add_le_add_natCast_right_iff.mp hb')) bot_le |
| 28 | |
| 29 | variable (K A B : Type) [Field K] [CommRing A] [CommRing B] [IsDomain A] [IsDomain B] |
| 30 | [Algebra K A] [Algebra K B] [Algebra A B] [IsScalarTower K A B] |
| 31 | [Algebra.FiniteType K A] [Algebra.FiniteType K B] |
| 32 | (hdim : (Algebra.trdeg K A).toNat + 1 = (Algebra.trdeg K B).toNat) |
| 33 | |
| 34 | include hdim |
| 35 | |
| 36 | omit [IsDomain A] [Algebra.FiniteType K A] in |
| 37 | theorem height_le_one_over_bot (q : Ideal B) [q.IsPrime] (hq : q.under A = ⊥) : |
| 38 | q.height ≤ 1 := by |
| 39 | let φ : A →ₐ[K] B ⧸ q := (Ideal.Quotient.mkₐ K q).comp (IsScalarTower.toAlgHom K A B) |
| 40 | have hi : Function.Injective φ := by |
| 41 | apply (RingHom.injective_iff_ker_eq_bot φ.toRingHom).mpr |
| 42 | change RingHom.ker ((Ideal.Quotient.mk q).comp (algebraMap A B)) = ⊥ |
| 43 | rw [← RingHom.comap_ker, Ideal.mk_ker] |
| 44 | exact hq |
| 45 | have ht := trdeg_le_of_injective φ hi |
| 46 | let : Algebra.FiniteType K (B ⧸ q) := |
| 47 | Algebra.FiniteType.of_surjective (Ideal.Quotient.mkₐ K q) Ideal.Quotient.mk_surjective |
| 48 | have hc : (Algebra.trdeg K A).toNat ≤ (Algebra.trdeg K (B ⧸ q)).toNat := |
| 49 | Cardinal.toNat_le_toNat ht (trdeg_lt_aleph0_of_finiteType (R := K) (S := B ⧸ q)) |
| 50 | have hb := Affine.DivisorDimension.quotient_dimension_add_height_le B ⟨q, inferInstance⟩ |
| 51 | rw [DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K B, DivisorClass.Chern.FiniteTypeDimension.Construction.finiteType_ringKrullDim_eq_trdeg K (B ⧸ q), |
| 52 | ← hdim, Nat.cast_add, Nat.cast_one, add_comm _ (1 : WithBot ℕ∞)] at hb |
| 53 | have hb' : (q.height : WithBot ℕ∞) + ((Algebra.trdeg K A).toNat : WithBot ℕ∞) ≤ |
| 54 | (1 : WithBot ℕ∞) + ((Algebra.trdeg K A).toNat : WithBot ℕ∞) := by |
| 55 | have hm : ((Algebra.trdeg K A).toNat : WithBot ℕ∞) ≤ |
| 56 | ((Algebra.trdeg K (B ⧸ q)).toNat : WithBot ℕ∞) := by exact_mod_cast hc |
| 57 | calc |
| 58 | _ ≤ (q.height : WithBot ℕ∞) + ((Algebra.trdeg K (B ⧸ q)).toNat : WithBot ℕ∞) := |
| 59 | add_le_add le_rfl hm |
| 60 | _ ≤ _ := hb |
| 61 | exact WithBot.coe_le_coe.mp (ENat.WithBot.add_le_add_natCast_right_iff.mp hb') |
| 62 | |
| 63 | theorem under_eq_bot_of_height_one_of_degree (q : Ideal B) [q.IsPrime] |
| 64 | (hq : q.height = 1) (hdeg : q.inertiaDeg A ≠ 0) : q.under A = ⊥ := by |
| 65 | have hd : (Algebra.trdeg K (A ⧸ q.under A)).toNat = (Algebra.trdeg K A).toNat := by |
| 66 | have ht := DivisorClass.Chern.HeightOneDimension.Construction.finiteType_height_one_trdeg K B q hq |
| 67 | rw [← Affine.DivisorDimension.quotient_trdeg_eq_of_inertiaDeg_ne_zero K A B q hdeg] at ht |
| 68 | omega |
| 69 | exact Ideal.height_eq_zero_iff_eq_bot.mp (height_eq_zero_of_quotient_dimension_eq K A (q.under A) hd) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.DivisorDimension |