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.HodgeConjecture.CMReduction.ComplexOperations |
| 2 | import OAI.AlgebraicTopology.Products.CupGradedCommutativity |
| 3 | |
| 4 | /-! # Even Algebra -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.EvenAlgebra.CM.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual even-degree cup products form a graded commutative semigroup. |
| 11 | Packing the degree together with the class makes reassociation and |
| 12 | reordering available without losing any of the degree transports. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | open OAI.AlgebraicTopology.Products.CupGradedCommutativity |
| 16 | |
| 17 | variable {R : Type} [CommRing R] (X : TopCat.{0}) |
| 18 | |
| 19 | theorem cohomologyCast_heq {n m : ℕ} (h : n = m) |
| 20 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X n) : |
| 21 | HEq (AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCast (TopCat.toSSet.obj X) (ModuleCat.of R R) h a) a := by |
| 22 | subst m |
| 23 | rfl |
| 24 | |
| 25 | theorem cup_congr_heq {p p' q q' : ℕ} (hp : p = p') (hq : q = q') |
| 26 | {a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X p} |
| 27 | {a' : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X p'} |
| 28 | {b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X q} |
| 29 | {b' : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X q'} (ha : HEq a a') (hb : HEq b b') : |
| 30 | HEq (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X p q a b) (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X p' q' a' b') := by |
| 31 | subst p' |
| 32 | subst q' |
| 33 | cases ha |
| 34 | cases hb |
| 35 | rfl |
| 36 | |
| 37 | theorem evenCup_heq_cup (p q : ℕ) |
| 38 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p)) |
| 39 | (b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (q + q)) : |
| 40 | HEq (ComplexOperations.CM.Construction.evenCup R X p q a b) (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X (p + p) (q + q) a b) := |
| 41 | cohomologyCast_heq (R := R) X (add_add_add_comm p p q q) _ |
| 42 | |
| 43 | theorem cup_assoc_heq (p q r : ℕ) |
| 44 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X p) |
| 45 | (b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X q) |
| 46 | (c : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X r) : |
| 47 | HEq (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X (p + q) r (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X p q a b) c) |
| 48 | (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X p (q + r) a (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X q r b c)) := |
| 49 | (cohomologyCast_heq (R := R) X (Nat.add_assoc p q r) _).symm.trans |
| 50 | (heq_of_eq (AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCup_assoc (R := R) (p := p) (q := q) (r := r) |
| 51 | (TopCat.toSSet.obj X) a b c)) |
| 52 | |
| 53 | theorem evenCup_assoc_heq (p q r : ℕ) |
| 54 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p)) |
| 55 | (b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (q + q)) |
| 56 | (c : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (r + r)) : |
| 57 | HEq (ComplexOperations.CM.Construction.evenCup R X (p + q) r (ComplexOperations.CM.Construction.evenCup R X p q a b) c) |
| 58 | (ComplexOperations.CM.Construction.evenCup R X p (q + r) a (ComplexOperations.CM.Construction.evenCup R X q r b c)) := by |
| 59 | exact (evenCup_heq_cup (R := R) X (p + q) r _ c).trans |
| 60 | ((cup_congr_heq (R := R) X |
| 61 | (p := (p + q) + (p + q)) (p' := (p + p) + (q + q)) |
| 62 | (q := r + r) (q' := r + r) (add_add_add_comm p p q q).symm rfl |
| 63 | (evenCup_heq_cup (R := R) X p q a b) (HEq.rfl)).trans |
| 64 | ((cup_assoc_heq (R := R) X (p + p) (q + q) (r + r) a b c).trans |
| 65 | ((cup_congr_heq (R := R) X |
| 66 | (p := p + p) (p' := p + p) (q := (q + q) + (r + r)) |
| 67 | (q' := (q + r) + (q + r)) rfl (add_add_add_comm q q r r) |
| 68 | (HEq.rfl) (evenCup_heq_cup (R := R) X q r b c).symm).trans |
| 69 | (evenCup_heq_cup (R := R) X p (q + r) a _).symm))) |
| 70 | |
| 71 | theorem evenCup_comm_heq (p q : ℕ) |
| 72 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p)) |
| 73 | (b : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (q + q)) : |
| 74 | HEq (ComplexOperations.CM.Construction.evenCup R X p q a b) (ComplexOperations.CM.Construction.evenCup R X q p b a) := by |
| 75 | have hs : (-1 : R) ^ ((p + p) * (q + q)) = 1 := by |
| 76 | rw [add_mul, pow_add, ← mul_pow] |
| 77 | simp |
| 78 | have hc := AlgebraicTopology.Products.CupGradedCommutativity.singularCohomologyCup_graded_comm (R := R) (p := p + p) (q := q + q) X a b |
| 79 | rw [hs, one_smul] at hc |
| 80 | exact (evenCup_heq_cup (R := R) X p q a b).trans |
| 81 | ((heq_of_eq hc).trans ((cohomologyCast_heq (R := R) X (Nat.add_comm (q + q) (p + p)) |
| 82 | (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X (q + q) (p + p) b a)).trans |
| 83 | (evenCup_heq_cup (R := R) X q p b a).symm)) |
| 84 | |
| 85 | def EvenClass := Σ p : ℕ, AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p) |
| 86 | |
| 87 | theorem evenCup_one_left_heq (p : ℕ) |
| 88 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p)) : |
| 89 | HEq (ComplexOperations.CM.Construction.evenCup R X 0 p (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X) a) a := by |
| 90 | have hcast := cohomologyCast_heq (R := R) X (Nat.zero_add (p + p)) |
| 91 | (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X 0 (p + p) (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X) a) |
| 92 | have hunit := AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCupUnit_cup (R := R) (p := p + p) (TopCat.toSSet.obj X) a |
| 93 | have hcup : HEq |
| 94 | (AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := R) X 0 (p + p) (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X) a) a := |
| 95 | hcast.symm.trans (heq_of_eq hunit) |
| 96 | exact (evenCup_heq_cup (R := R) X 0 p (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X) a).trans hcup |
| 97 | |
| 98 | theorem evenCup_one_right_heq (p : ℕ) |
| 99 | (a : AlgebraicTopology.Cohomology.Singular.Basic.singularCohomology (ModuleCat.of R R) X (p + p)) : |
| 100 | HEq (ComplexOperations.CM.Construction.evenCup R X p 0 a (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X)) a := by |
| 101 | exact (evenCup_heq_cup (R := R) X p 0 a (AlgebraicTopology.Products.CupCohomologyAlgebra.singularCohomologyCupUnit (R := R) X)).trans |
| 102 | (heq_of_eq (AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCup_cupUnit (R := R) (p := p + p) (TopCat.toSSet.obj X) a)) |
| 103 | |
| 104 | instance evenClassCommSemigroup : CommSemigroup (EvenClass (R := R) X) where |
| 105 | mul a b := ⟨a.1 + b.1, ComplexOperations.CM.Construction.evenCup R X a.1 b.1 a.2 b.2⟩ |
| 106 | mul_assoc a b c := Sigma.ext (Nat.add_assoc a.1 b.1 c.1) |
| 107 | (evenCup_assoc_heq (R := R) X a.1 b.1 c.1 a.2 b.2 c.2) |
| 108 | mul_comm a b := Sigma.ext (Nat.add_comm a.1 b.1) (evenCup_comm_heq (R := R) X a.1 b.1 a.2 b.2) |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.EvenAlgebra.CM.Construction |