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 |
| 2 | |
| 3 | /-! # Correspondences -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Correspondences |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Actual algebraic correspondences and their composition by fiber products. |
| 11 | The chain/fiber equivalence is constructed from the pullback universal |
| 12 | property. Neither pointwise convolution nor an Albanese action is assumed. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- A correspondence finite etale over its source, defined over the given base. -/ |
| 20 | structure EtaleCorrespondence {B : Scheme.{u}} (X : Over B) where |
| 21 | cover : Over B |
| 22 | source : cover ⟶ X |
| 23 | target : cover ⟶ X |
| 24 | finite : IsFinite source.left |
| 25 | etale : Etale source.left |
| 26 | |
| 27 | attribute [instance] EtaleCorrespondence.finite EtaleCorrespondence.etale |
| 28 | |
| 29 | namespace EtaleCorrespondence |
| 30 | |
| 31 | variable {B : Scheme.{u}} {X : Over B} |
| 32 | |
| 33 | /-- Composition is the actual scheme-theoretic fiber product. -/ |
| 34 | abbrev comp (C D : EtaleCorrespondence X) : EtaleCorrespondence X where |
| 35 | cover := pullback C.target D.source |
| 36 | source := pullback.fst C.target D.source ≫ C.source |
| 37 | target := pullback.snd C.target D.source ≫ D.target |
| 38 | finite := by |
| 39 | change IsFinite ((pullback.fst C.target D.source).left ≫ C.source.left) |
| 40 | have : IsFinite (pullback.fst C.target D.source).left := by |
| 41 | exact MorphismProperty.of_isPullback (P := @IsFinite) |
| 42 | ((Over.forget B).map_isPullback |
| 43 | (IsPullback.of_hasPullback C.target D.source)).flip D.finite |
| 44 | infer_instance |
| 45 | etale := by |
| 46 | change Etale ((pullback.fst C.target D.source).left ≫ C.source.left) |
| 47 | have : Etale (pullback.fst C.target D.source).left := by |
| 48 | exact MorphismProperty.of_isPullback (P := @Etale) |
| 49 | ((Over.forget B).map_isPullback |
| 50 | (IsPullback.of_hasPullback C.target D.source)).flip D.etale |
| 51 | infer_instance |
| 52 | |
| 53 | /-- A geometric branch retains its source-fiber point, including multiplicity. -/ |
| 54 | abbrev Fiber (C : EtaleCorrespondence X) {T : Over B} (x : T ⟶ X) := |
| 55 | {c : T ⟶ C.cover // c ≫ C.source = x} |
| 56 | |
| 57 | /-- The branch target is induced by the actual target morphism. -/ |
| 58 | abbrev endpoint (C : EtaleCorrespondence X) {T : Over B} {x : T ⟶ X} |
| 59 | (c : C.Fiber x) : T ⟶ X := c.val ≫ C.target |
| 60 | |
| 61 | /-- Composable branches are an explicit dependent pair of geometric points. -/ |
| 62 | abbrev Chain (C D : EtaleCorrespondence X) {T : Over B} (x : T ⟶ X) := |
| 63 | Σ c : C.Fiber x, D.Fiber (C.endpoint c) |
| 64 | |
| 65 | /-- Every branch of the composed cover corresponds to exactly one chain. -/ |
| 66 | def compFiberEquiv (C D : EtaleCorrespondence X) {T : Over B} (x : T ⟶ X) : |
| 67 | (C.comp D).Fiber x ≃ C.Chain D x where |
| 68 | toFun z := |
| 69 | ⟨⟨z.val ≫ pullback.fst C.target D.source, by |
| 70 | simpa only [Category.assoc] using z.property⟩, |
| 71 | ⟨z.val ≫ pullback.snd C.target D.source, by |
| 72 | dsimp [EtaleCorrespondence.endpoint] |
| 73 | rw [Category.assoc, Category.assoc, pullback.condition]⟩⟩ |
| 74 | invFun z := |
| 75 | ⟨pullback.lift z.1.val z.2.val z.2.property.symm, by |
| 76 | dsimp [EtaleCorrespondence.comp] |
| 77 | rw [← Category.assoc, pullback.lift_fst, z.1.property]⟩ |
| 78 | left_inv z := by |
| 79 | apply Subtype.ext |
| 80 | apply pullback.hom_ext |
| 81 | · exact pullback.lift_fst _ _ _ |
| 82 | · exact pullback.lift_snd _ _ _ |
| 83 | right_inv z := by |
| 84 | rcases z with ⟨c, d⟩ |
| 85 | dsimp |
| 86 | have hc : |
| 87 | (⟨pullback.lift c.val d.val d.property.symm ≫ pullback.fst C.target D.source, |
| 88 | (congrArg (fun k => k ≫ C.source) |
| 89 | (pullback.lift_fst c.val d.val d.property.symm)).trans c.property⟩ : |
| 90 | C.Fiber x) = c := by |
| 91 | apply Subtype.ext |
| 92 | exact pullback.lift_fst _ _ _ |
| 93 | apply Sigma.ext hc |
| 94 | apply (Subtype.heq_iff_coe_eq (fun y => by |
| 95 | change (y ≫ D.source = |
| 96 | (pullback.lift c.val d.val d.property.symm ≫ pullback.fst C.target D.source) ≫ |
| 97 | C.target) ↔ y ≫ D.source = c.val ≫ C.target |
| 98 | rw [pullback.lift_fst])).mpr |
| 99 | exact pullback.lift_snd _ _ _ |
| 100 | |
| 101 | /-- The equivalence preserves the final moduli point, not just cardinality. -/ |
| 102 | theorem compFiberEquiv_endpoint (C D : EtaleCorrespondence X) |
| 103 | {T : Over B} (x : T ⟶ X) (z : (C.comp D).Fiber x) : |
| 104 | D.endpoint (C.compFiberEquiv D x z).2 = (C.comp D).endpoint z := by |
| 105 | dsimp [EtaleCorrespondence.compFiberEquiv, EtaleCorrespondence.endpoint, EtaleCorrespondence.comp] |
| 106 | exact Category.assoc _ _ _ |
| 107 | |
| 108 | end EtaleCorrespondence |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Correspondences |