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.Cycles.Functoriality.UnitCap |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.ResidueDegree |
| 3 | |
| 4 | /-! # Birational Degree -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Cycles.Functoriality.BirationalDegree.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 11 | |
| 12 | /-- A morphism agreeing with a dense-open isomorphism sends generic |
| 13 | point to generic point. -/ |
| 14 | theorem genericPoint_of_partialIso |
| 15 | {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 16 | (π : S ⟶ T) (e : S.PartialIso T) |
| 17 | (he : e.source.ι ≫ π = e.iso.hom ≫ e.target.ι) : |
| 18 | π (genericPoint S) = genericPoint T := by |
| 19 | let : Nonempty e.source := e.dense_source.nonempty.to_subtype |
| 20 | let : Nonempty e.target := e.dense_target.nonempty.to_subtype |
| 21 | have hs := genericPoint_eq_of_isOpenImmersion e.source.ι |
| 22 | have ht := genericPoint_eq_of_isOpenImmersion e.target.ι |
| 23 | have hi := genericPoint_eq_of_isOpenImmersion e.iso.hom |
| 24 | exact (congrArg π hs.symm).trans |
| 25 | ((congrArg (fun k : e.source.toScheme ⟶ T => k (genericPoint e.source.toScheme)) he).trans |
| 26 | ((congrArg e.target.ι hi).trans ht)) |
| 27 | |
| 28 | /-- An immersion identifies residue fields, so its residue degree is one. -/ |
| 29 | theorem residueDegree_eq_one_of_immersion {S T : Scheme} |
| 30 | (i : S ⟶ T) [SurjectiveOnStalks i] (x : S) : i.residueDegree x = 1 := by |
| 31 | have h := ResidueDegree.Construction.residueDegree_pre_immersion i (𝟙 T) x |
| 32 | simpa only [Category.comp_id, Scheme.Hom.residueDegree_id] using h |
| 33 | |
| 34 | /-- The generic degree of a morphism agreeing with a dense-open |
| 35 | isomorphism is one, calculated with the actual residue field maps. -/ |
| 36 | theorem residueDegree_of_partialIso |
| 37 | {S T : Scheme} [IsIntegral S] [IsIntegral T] |
| 38 | (π : S ⟶ T) (e : S.PartialIso T) |
| 39 | (he : e.source.ι ≫ π = e.iso.hom ≫ e.target.ι) : |
| 40 | π.residueDegree (genericPoint S) = 1 := by |
| 41 | let : Nonempty e.source := e.dense_source.nonempty.to_subtype |
| 42 | have h := congrArg |
| 43 | (fun k : e.source.toScheme ⟶ T => k.residueDegree (genericPoint e.source.toScheme)) he |
| 44 | rw [ResidueDegree.Construction.residueDegree_pre_immersion, ResidueDegree.Construction.residueDegree_post_immersion, |
| 45 | genericPoint_eq_of_isOpenImmersion] at h |
| 46 | exact h.trans (residueDegree_eq_one_of_immersion e.iso.hom _) |
| 47 | |
| 48 | /-- A genuine resolution morphism maps its source generic point to |
| 49 | the generic point of the prescribed support. -/ |
| 50 | theorem resolves_genericPoint |
| 51 | {R X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} |
| 52 | (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) (g : R.toOver ⟶ X.toOver) (hres : UnitCap.Resolves g Z) : |
| 53 | g.left (genericPoint R.carrier) = Z.genericPoint := by |
| 54 | obtain ⟨π, hπ, _, _, e, he⟩ := hres |
| 55 | have hη := genericPoint_of_partialIso π e he |
| 56 | exact (congrArg (fun k : R.carrier ⟶ X.carrier => k (genericPoint R.carrier)) hπ).symm.trans |
| 57 | ((congrArg Z.inclusion hη).trans Z.inclusion_genericPoint) |
| 58 | |
| 59 | /-- A genuine resolution has generic residue degree one in the ambient target. -/ |
| 60 | theorem resolves_residueDegree |
| 61 | {R X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} |
| 62 | (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport X p) (g : R.toOver ⟶ X.toOver) (hres : UnitCap.Resolves g Z) : |
| 63 | g.left.residueDegree (genericPoint R.carrier) = 1 := by |
| 64 | obtain ⟨π, hπ, _, _, e, he⟩ := hres |
| 65 | have h := residueDegree_of_partialIso π e he |
| 66 | have hc := ResidueDegree.Construction.residueDegree_post_immersion π Z.inclusion (genericPoint R.carrier) |
| 67 | exact (congrArg (fun k : R.carrier ⟶ X.carrier => k.residueDegree (genericPoint R.carrier)) hπ).symm.trans |
| 68 | (hc.trans h) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Cycles.Functoriality.BirationalDegree.Construction |