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.CountClosedStrata |
| 2 | import Mathlib.RingTheory.Localization.Away.Basic |
| 3 | import Mathlib.Data.Finset.Powerset |
| 4 | |
| 5 | /-! # Stratum Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.StratumNeighborhood.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual principal affine opens isolating an entire maximal boundary stratum. -/ |
| 12 | |
| 13 | variable {R ι : Type*} [CommRing R] |
| 14 | |
| 15 | /-- A finite family of ideals comaximal with `I` can simultaneously be |
| 16 | made unit on one principal open containing the entire closed locus of `I`. -/ |
| 17 | theorem exists_principal_open_separating_ideals |
| 18 | (I : Ideal R) (D : Finset ι) (J : ι → Ideal R) |
| 19 | (hcoprime : ∀ d ∈ D, I ⊔ J d = ⊤) : |
| 20 | ∃ f : R, 1 - f ∈ I ∧ (∀ d ∈ D, f ∈ J d) ∧ |
| 21 | (∀ q : Ideal R, q ≠ ⊤ → I ≤ q → f ∉ q) ∧ |
| 22 | ∀ d ∈ D, (J d).map (algebraMap R (Localization.Away f)) = ⊤ := by |
| 23 | classical |
| 24 | have hsup : I ⊔ ∏ d ∈ D, J d = ⊤ := Ideal.sup_prod_eq_top hcoprime |
| 25 | have hone : (1 : R) ∈ I ⊔ ∏ d ∈ D, J d := by rw [hsup]; trivial |
| 26 | obtain ⟨a, ha, f, hf, haf⟩ := Submodule.mem_sup.mp hone |
| 27 | have hsub : 1 - f ∈ I := by rw [← haf, add_sub_cancel_right]; exact ha |
| 28 | have hmem : ∀ d ∈ D, f ∈ J d := by |
| 29 | intro d hd |
| 30 | exact ((Ideal.prod_le_inf (s := D) (f := J)).trans (Finset.inf_le hd)) hf |
| 31 | refine ⟨f, hsub, hmem, ?_, ?_⟩ |
| 32 | · intro q hq hIq hfq |
| 33 | have h1 : (1 : R) ∈ q := by |
| 34 | simpa only [sub_add_cancel] using q.add_mem (hIq hsub) hfq |
| 35 | exact hq (Ideal.eq_top_of_isUnit_mem q h1 isUnit_one) |
| 36 | · intro d hd |
| 37 | exact Ideal.eq_top_of_isUnit_mem _ (Ideal.mem_map_of_mem _ (hmem d hd)) |
| 38 | (IsLocalization.Away.algebraMap_isUnit f) |
| 39 | |
| 40 | variable {σ : Type*} [DecidableEq σ] |
| 41 | |
| 42 | /-- The actual affine neighborhood contains every point of one maximal |
| 43 | boundary stratum and clears the ideals of every other maximal stratum. -/ |
| 44 | theorem exists_maximal_boundary_stratum_neighborhood |
| 45 | (w : σ → R) (B A : Finset σ) (F : Ideal R) (s : ℕ) |
| 46 | (hbound : ∀ q : Ideal R, q.IsMaximal → F ≤ q → |
| 47 | (CountReduction.Construction.activeBoundaryComponents w B q).card ≤ s) |
| 48 | (hAB : A ⊆ B) (hAcard : A.card = s) : |
| 49 | ∃ f : R, 1 - f ∈ CountClosedStrata.Construction.boundaryStratumIdeal w F A ∧ |
| 50 | (∀ q : Ideal R, q ≠ ⊤ → CountClosedStrata.Construction.boundaryStratumIdeal w F A ≤ q → f ∉ q) ∧ |
| 51 | ∀ D ⊆ B, D.card = s → D ≠ A → |
| 52 | (CountClosedStrata.Construction.boundaryStratumIdeal w F D).map (algebraMap R (Localization.Away f)) = ⊤ := by |
| 53 | classical |
| 54 | let D := (B.powersetCard s).erase A |
| 55 | have hcoprime : ∀ d ∈ D, CountClosedStrata.Construction.boundaryStratumIdeal w F A ⊔ CountClosedStrata.Construction.boundaryStratumIdeal w F d = ⊤ := by |
| 56 | intro d hd |
| 57 | obtain ⟨hdA, hdB⟩ := Finset.mem_erase.mp hd |
| 58 | obtain ⟨hdB, hdcard⟩ := Finset.mem_powersetCard.mp hdB |
| 59 | exact CountClosedStrata.Construction.maximal_boundary_stratum_ideals_comaximal w B A d F s hbound hAB hdB |
| 60 | hAcard hdcard (Ne.symm hdA) |
| 61 | obtain ⟨f, hf, _, hpoints, hunit⟩ := exists_principal_open_separating_ideals |
| 62 | (CountClosedStrata.Construction.boundaryStratumIdeal w F A) D (CountClosedStrata.Construction.boundaryStratumIdeal w F) hcoprime |
| 63 | refine ⟨f, hf, hpoints, ?_⟩ |
| 64 | intro d hdB hdcard hdA |
| 65 | exact hunit d (Finset.mem_erase.mpr ⟨hdA, Finset.mem_powersetCard.mpr ⟨hdB, hdcard⟩⟩) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.Resolution.Blowups.Boundary.StratumNeighborhood.Construction |