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.InvariantOpensEq |
| 2 | |
| 3 | /-! # Quotient Transitions Open -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.QuotientTransitionsOpen.Construction.QuotientTransitions |
| 6 | |
| 7 | /-! |
| 8 | # Canonical open transitions between local quotients |
| 9 | |
| 10 | An open immersion of object charts that restricts the source of the relation |
| 11 | induces a unique open immersion of quotient charts. Its square is cartesian. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {R X Q R' X' Q' : Scheme.{u}} {s t : R ⟶ X} |
| 19 | (q : X ⟶ Q) (hk : IsKernelPair q s t) |
| 20 | (i : X' ⟶ X) [IsOpenImmersion i] (j : R' ⟶ R) (s' t' : R' ⟶ X') |
| 21 | (hs : IsPullback s' j i s) (ht : t' ≫ i = j ≫ t) |
| 22 | |
| 23 | include hk hs ht |
| 24 | |
| 25 | /-- If the target of a source-restricted relation remains in an open chart, |
| 26 | that chart is invariant under the entire equivalence relation. -/ |
| 27 | theorem opensRange_invariant : s ⁻¹ᵁ i.opensRange = t ⁻¹ᵁ i.opensRange := by |
| 28 | have forward (r : R) (hr : s r ∈ Set.range i) : t r ∈ Set.range i := by |
| 29 | obtain ⟨x, hx⟩ := hr |
| 30 | obtain ⟨r', _, hj⟩ := Scheme.exists_preimage_of_isPullback hs x r hx |
| 31 | refine ⟨t' r', ?_⟩ |
| 32 | rw [← Scheme.Hom.comp_apply, ht, Scheme.Hom.comp_apply, hj] |
| 33 | let invR := hk.lift t s hk.w.symm |
| 34 | have hinvs (r : R) : s (invR r) = t r := |
| 35 | congrArg (fun f => f r) (hk.lift_fst t s hk.w.symm) |
| 36 | have hinvt (r : R) : t (invR r) = s r := |
| 37 | congrArg (fun f => f r) (hk.lift_snd t s hk.w.symm) |
| 38 | ext r |
| 39 | change s r ∈ Set.range i ↔ t r ∈ Set.range i |
| 40 | refine ⟨forward r, fun hr => ?_⟩ |
| 41 | simpa only [hinvt] using forward (invR r) (by simpa only [hinvs] using hr) |
| 42 | |
| 43 | variable [Flat q] [QuasiCompact q] [Surjective q] |
| 44 | |
| 45 | /-- An effective quotient of an invariant open relation embeds openly in the |
| 46 | larger quotient. Both the transition and its cartesian property are derived |
| 47 | from the local kernel pairs. -/ |
| 48 | theorem existsUnique_open_transition (q' : X' ⟶ Q') [EffectiveEpi q'] |
| 49 | (hk' : IsKernelPair q' s' t') : |
| 50 | ∃! f : Q' ⟶ Q, |
| 51 | q' ≫ f = i ≫ q ∧ IsOpenImmersion f ∧ IsPullback q' i f q := by |
| 52 | let W := i.opensRange |
| 53 | have hW : s ⁻¹ᵁ W = t ⁻¹ᵁ W := opensRange_invariant q hk i j s' t' hs ht |
| 54 | let D := InvariantOpensEq.Construction.InvariantOpens.descend q hk W hW |
| 55 | let q₀ : X' ⟶ D.toScheme := i.isoOpensRange.hom ≫ |
| 56 | InvariantOpensEq.Construction.InvariantOpens.restrictProjection q hk W hW |
| 57 | have hc : IsPullback q₀ i D.ι q := by |
| 58 | refine (InvariantOpensEq.Construction.InvariantOpens.restrictProjection_isPullback q hk W hW).of_iso |
| 59 | i.isoOpensRange.symm (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 60 | ?_ ?_ (by simp [D]) (by simp) |
| 61 | · simp [q₀] |
| 62 | · simp [W] |
| 63 | have hk₀ : IsKernelPair q₀ s' t' := by |
| 64 | have hlarge : IsPullback s' (t' ≫ i) (q₀ ≫ D.ι) q := by |
| 65 | rw [ht, hc.w] |
| 66 | exact hs.paste_vert hk |
| 67 | apply IsPullback.of_bot hlarge _ hc |
| 68 | apply (cancel_mono D.ι).mp |
| 69 | simp only [Category.assoc, hc.w] |
| 70 | rw [← Category.assoc, hs.w, Category.assoc, hk.w, ← Category.assoc, ← ht, Category.assoc] |
| 71 | have : EffectiveEpi q₀ := by dsimp [q₀]; infer_instance |
| 72 | obtain ⟨e, he, _⟩ := Quotient.Construction.QuotientDescent.existsUnique_iso q' q₀ hk' hk₀ |
| 73 | let f := e.hom ≫ D.ι |
| 74 | have hf : q' ≫ f = i ≫ q := by |
| 75 | rw [show f = e.hom ≫ D.ι from rfl, ← Category.assoc, he, hc.w] |
| 76 | have hpb : IsPullback q' i f q := by |
| 77 | refine hc.of_iso (Iso.refl _) e.symm (Iso.refl _) (Iso.refl _) |
| 78 | ?_ (by simp) ?_ (by simp) |
| 79 | · simp [← he] |
| 80 | · simp [f] |
| 81 | refine ⟨f, ⟨hf, inferInstance, hpb⟩, ?_⟩ |
| 82 | intro f' hf' |
| 83 | exact (cancel_epi q').mp (hf'.1.trans hf.symm) |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.QuotientTransitionsOpen.Construction.QuotientTransitions |