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.ValuativeCenter |
| 2 | import Mathlib.AlgebraicGeometry.Birational.RationalMap |
| 3 | |
| 4 | /-! # Valuation Extension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ValuationExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A generic map into a proper separated scheme extends across every |
| 11 | valuation-ring stalk. The local lifts spread out and form a rational map |
| 12 | whose domain is the whole source. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open Scheme OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Scheme |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X Y S : Scheme.{u}} [IsIntegral X] |
| 23 | |
| 24 | theorem partialMap_generic_from_stalk (p : X.PartialMap Y) (x : X) (hx : x ∈ p.domain) : |
| 25 | Spec.map (CommRingCat.ofHom (algebraMap (X.presheaf.stalk x) X.functionField)) ≫ |
| 26 | p.fromSpecStalkOfMem hx = p.fromFunctionField := by |
| 27 | unfold PartialMap.fromFunctionField PartialMap.fromSpecStalkOfMem |
| 28 | rw [← Category.assoc] |
| 29 | congr 1 |
| 30 | apply (cancel_mono p.domain.ι).mp |
| 31 | rw [Category.assoc, Opens.fromSpecStalkOfMem_ι, Opens.fromSpecStalkOfMem_ι] |
| 32 | exact Scheme.SpecMap_stalkSpecializes_fromSpecStalk |
| 33 | ((genericPoint_spec X).specializes trivial) |
| 34 | |
| 35 | theorem rationalMap_exists_hom_of_domain_top [Y.IsSeparated] (r : X.RationalMap Y) |
| 36 | (hr : r.domain = ⊤) : ∃ i : X ⟶ Y, i.toRationalMap = r := by |
| 37 | let p := r.toPartialMap |
| 38 | have hp : p.domain = ⊤ := hr |
| 39 | let q := p.restrict ⊤ dense_univ (le_of_eq hp.symm) |
| 40 | let i := X.topIso.inv ≫ q.hom |
| 41 | have hi : i.toPartialMap = q := by |
| 42 | apply PartialMap.ext i.toPartialMap q rfl |
| 43 | simp [Hom.toPartialMap, i] |
| 44 | refine ⟨i, ?_⟩ |
| 45 | change i.toPartialMap.toRationalMap = r |
| 46 | rw [hi, PartialMap.restrict_toRationalMap, RationalMap.toRationalMap_toPartialMap] |
| 47 | |
| 48 | theorem exists_extension [Y.IsSeparated] [S.IsSeparated] |
| 49 | (sX : X ⟶ S) (sY : Y ⟶ S) [IsProper sY] |
| 50 | (φ : Spec X.functionField ⟶ Y) (hφ : φ ≫ sY = Normalization.Scheme.genericMap X ≫ sX) |
| 51 | (hval : ∀ x : X, ValuationRing (X.presheaf.stalk x)) : |
| 52 | ∃ i : X ⟶ Y, Normalization.Scheme.genericMap X ≫ i = φ ∧ i ≫ sY = sX := by |
| 53 | have hp : ValuativeCriterion sY := by |
| 54 | have h : IsProper sY := inferInstance |
| 55 | rw [IsProper.eq_valuativeCriterion] at h |
| 56 | exact h.1.1.1 |
| 57 | let r := RationalMap.ofFunctionField sX sY φ hφ |
| 58 | have hr : r.domain = ⊤ := by |
| 59 | apply top_unique |
| 60 | intro x _ |
| 61 | let := hval x |
| 62 | let sq : ValuativeCommSq sY := |
| 63 | { R := X.presheaf.stalk x |
| 64 | K := X.functionField |
| 65 | i₁ := φ |
| 66 | i₂ := X.fromSpecStalk x ≫ sX |
| 67 | commSq := ⟨by |
| 68 | rw [hφ, ← Category.assoc] |
| 69 | congr 1 |
| 70 | exact (Scheme.SpecMap_stalkSpecializes_fromSpecStalk |
| 71 | ((genericPoint_spec X).specializes trivial)).symm⟩ } |
| 72 | obtain ⟨j, hj₁, hj₂⟩ := (hp.existence sq).exists_lift |
| 73 | let p := PartialMap.ofFromSpecStalk sX sY j hj₂ |
| 74 | have hx : x ∈ p.domain := PartialMap.mem_domain_ofFromSpecStalk sX sY j hj₂ |
| 75 | apply RationalMap.mem_domain.mpr |
| 76 | refine ⟨p, hx, RationalMap.eq_of_fromFunctionField_eq _ _ ?_⟩ |
| 77 | change p.fromFunctionField = r.fromFunctionField |
| 78 | rw [RationalMap.fromFunctionField_ofFunctionField] |
| 79 | rw [← partialMap_generic_from_stalk p x hx, |
| 80 | PartialMap.fromSpecStalkOfMem_ofFromSpecStalk] |
| 81 | exact hj₁ |
| 82 | obtain ⟨i, hi⟩ := rationalMap_exists_hom_of_domain_top r hr |
| 83 | have hgeneric : Normalization.Scheme.genericMap X ≫ i = φ := by |
| 84 | have h := congrArg RationalMap.fromFunctionField hi |
| 85 | change i.toPartialMap.fromFunctionField = r.fromFunctionField at h |
| 86 | rw [RationalMap.fromFunctionField_ofFunctionField] at h |
| 87 | simpa only [Normalization.Scheme.genericMap, PartialMap.fromFunctionField, |
| 88 | PartialMap.fromSpecStalkOfMem_toPartialMap] using h |
| 89 | refine ⟨i, hgeneric, ?_⟩ |
| 90 | exact ext_of_isDominant (ι := Normalization.Scheme.genericMap X) |
| 91 | (by rw [← Category.assoc, hgeneric, hφ]) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ValuationExtension |