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.AbelianScheme.IsogenyQuotient.Kernel.PairDescent |
| 2 | |
| 3 | /-! # Restricted Kernel Pair Descent -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.RestrictedKernelPairDescent.Construction.KernelPairDescent |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Transport need only be constructed on a class of test objects |
| 10 | containing the source, kernel pair, and triple overlap. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 13 | open _root_.CategoryTheory.Pseudofunctor.LocallyDiscreteOpToCat |
| 14 | |
| 15 | universe u v u' v' |
| 16 | variable {C : Type u} [Category.{v} C] [HasPullbacks C] {X Y : C} (f : X ⟶ Y) |
| 17 | (F : Pseudofunctor (LocallyDiscrete Cᵒᵖ) Cat.{v', u'}) (L : F.obj (.mk (op X))) |
| 18 | (P : C → Prop) |
| 19 | (τ : ∀ {T : C}, P T → ∀ (x y : T ⟶ X), x ≫ f = y ≫ f → (Kernel.PairDescent.Construction.KernelPairDescent.pointObject F L x ⟶ Kernel.PairDescent.Construction.KernelPairDescent.pointObject F L y)) |
| 20 | (hself : ∀ {T : C} (hT : P T) (x : T ⟶ X), τ hT x x rfl = 𝟙 _) |
| 21 | (hcomp : ∀ {T : C} (hT : P T) (x y z : T ⟶ X) (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f), |
| 22 | τ hT x y hxy ≫ τ hT y z hyz = τ hT x z (hxy.trans hyz)) |
| 23 | (hnat : ∀ {T U : C} (hT : P T) (hU : P U) (t : U ⟶ T) (x y : T ⟶ X) |
| 24 | (h : x ≫ f = y ≫ f) (x' y' : U ⟶ X) (hx : t ≫ x = x') (hy : t ≫ y = y') |
| 25 | (h' : x' ≫ f = y' ≫ f), pullHom (τ hT x y h) t x' y' hx hy = τ hU x' y' h') |
| 26 | (hX : P X) (hR : P (Kernel.PairCechMaps.Construction.KernelPairDescent.Relation f)) (hT : P (Kernel.PairCechMaps.Construction.KernelPairDescent.Triple f)) |
| 27 | |
| 28 | def restrictedGluingIso : Kernel.PairDescent.Construction.KernelPairDescent.pointObject F L (pullback.fst f f) ≅ Kernel.PairDescent.Construction.KernelPairDescent.pointObject F L (pullback.snd f f) where |
| 29 | hom := τ hR _ _ pullback.condition |
| 30 | inv := τ hR _ _ pullback.condition.symm |
| 31 | hom_inv_id := (hcomp hR _ _ _ _ _).trans (hself hR _) |
| 32 | inv_hom_id := (hcomp hR _ _ _ _ _).trans (hself hR _) |
| 33 | |
| 34 | def ofRestrictedTransport : Kernel.PairDescent.Construction.KernelPairDescent.Datum f F L where |
| 35 | gluingIso := restrictedGluingIso f F L P τ hself hcomp hR |
| 36 | unit := (hnat hR hX (Kernel.PairCechMaps.Construction.KernelPairDescent.diagonal f) _ _ pullback.condition _ _ (Kernel.PairCechMaps.Construction.KernelPairDescent.diagonal_fst f) (Kernel.PairCechMaps.Construction.KernelPairDescent.diagonal_snd f) rfl).trans |
| 37 | (hself hX (𝟙 X)) |
| 38 | cocycle := by |
| 39 | have h₁ : Kernel.PairCechMaps.Construction.KernelPairDescent.source f ≫ f = Kernel.PairCechMaps.Construction.KernelPairDescent.middle f ≫ f := by |
| 40 | change (Kernel.PairCechMaps.Construction.KernelPairDescent.first f ≫ pullback.fst f f) ≫ f = (Kernel.PairCechMaps.Construction.KernelPairDescent.first f ≫ pullback.snd f f) ≫ f |
| 41 | rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 42 | have h₂ : Kernel.PairCechMaps.Construction.KernelPairDescent.middle f ≫ f = Kernel.PairCechMaps.Construction.KernelPairDescent.target f ≫ f := by |
| 43 | rw [← Kernel.PairCechMaps.Construction.KernelPairDescent.second_middle] |
| 44 | change (Kernel.PairCechMaps.Construction.KernelPairDescent.second f ≫ pullback.fst f f) ≫ f = (Kernel.PairCechMaps.Construction.KernelPairDescent.second f ≫ pullback.snd f f) ≫ f |
| 45 | rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 46 | change pullHom (τ hR _ _ pullback.condition) _ _ _ _ _ ≫ |
| 47 | pullHom (τ hR _ _ pullback.condition) _ _ _ _ _ = |
| 48 | pullHom (τ hR _ _ pullback.condition) _ _ _ _ _ |
| 49 | rw [hnat hR hT (Kernel.PairCechMaps.Construction.KernelPairDescent.first f) _ _ pullback.condition _ _ rfl rfl h₁, |
| 50 | hnat hR hT (Kernel.PairCechMaps.Construction.KernelPairDescent.second f) _ _ pullback.condition _ _ (Kernel.PairCechMaps.Construction.KernelPairDescent.second_middle f) rfl h₂, |
| 51 | hnat hR hT (Kernel.PairCechMaps.Construction.KernelPairDescent.outer f) _ _ pullback.condition _ _ (Kernel.PairCechMaps.Construction.KernelPairDescent.outer_source f) (Kernel.PairCechMaps.Construction.KernelPairDescent.outer_target f) (h₁.trans h₂)] |
| 52 | exact hcomp hT _ _ _ h₁ h₂ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.RestrictedKernelPairDescent.Construction.KernelPairDescent |