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.AlgebraicGeometry.ResidueField |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveFrame.Polynomials |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.IndexedProjectiveFrames |
| 4 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 5 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 6 | |
| 7 | /-! # Frame Open Cover -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FrameOpenCover |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Frame existence on every geometric fiber gives a finite principal |
| 14 | open cover of the base by its actual labeled determinant loci. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped Classical |
| 17 | universe u |
| 18 | |
| 19 | def fieldPointGlobalScalarMap {S : Scheme.{u}} {K : Type u} [Field K] |
| 20 | (f : Spec (.of K) ⟶ S) : Γ(S, ⊤) →+* K := |
| 21 | (Scheme.ΓSpecIso (.of K)).hom.hom.comp f.appTop.hom |
| 22 | |
| 23 | theorem fieldPoint_mem_basicOpen_of_unit {S : Scheme.{u}} {K : Type u} [Field K] |
| 24 | (f : Spec (.of K) ⟶ S) (a : Γ(S, ⊤)) |
| 25 | (ha : IsUnit (fieldPointGlobalScalarMap f a)) : |
| 26 | f (IsLocalRing.closedPoint K) ∈ S.basicOpen a := by |
| 27 | have hunit : IsUnit (f.appTop a) := by |
| 28 | let e := (Scheme.ΓSpecIso (.of K)).commRingCatIsoToRingEquiv |
| 29 | have h := ha.map e.symm.toRingHom |
| 30 | change IsUnit (e.symm (e (f.appTop a))) at h |
| 31 | rwa [e.symm_apply_apply] at h |
| 32 | have hpre : f ⁻¹ᵁ S.basicOpen a = ⊤ := |
| 33 | (f.preimage_basicOpen_top a).trans ((Spec (.of K)).basicOpen_of_isUnit hunit) |
| 34 | exact (show IsLocalRing.closedPoint K ∈ f ⁻¹ᵁ S.basicOpen a from hpre.symm ▸ trivial) |
| 35 | |
| 36 | def labeledFrameOpen {S : Scheme.{u}} {r m : ℕ} |
| 37 | (v : Fin m → Fin r → Γ(S, ⊤)) (a : (Fin r → Fin m) × Fin m) : S.Opens := |
| 38 | S.basicOpen (ProjectiveFrame.Polynomials.labeledFrameDiscriminant a.1 a.2 v) |
| 39 | |
| 40 | theorem geometricFrames_cover_principalOpens {S : Scheme.{u}} {r m : ℕ} |
| 41 | (v : Fin m → Fin r → Γ(S, ⊤)) |
| 42 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] (f : Spec (.of K) ⟶ S), |
| 43 | Finite.IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) |
| 44 | (fun i k => fieldPointGlobalScalarMap f (v i k))) : |
| 45 | ∀ x : S, ∃ a : (Fin r → Fin m) × Fin m, x ∈ labeledFrameOpen v a := by |
| 46 | intro x |
| 47 | let K := AlgebraicClosure (S.residueField x) |
| 48 | let f : Spec (.of K) ⟶ S := |
| 49 | Spec.map (CommRingCat.ofHom (algebraMap (S.residueField x) K)) ≫ S.fromSpecResidueField x |
| 50 | have hf : f (IsLocalRing.closedPoint K) = x := S.fromSpecResidueField_apply x _ |
| 51 | obtain ⟨b, σ, hb, j, hj⟩ := h K f |
| 52 | have hu : IsUnit (fieldPointGlobalScalarMap f (ProjectiveFrame.Polynomials.labeledFrameDiscriminant σ j v)) := by |
| 53 | unfold ProjectiveFrame.Polynomials.labeledFrameDiscriminant |
| 54 | rw [ProjectiveFrame.Polynomials.vectorFrameDiscriminant_map] |
| 55 | apply (ProjectiveFrame.Discriminant.projectiveFrameDiscriminant_isUnit_iff (Pi.basisFun K (Fin r)) _ _).mpr |
| 56 | exact ⟨b, hb, fun k => isUnit_iff_ne_zero.mpr (hj k)⟩ |
| 57 | refine ⟨(σ, j), ?_⟩ |
| 58 | exact hf ▸ fieldPoint_mem_basicOpen_of_unit f _ hu |
| 59 | |
| 60 | def geometricFramePrincipalOpenCover {S : Scheme.{u}} {r m : ℕ} |
| 61 | (v : Fin m → Fin r → Γ(S, ⊤)) |
| 62 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] (f : Spec (.of K) ⟶ S), |
| 63 | Finite.IndexedProjectiveFrames.HasFiniteIndexedProjectiveFrame (K := K) (r := r) |
| 64 | (fun i k => fieldPointGlobalScalarMap f (v i k))) : Scheme.OpenCover.{0} S where |
| 65 | I₀ := (Fin r → Fin m) × Fin m |
| 66 | X a := (labeledFrameOpen v a).toScheme |
| 67 | f a := (labeledFrameOpen v a).ι |
| 68 | mem₀ := by |
| 69 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 70 | refine ⟨fun x => ?_, inferInstance⟩ |
| 71 | obtain ⟨a, ha⟩ := geometricFrames_cover_principalOpens v h x |
| 72 | exact ⟨a, ⟨⟨x, ha⟩, rfl⟩⟩ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FrameOpenCover |