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.Foundations.Scheme.IntegralProjective |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ClosedProjective |
| 3 | import Mathlib.AlgebraicGeometry.Birational.Birational |
| 4 | |
| 5 | /-! # Resolution Geometry -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.ResolutionGeometry.Construction |
| 8 | |
| 9 | /-! |
| 10 | Supporting geometry for Blowups. This file does not import the statement stub. |
| 11 | The existence of a smooth projective resolution is not yet proved here. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | /-- The smooth locus of an integral projective complex scheme is dense. -/ |
| 17 | theorem smoothLocus_dense |
| 18 | (X : Scheme) (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [IsIntegral X] |
| 19 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) : |
| 20 | letI : LocallyOfFinitePresentation f := P.locallyOfFinitePresentation |
| 21 | Dense (f.smoothLocus : Set X) := by |
| 22 | let : LocallyOfFinitePresentation f := P.locallyOfFinitePresentation |
| 23 | exact f.dense_smoothLocus_of_perfectField |
| 24 | |
| 25 | /-- Restricting the structure map to its smooth locus gives a smooth morphism. -/ |
| 26 | theorem smooth_on_smoothLocus |
| 27 | (X : Scheme) (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 28 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) : |
| 29 | letI : LocallyOfFinitePresentation f := P.locallyOfFinitePresentation |
| 30 | Smooth (f.smoothLocus.ι ≫ f) := by |
| 31 | let : LocallyOfFinitePresentation f := P.locallyOfFinitePresentation |
| 32 | apply Scheme.Hom.smoothLocus_eq_top_iff.mp |
| 33 | rw [← Scheme.Hom.preimage_smoothLocus_eq] |
| 34 | ext x |
| 35 | simp |
| 36 | |
| 37 | /-- A map over the complex base from a projective variety to a projective |
| 38 | scheme is proper. This does not require the map to resolve singularities. -/ |
| 39 | theorem proper_of_projective_over |
| 40 | (X : Scheme) (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 41 | (P : Foundations.Scheme.SmoothProjective.ProjectivePresentation X f) |
| 42 | (R : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (π : R.carrier ⟶ X) |
| 43 | (hπ : π ≫ f = R.structureMap) : IsProper π := by |
| 44 | let : IsProper f := P.isProper |
| 45 | let : IsProper (π ≫ f) := hπ.symm ▸ R.presentation.projective.isProper |
| 46 | exact IsProper.of_comp π f |
| 47 | |
| 48 | /-- An isomorphism over a dense open of the target gives a partial isomorphism |
| 49 | compatible with the original map when the source is irreducible. -/ |
| 50 | theorem partialIso_of_isIso_restriction |
| 51 | {R X : Scheme} [IrreducibleSpace R] [Nonempty X] |
| 52 | (π : R ⟶ X) (U : X.Opens) (hU : Dense (U : Set X)) |
| 53 | [IsIso (π ∣_ U)] : |
| 54 | ∃ e : R.PartialIso X, |
| 55 | e.source.ι ≫ π = e.iso.hom ≫ e.target.ι := by |
| 56 | obtain ⟨x, hx⟩ := hU.nonempty |
| 57 | let r : (π ⁻¹ᵁ U).toScheme := (inv (π ∣_ U)) ⟨x, hx⟩ |
| 58 | have hpre : ((π ⁻¹ᵁ U) : Set R).Nonempty := ⟨r.1, r.2⟩ |
| 59 | refine ⟨{ |
| 60 | source := π ⁻¹ᵁ U |
| 61 | dense_source := (π ⁻¹ᵁ U).isOpen.dense hpre |
| 62 | target := U |
| 63 | dense_target := hU |
| 64 | iso := asIso (π ∣_ U) |
| 65 | }, ?_⟩ |
| 66 | exact (morphismRestrict_ι π U).symm |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Resolution.Blowups.ResolutionGeometry.Construction |