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.Boundary.CountReduction |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.ClosedWeightedOrder |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.ClosedOrder |
| 4 | import Mathlib.Data.Nat.Find |
| 5 | import Mathlib.RingTheory.Spectrum.Prime.Topology |
| 6 | |
| 7 | /-! # Count Closed Strata -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.CountClosedStrata.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Attained old-boundary maxima and disjoint closed strata on an affine scheme. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | variable {R σ : Type*} [CommRing R] |
| 18 | |
| 19 | theorem activeBoundaryComponents_mono (w : σ → R) (B : Finset σ) {q r : Ideal R} |
| 20 | (hqr : q ≤ r) : CountReduction.Construction.activeBoundaryComponents w B q ⊆ CountReduction.Construction.activeBoundaryComponents w B r := by |
| 21 | classical |
| 22 | intro i hi |
| 23 | obtain ⟨hiB, hiq⟩ := Finset.mem_filter.mp hi |
| 24 | exact Finset.mem_filter.mpr ⟨hiB, hqr hiq⟩ |
| 25 | |
| 26 | /-- On a nonempty affine closed locus, the old-boundary count attains a |
| 27 | finite maximum at a closed point. The same bound holds at every prime point. -/ |
| 28 | theorem exists_closed_boundary_count_maximum |
| 29 | (w : σ → R) (B : Finset σ) (F : Ideal R) (hF : F ≠ ⊤) : |
| 30 | ∃ s ≤ B.card, ∃ q : Ideal R, q.IsMaximal ∧ F ≤ q ∧ |
| 31 | (CountReduction.Construction.activeBoundaryComponents w B q).card = s ∧ |
| 32 | ∀ r : Ideal R, r ≠ ⊤ → F ≤ r → (CountReduction.Construction.activeBoundaryComponents w B r).card ≤ s := by |
| 33 | classical |
| 34 | let P : ℕ → Prop := fun n => ∃ q : Ideal R, q.IsMaximal ∧ F ≤ q ∧ |
| 35 | (CountReduction.Construction.activeBoundaryComponents w B q).card = n |
| 36 | obtain ⟨q, hq, hFq⟩ := Ideal.exists_le_maximal F hF |
| 37 | let n := (CountReduction.Construction.activeBoundaryComponents w B q).card |
| 38 | have hn : n ≤ B.card := Finset.card_le_card (Finset.filter_subset _ _) |
| 39 | have hP : P n := ⟨q, hq, hFq, rfl⟩ |
| 40 | let s := Nat.findGreatest P B.card |
| 41 | obtain ⟨q', hq', hFq', hcard⟩ := Nat.findGreatest_spec hn hP |
| 42 | refine ⟨s, Nat.findGreatest_le _, q', hq', hFq', hcard, ?_⟩ |
| 43 | intro r hr hFr |
| 44 | obtain ⟨M, hM, hrM⟩ := Ideal.exists_le_maximal r hr |
| 45 | apply (Finset.card_le_card (activeBoundaryComponents_mono w B hrM)).trans |
| 46 | apply Nat.le_findGreatest (Finset.card_le_card (Finset.filter_subset _ _)) |
| 47 | exact ⟨M, hM, hFr.trans hrM, rfl⟩ |
| 48 | |
| 49 | /-- The closed locus where `F` vanishes on a selected boundary intersection. -/ |
| 50 | def boundaryStratumIdeal (w : σ → R) (F : Ideal R) (A : Finset σ) : Ideal R := |
| 51 | F ⊔ CountReduction.Construction.boundaryIntersectionIdeal w A |
| 52 | |
| 53 | /-- Distinct intersections of maximal cardinality cut out disjoint closed |
| 54 | subschemes of the locus defined by `F`. It suffices to bound closed points. -/ |
| 55 | theorem maximal_boundary_stratum_ideals_comaximal |
| 56 | (w : σ → R) (B A D : Finset σ) (F : Ideal R) (s : ℕ) |
| 57 | (hbound : ∀ q : Ideal R, q.IsMaximal → F ≤ q → |
| 58 | (CountReduction.Construction.activeBoundaryComponents w B q).card ≤ s) |
| 59 | (hAB : A ⊆ B) (hDB : D ⊆ B) (hAcard : A.card = s) (hDcard : D.card = s) |
| 60 | (hAD : A ≠ D) : boundaryStratumIdeal w F A ⊔ boundaryStratumIdeal w F D = ⊤ := by |
| 61 | by_contra hproper |
| 62 | obtain ⟨q, hq, hle⟩ := Ideal.exists_le_maximal _ hproper |
| 63 | have hA : boundaryStratumIdeal w F A ≤ q := le_sup_left.trans hle |
| 64 | have hD : boundaryStratumIdeal w F D ≤ q := le_sup_right.trans hle |
| 65 | have hFq : F ≤ q := le_sup_left.trans hA |
| 66 | have hcount := hbound q hq hFq |
| 67 | have hAa := CountReduction.Construction.maximal_boundary_intersection_eq_active w A B hAB q s hAcard hcount |
| 68 | (le_sup_right.trans hA) |
| 69 | have hDa := CountReduction.Construction.maximal_boundary_intersection_eq_active w D B hDB q s hDcard hcount |
| 70 | (le_sup_right.trans hD) |
| 71 | exact hAD (hAa.trans hDa.symm) |
| 72 | |
| 73 | /-- The maximal boundary strata are disjoint as actual closed subsets of |
| 74 | the prime spectrum, including their non-closed points. -/ |
| 75 | theorem maximal_boundary_strata_disjoint |
| 76 | (w : σ → R) (B A D : Finset σ) (F : Ideal R) (s : ℕ) |
| 77 | (hbound : ∀ q : Ideal R, q.IsMaximal → F ≤ q → |
| 78 | (CountReduction.Construction.activeBoundaryComponents w B q).card ≤ s) |
| 79 | (hAB : A ⊆ B) (hDB : D ⊆ B) (hAcard : A.card = s) (hDcard : D.card = s) |
| 80 | (hAD : A ≠ D) : |
| 81 | Disjoint (PrimeSpectrum.zeroLocus (boundaryStratumIdeal w F A : Set R)) |
| 82 | (PrimeSpectrum.zeroLocus (boundaryStratumIdeal w F D : Set R)) := by |
| 83 | apply Set.disjoint_iff_inter_eq_empty.mpr |
| 84 | rw [← PrimeSpectrum.zeroLocus_sup] |
| 85 | exact PrimeSpectrum.zeroLocus_empty_iff_eq_top.mpr |
| 86 | (maximal_boundary_stratum_ideals_comaximal w B A D F s hbound hAB hDB hAcard hDcard hAD) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | variable {σ K S : Type*} [Field K] [IsAlgClosed K] [CharZero K] [CommRing S] [Finite σ] |
| 91 | [Algebra (MvPolynomial σ K) S] [Algebra.Etale (MvPolynomial σ K) S] |
| 92 | |
| 93 | include σ K in |
| 94 | /-- For the actual differential ideal defining the high-order locus, |
| 95 | the closed boundary strata are precisely the auxiliary marked problems |
| 96 | at every closed point. -/ |
| 97 | theorem etale_boundary_stratum_order_iff |
| 98 | (w : σ → S) (A : Finset σ) (J q : Ideal S) [q.IsMaximal] (m : ℕ) : |
| 99 | boundaryStratumIdeal w (DifferentialIdealTransform.Construction.iteratedDifferentialIdeal J m) A ≤ q ↔ |
| 100 | AuxiliaryIdeal.Construction.boundaryAuxiliaryIdeal J (CountReduction.Construction.boundaryIntersectionIdeal w A) (m + 1) ≤ q ^ (m + 1) := by |
| 101 | classical |
| 102 | let : Fintype σ := Fintype.ofFinite σ |
| 103 | have horder : J ≤ q ^ (m + 1) ↔ DifferentialIdealTransform.Construction.iteratedDifferentialIdeal J m ≤ q := |
| 104 | (ClosedWeightedOrder.Construction.closedPoint_local_order_iff J q (m + 1)).symm.trans |
| 105 | (Blowups.Etale.ClosedOrder.Construction.etale_closedPoint_order_iff_differentialIdeal (σ := σ) (K := K) J q m) |
| 106 | rw [boundaryStratumIdeal, sup_le_iff, |
| 107 | CountReduction.Construction.boundaryAuxiliaryIdeal_prime_order_iff J _ q (m + 1) (Nat.zero_lt_succ m), horder] |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.CountClosedStrata.Construction |