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.Quotients.FiniteDescent.GenericLift |
| 2 | |
| 3 | /-! # Dense Open -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.DenseOpen.Construction.DenseOpenFactorization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Equalities on a dense graph extend to chart relations on its reduced closure. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem factor {Z X Q W : Scheme.{u}} [IsReduced Z] [Q.IsSeparated] |
| 16 | (q : Z ⟶ X) (b : Z ⟶ Q) (U : X.Opens) (c : U.toScheme ⟶ Q) |
| 17 | (j : W ⟶ Z) [IsDominant j] (w : W ⟶ U.toScheme) |
| 18 | (hj : j ≫ q = w ≫ U.ι) (hb : j ≫ b = w ≫ c) : |
| 19 | q ∣_ U ≫ c = (q ⁻¹ᵁ U).ι ≫ b := by |
| 20 | have hr : Set.range j ⊆ Set.range (q ⁻¹ᵁ U).ι := by |
| 21 | rintro _ ⟨x, rfl⟩ |
| 22 | refine ⟨⟨j x, ?_⟩, rfl⟩ |
| 23 | change q (j x) ∈ U |
| 24 | have he := congrArg (fun f : W ⟶ X => f x) hj |
| 25 | exact he ▸ (w x).2 |
| 26 | let a := IsOpenImmersion.lift (q ⁻¹ᵁ U).ι j hr |
| 27 | have ha : a ≫ q ∣_ U = w := by |
| 28 | apply (cancel_mono U.ι).mp |
| 29 | rw [Category.assoc, morphismRestrict_ι, ← Category.assoc, |
| 30 | IsOpenImmersion.lift_fac, hj] |
| 31 | have : IsDominant a := GenericLift.Construction.GenericLiftRestriction.dominant_lift _ _ hr |
| 32 | apply ext_of_isDominant_of_isSeparated (terminal.from Q) (Subsingleton.elim _ _) a |
| 33 | rw [← Category.assoc, ha, ← Category.assoc, IsOpenImmersion.lift_fac, hb] |
| 34 | |
| 35 | theorem preimage_eq {Z X Q W : Scheme.{u}} [IsReduced Z] [X.IsSeparated] [Q.IsSeparated] |
| 36 | (q : Z ⟶ X) (b : Z ⟶ Q) (U : X.Opens) (c : U.toScheme ⟶ Q) [IsOpenImmersion c] |
| 37 | (j : W ⟶ Z) [IsDominant j] (w : W ⟶ U.toScheme) |
| 38 | (hj : j ≫ q = w ≫ U.ι) (hb : j ≫ b = w ≫ c) : |
| 39 | q ⁻¹ᵁ U = b ⁻¹ᵁ c.opensRange := by |
| 40 | let e : U.toScheme ≅ c.opensRange.toScheme := |
| 41 | IsOpenImmersion.isoOfRangeEq c c.opensRange.ι (by simp) |
| 42 | have he : e.hom ≫ c.opensRange.ι = c := IsOpenImmersion.isoOfRangeEq_hom_fac _ _ _ |
| 43 | have hw : j ≫ b = (w ≫ e.hom) ≫ c.opensRange.ι := by rw [Category.assoc, he, hb] |
| 44 | have hw' : j ≫ q = (w ≫ e.hom) ≫ e.inv ≫ U.ι := by |
| 45 | rw [Category.assoc, Iso.hom_inv_id_assoc, hj] |
| 46 | have h₁ := factor q b U c j w hj hb |
| 47 | have h₂ := factor b q c.opensRange (e.inv ≫ U.ι) j (w ≫ e.hom) hw hw' |
| 48 | apply le_antisymm |
| 49 | · intro z hz |
| 50 | let z' : (q ⁻¹ᵁ U).toScheme := ⟨z, hz⟩ |
| 51 | have h := congrArg (fun f : (q ⁻¹ᵁ U).toScheme ⟶ Q => f z') h₁ |
| 52 | change b z ∈ Set.range c |
| 53 | exact ⟨(q ∣_ U) z', h⟩ |
| 54 | · intro z hz |
| 55 | let z' : (b ⁻¹ᵁ c.opensRange).toScheme := ⟨z, hz⟩ |
| 56 | have h := congrArg (fun f : (b ⁻¹ᵁ c.opensRange).toScheme ⟶ X => f z') h₂ |
| 57 | change q z ∈ U |
| 58 | change U.ι (e.inv ((b ∣_ c.opensRange) z')) = q z at h |
| 59 | exact h ▸ (e.inv ((b ∣_ c.opensRange) z')).2 |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.DenseOpen.Construction.DenseOpenFactorization |