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 Mathlib.CategoryTheory.EquivalenceRelation |
| 2 | import Mathlib.AlgebraicGeometry.Restrict |
| 3 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 4 | |
| 5 | /-! # Relation Restriction On -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.RelationRestrictionOn.Construction.RelationRestriction |
| 8 | |
| 9 | /-! |
| 10 | # Restriction of an equivalence relation to an invariant open |
| 11 | |
| 12 | The restricted relation is constructed directly from the original reflexivity, |
| 13 | inverse and composition maps. This construction does not assume that a global |
| 14 | quotient already exists. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | /-- Restrict an internal equivalence relation along a monomorphism, when the |
| 22 | source restriction is cartesian and the target lands in the same subobject. -/ |
| 23 | noncomputable def equivalenceRelation |
| 24 | {C : Type u} [Category.{v} C] {R X R' X' : C} |
| 25 | {s t : R ⟶ X} (e : CategoryTheory.EquivalenceRelation s t) |
| 26 | (i : X' ⟶ X) [Mono i] (j : R' ⟶ R) (s' t' : R' ⟶ X') |
| 27 | (hs : IsPullback s' j i s) (ht : t' ≫ i = j ≫ t) |
| 28 | [HasPullback t' s'] : CategoryTheory.EquivalenceRelation s' t' := by |
| 29 | have hr : 𝟙 X' ≫ i = (i ≫ e.r) ≫ s := by simp [e.reflexivity₁] |
| 30 | have hinv : t' ≫ i = (j ≫ e.s) ≫ s := by simp [e.symmetry₁, ht] |
| 31 | have hcomp : (pullback.fst t' s' ≫ j) ≫ t = (pullback.snd t' s' ≫ j) ≫ s := by |
| 32 | rw [Category.assoc, ← ht, ← Category.assoc, pullback.condition, |
| 33 | Category.assoc, hs.w, ← Category.assoc] |
| 34 | let cm := PullbackCone.IsLimit.lift e.isLimit |
| 35 | (pullback.fst t' s' ≫ j) (pullback.snd t' s' ≫ j) hcomp |
| 36 | have hcm : (pullback.fst t' s' ≫ s') ≫ i = (cm ≫ e.t) ≫ s := by |
| 37 | simpa only [cm, Category.assoc, e.transitivity₁, PullbackCone.IsLimit.lift_fst_assoc] using |
| 38 | congrArg (fun k => pullback.fst t' s' ≫ k) hs.w |
| 39 | let r' := hs.lift (𝟙 X') (i ≫ e.r) hr |
| 40 | let inv' := hs.lift t' (j ≫ e.s) hinv |
| 41 | let comp' := hs.lift (pullback.fst t' s' ≫ s') (cm ≫ e.t) hcm |
| 42 | refine |
| 43 | { r := r' |
| 44 | s := inv' |
| 45 | c := pullback.cone t' s' |
| 46 | isLimit := pullback.isLimit t' s' |
| 47 | t := comp' |
| 48 | right_cancellation := ?_ |
| 49 | reflexivity₁ := ?_ |
| 50 | reflexivity₂ := ?_ |
| 51 | symmetry₁ := ?_ |
| 52 | symmetry₂ := ?_ |
| 53 | transitivity₁ := ?_ |
| 54 | transitivity₂ := ?_ } |
| 55 | · intro T a b h₁ h₂ |
| 56 | apply hs.hom_ext h₁ |
| 57 | apply e.right_cancellation |
| 58 | · simpa only [Category.assoc, ← hs.w] using congrArg (fun k => k ≫ i) h₁ |
| 59 | · simpa only [Category.assoc, ← ht] using congrArg (fun k => k ≫ i) h₂ |
| 60 | · exact hs.lift_fst _ _ _ |
| 61 | · apply (cancel_mono i).mp |
| 62 | simp [r', Category.assoc, ht, e.reflexivity₂] |
| 63 | · exact hs.lift_fst _ _ _ |
| 64 | · apply (cancel_mono i).mp |
| 65 | simp [inv', Category.assoc, ht, e.symmetry₂, ← hs.w] |
| 66 | · exact hs.lift_fst _ _ _ |
| 67 | · apply (cancel_mono i).mp |
| 68 | simp only [Category.assoc, ht, comp', hs.lift_snd_assoc, e.transitivity₂] |
| 69 | rw [← Category.assoc, PullbackCone.IsLimit.lift_snd] |
| 70 | exact Category.assoc _ _ _ |
| 71 | |
| 72 | /-- An invariant open of a scheme with an internal equivalence relation |
| 73 | inherits that equivalence relation. -/ |
| 74 | noncomputable def onOpen |
| 75 | {R X : AlgebraicGeometry.Scheme.{u}} {s t : R ⟶ X} |
| 76 | (e : CategoryTheory.EquivalenceRelation s t) (W : X.Opens) |
| 77 | (hW : s ⁻¹ᵁ W = t ⁻¹ᵁ W) : |
| 78 | CategoryTheory.EquivalenceRelation (AlgebraicGeometry.morphismRestrict s W) |
| 79 | ((R.isoOfEq hW).hom ≫ AlgebraicGeometry.morphismRestrict t W) := |
| 80 | equivalenceRelation e W.ι (s ⁻¹ᵁ W).ι _ _ |
| 81 | (AlgebraicGeometry.isPullback_morphismRestrict s W) (by simp) |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.RelationRestrictionOn.Construction.RelationRestriction |