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 Mathlib.RingTheory.Henselian |
| 2 | import Mathlib.RingTheory.Idempotents |
| 3 | import Mathlib.RingTheory.DiscreteValuationRing.Basic |
| 4 | import Mathlib.RingTheory.Localization.FractionRing |
| 5 | import Mathlib.RingTheory.HopfAlgebra.Quotient |
| 6 | import Mathlib.RingTheory.HopfAlgebra.TensorProduct |
| 7 | import Mathlib.RingTheory.Flat.Basic |
| 8 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 9 | |
| 10 | /-! # Components -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Components |
| 13 | |
| 14 | /-! |
| 15 | NeighborCounting component-label bridge. HenselianLifting and SchematicClosure appear as explicit hypotheses |
| 16 | with their stated algebraic meanings. No statement stub is imported. |
| 17 | For an idempotent labeling an open-and-closed component, its restriction |
| 18 | to the subgroup closure vanishes in the special fiber exactly when its |
| 19 | restriction to the generic subgroup vanishes. Thus the set of occupied |
| 20 | component labels is preserved, which does not follow from rank alone. |
| 21 | -/ |
| 22 | |
| 23 | open scoped TensorProduct |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | def IdempotentLiftingInput (R B : Type u) [CommRing R] [IsLocalRing R] |
| 28 | [CommRing B] [Algebra R B] : Prop := |
| 29 | ∀ e₀ : B ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R B), |
| 30 | IsIdempotentElem e₀ → |
| 31 | ∃! e : B, IsIdempotentElem e ∧ |
| 32 | Ideal.Quotient.mk ((IsLocalRing.maximalIdeal R).map (algebraMap R B)) e = e₀ |
| 33 | |
| 34 | theorem idempotent_special_zero_iff |
| 35 | (R B : Type u) [CommRing R] [IsLocalRing R] |
| 36 | [CommRing B] [Algebra R B] |
| 37 | (h_HenselianLifting : IdempotentLiftingInput R B) |
| 38 | (e : B) (he : IsIdempotentElem e) : |
| 39 | Ideal.Quotient.mk ((IsLocalRing.maximalIdeal R).map (algebraMap R B)) e = 0 ↔ |
| 40 | e = 0 := by |
| 41 | constructor |
| 42 | · intro hzero |
| 43 | obtain ⟨a, _, ha⟩ := h_HenselianLifting 0 (by simp [IsIdempotentElem]) |
| 44 | exact (ha e ⟨he, hzero⟩).trans (ha 0 ⟨by simp [IsIdempotentElem], by simp⟩).symm |
| 45 | · rintro rfl |
| 46 | exact map_zero _ |
| 47 | |
| 48 | theorem closure_component_label_preserved |
| 49 | {R K A : Type u} |
| 50 | [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R] |
| 51 | [Field K] [Algebra R K] [IsFractionRing R K] |
| 52 | [CommRing A] [HopfAlgebra R A] |
| 53 | [Module.Finite R A] [Module.Flat R A] |
| 54 | (I : Ideal (K ⊗[R] A)) [Ideal.IsHopfIdeal K I] |
| 55 | (h_HenselianLifting : ∀ (B : Type u) [CommRing B] [Algebra R B] [Module.Finite R B], |
| 56 | IdempotentLiftingInput R B) |
| 57 | (h_SchematicClosure : |
| 58 | let ι : A →+* K ⊗[R] A := Algebra.TensorProduct.includeRight.toRingHom |
| 59 | let J : Ideal A := Ideal.comap ι I |
| 60 | Ideal.IsHopfIdeal R J ∧ |
| 61 | Module.Finite R (A ⧸ J) ∧ |
| 62 | Module.Flat R (A ⧸ J) ∧ |
| 63 | Ideal.map ι J = I ∧ |
| 64 | Module.finrank R (A ⧸ J) = Module.finrank K ((K ⊗[R] A) ⧸ I)) |
| 65 | (e : A) (he : IsIdempotentElem e) : |
| 66 | let ι : A →+* K ⊗[R] A := Algebra.TensorProduct.includeRight.toRingHom |
| 67 | let J : Ideal A := Ideal.comap ι I |
| 68 | let B := A ⧸ J |
| 69 | Ideal.Quotient.mk ((IsLocalRing.maximalIdeal R).map (algebraMap R B)) |
| 70 | (Ideal.Quotient.mk J e) = 0 ↔ |
| 71 | Ideal.Quotient.mk I (ι e) = 0 := by |
| 72 | let ι : A →+* K ⊗[R] A := Algebra.TensorProduct.includeRight.toRingHom |
| 73 | let J : Ideal A := Ideal.comap ι I |
| 74 | let B := A ⧸ J |
| 75 | have hfinite : Module.Finite R B := h_SchematicClosure.2.1 |
| 76 | let := hfinite |
| 77 | change |
| 78 | Ideal.Quotient.mk ((IsLocalRing.maximalIdeal R).map (algebraMap R B)) |
| 79 | (Ideal.Quotient.mk J e) = 0 ↔ |
| 80 | Ideal.Quotient.mk I (ι e) = 0 |
| 81 | rw [idempotent_special_zero_iff R B (h_HenselianLifting B) _ (he.map (Ideal.Quotient.mk J))] |
| 82 | rw [Ideal.Quotient.eq_zero_iff_mem, Ideal.Quotient.eq_zero_iff_mem] |
| 83 | rfl |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Components |