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.HeckeCycles.PrimePowerProjectors |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps |
| 3 | import Mathlib.Algebra.Module.ZMod |
| 4 | import Mathlib.LinearAlgebra.Dimension.Free |
| 5 | |
| 6 | /-! # Idempotent Coordinate Group -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.IdempotentCoordinateGroup.CM |
| 13 | |
| 14 | /-! The fixed subgroup of an actual idempotent on standard prime-power |
| 15 | torsion has standard free coordinates, with a rank to be determined by |
| 16 | the geometric height and Lie signature. -/ |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion |
| 19 | |
| 20 | variable (q n g : ℕ) (f : TorsionCoordinateMaps.CM.Criterion.coordinates q n g →* TorsionCoordinateMaps.CM.Criterion.coordinates q n g) |
| 21 | |
| 22 | def additiveMap : (Fin g → ZMod (q ^ n)) →+ (Fin g → ZMod (q ^ n)) where |
| 23 | toFun x := (f (Multiplicative.ofAdd x)).toAdd |
| 24 | map_zero' := congrArg Multiplicative.toAdd (map_one f) |
| 25 | map_add' x y := congrArg Multiplicative.toAdd |
| 26 | (map_mul f (Multiplicative.ofAdd x) (Multiplicative.ofAdd y)) |
| 27 | |
| 28 | def linearMap : Module.End (ZMod (q ^ n)) (Fin g → ZMod (q ^ n)) := |
| 29 | (additiveMap q n g f).toZModLinearMap (q ^ n) |
| 30 | |
| 31 | theorem linearMap_idempotent (hf : ∀ x, f (f x) = f x) : |
| 32 | linearMap q n g f * linearMap q n g f = linearMap q n g f := by |
| 33 | apply LinearMap.ext |
| 34 | intro x |
| 35 | exact congrArg (fun z => z.toAdd) (hf (Multiplicative.ofAdd x)) |
| 36 | |
| 37 | def fixedRangeEquiv (hf : ∀ x, f (f x) = f x) : |
| 38 | f.eqLocus (MonoidHom.id _) ≃* Multiplicative (linearMap q n g f).range where |
| 39 | toFun x := Multiplicative.ofAdd ⟨x.val.toAdd, ⟨x.val.toAdd, |
| 40 | congrArg Multiplicative.toAdd x.property⟩⟩ |
| 41 | invFun x := ⟨Multiplicative.ofAdd x.toAdd.val, by |
| 42 | obtain ⟨y, hy⟩ := x.toAdd.property |
| 43 | change f (Multiplicative.ofAdd x.toAdd.val) = Multiplicative.ofAdd x.toAdd.val |
| 44 | rw [← hy] |
| 45 | exact hf (Multiplicative.ofAdd y)⟩ |
| 46 | left_inv _ := rfl |
| 47 | right_inv _ := rfl |
| 48 | map_mul' _ _ := rfl |
| 49 | |
| 50 | theorem exists_fixed_coordinates [Fact q.Prime] (r : ℕ) |
| 51 | (a : TorsionCoordinateMaps.CM.Criterion.coordinates q (n + 1) r →* TorsionCoordinateMaps.CM.Criterion.coordinates q (n + 1) r) |
| 52 | (ha : ∀ x, a (a x) = a x) : |
| 53 | ∃ d : ℕ, Nonempty (a.eqLocus (MonoidHom.id _) ≃* TorsionCoordinateMaps.CM.Criterion.coordinates q (n + 1) d) := by |
| 54 | let p := linearMap q (n + 1) r a |
| 55 | let : Fact (1 < q ^ (n + 1)) := ⟨one_lt_pow' (Fact.out : q.Prime).one_lt (Nat.succ_ne_zero n)⟩ |
| 56 | let : Module.Free (ZMod (q ^ (n + 1))) p.range := |
| 57 | PrimePowerProjectors.CM.projector_range_free q n r p (linearMap_idempotent q (n + 1) r a ha) |
| 58 | let e := (Module.finBasis (ZMod (q ^ (n + 1))) p.range).equivFun |
| 59 | exact ⟨Module.finrank (ZMod (q ^ (n + 1))) p.range, |
| 60 | ⟨(fixedRangeEquiv q (n + 1) r a ha).trans e.toAddEquiv.toMultiplicative⟩⟩ |
| 61 | |
| 62 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.IdempotentCoordinateGroup.CM |
| 63 | |
| 64 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.IdempotentCoordinateGroup.CM.RetractCoordinates |
| 65 | |
| 66 | /-! An actual group retract of free prime-power torsion has standard |
| 67 | coordinates. Its idempotent and its fixed subgroup are constructed from |
| 68 | the given inclusion and retraction. -/ |
| 69 | |
| 70 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TorsionCoordinateMaps.CM.Criterion |
| 71 | |
| 72 | variable {A B : Type*} [CommGroup A] [CommGroup B] |
| 73 | (r : A →* B) (s : B →* A) (hrs : ∀ b, r (s b) = b) |
| 74 | (q n g : ℕ) (e : A ≃* TorsionCoordinateMaps.CM.Criterion.coordinates q n g) |
| 75 | |
| 76 | def projector : TorsionCoordinateMaps.CM.Criterion.coordinates q n g →* TorsionCoordinateMaps.CM.Criterion.coordinates q n g := |
| 77 | e.toMonoidHom.comp (s.comp (r.comp e.symm.toMonoidHom)) |
| 78 | |
| 79 | include hrs in |
| 80 | theorem projector_idempotent (x : TorsionCoordinateMaps.CM.Criterion.coordinates q n g) : |
| 81 | projector r s q n g e (projector r s q n g e x) = projector r s q n g e x := by |
| 82 | change e (s (r (e.symm (e (s (r (e.symm x))))))) = e (s (r (e.symm x))) |
| 83 | rw [e.symm_apply_apply, hrs] |
| 84 | |
| 85 | def fixedEquiv : B ≃* (projector r s q n g e).eqLocus (MonoidHom.id _) where |
| 86 | toFun b := ⟨e (s b), by |
| 87 | change e (s (r (e.symm (e (s b))))) = e (s b) |
| 88 | rw [e.symm_apply_apply, hrs]⟩ |
| 89 | invFun x := r (e.symm x.val) |
| 90 | left_inv b := by change r (e.symm (e (s b))) = b; rw [e.symm_apply_apply, hrs] |
| 91 | right_inv x := Subtype.ext x.property |
| 92 | map_mul' x y := Subtype.ext (by change e (s (x * y)) = e (s x) * e (s y); rw [map_mul, map_mul]) |
| 93 | |
| 94 | include hrs in |
| 95 | theorem exists_coordinates [Fact q.Prime] (m : ℕ) |
| 96 | (c : A ≃* TorsionCoordinateMaps.CM.Criterion.coordinates q (m + 1) g) : |
| 97 | ∃ d : ℕ, Nonempty (B ≃* TorsionCoordinateMaps.CM.Criterion.coordinates q (m + 1) d) := by |
| 98 | obtain ⟨d, ⟨a⟩⟩ := exists_fixed_coordinates q m g |
| 99 | (projector r s q (m + 1) g c) (projector_idempotent r s hrs q (m + 1) g c) |
| 100 | exact ⟨d, ⟨(fixedEquiv r s hrs q (m + 1) g c).trans a⟩⟩ |
| 101 | |
| 102 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.IdempotentCoordinateGroup.CM.RetractCoordinates |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI |