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 | /-! # Coordinate Blocks -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.CoordinateBlocks |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A coordinate idempotent in a split product ring has one free |
| 10 | coordinate in each copy of the coefficient module. These are actual |
| 11 | fixed-point equivalences, suitable for cardinal computations. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | def scalarFixedEquiv {R M P : Type*} [CommRing R] |
| 16 | [AddCommGroup M] [Module R M] [AddCommGroup P] [Module R P] |
| 17 | (e : M ≃ₗ[R] P) (a : R) : |
| 18 | {x : M // a • x = x} ≃ {x : P // a • x = x} where |
| 19 | toFun x := ⟨e x.val, by rw [← e.map_smul, x.property]⟩ |
| 20 | invFun x := ⟨e.symm x.val, by rw [← e.symm.map_smul, x.property]⟩ |
| 21 | left_inv x := Subtype.ext (e.symm_apply_apply x.val) |
| 22 | right_inv x := Subtype.ext (e.apply_symm_apply x.val) |
| 23 | |
| 24 | def coordinateBlockEquiv {A B I T : Type*} [CommRing A] [CommRing B] |
| 25 | (e : A ≃+* (T → B)) (a : A) (t : T) (ha : e a = Pi.single t 1) : |
| 26 | {x : I → A // ∀ i, a * x i = x i} ≃ (I → B) where |
| 27 | toFun x i := e (x.val i) t |
| 28 | invFun y := ⟨fun i => e.symm (Pi.single t (y i)), by |
| 29 | intro i |
| 30 | apply e.injective |
| 31 | rw [map_mul, ha, e.apply_symm_apply] |
| 32 | ext u |
| 33 | by_cases hu : u = t |
| 34 | · subst u |
| 35 | simp |
| 36 | · simp [Pi.single_eq_of_ne hu]⟩ |
| 37 | left_inv x := by |
| 38 | apply Subtype.ext |
| 39 | funext i |
| 40 | apply e.injective |
| 41 | rw [e.apply_symm_apply] |
| 42 | ext u |
| 43 | by_cases hu : u = t |
| 44 | · subst u |
| 45 | simp |
| 46 | · have hx := congrFun (congrArg e (x.property i)) u |
| 47 | rw [map_mul, ha] at hx |
| 48 | simpa [Pi.single_eq_of_ne hu] using hx |
| 49 | right_inv y := by |
| 50 | funext i |
| 51 | simp |
| 52 | |
| 53 | theorem coordinateBlock_card {A B I T : Type*} [CommRing A] [CommRing B] |
| 54 | (e : A ≃+* (T → B)) (a : A) (t : T) (ha : e a = Pi.single t 1) : |
| 55 | Nat.card {x : I → A // ∀ i, a * x i = x i} = Nat.card (I → B) := |
| 56 | Nat.card_congr (coordinateBlockEquiv e a t ha) |
| 57 | |
| 58 | def quotientCoordinateBlockEquiv {R B I T : Type*} [CommRing R] [CommRing B] |
| 59 | (J : Ideal R) (e : (R ⧸ J) ≃+* (T → B)) (a : R) (t : T) |
| 60 | (ha : e (Ideal.Quotient.mk J a) = Pi.single t 1) : |
| 61 | {x : I → R ⧸ J // a • x = x} ≃ (I → B) := |
| 62 | (Equiv.subtypeEquivRight (fun x => show a • x = x ↔ |
| 63 | ∀ i, Ideal.Quotient.mk J a * x i = x i from by |
| 64 | constructor |
| 65 | · intro h i |
| 66 | exact congrFun h i |
| 67 | · intro h |
| 68 | exact funext h)).trans |
| 69 | (coordinateBlockEquiv e (Ideal.Quotient.mk J a) t ha) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.CoordinateBlocks |