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.RepresentationTheory.Theta.Adelic.QuadraticLocalRingAvoidance |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.QuadraticOrderLift |
| 3 | |
| 4 | /-! # Integral Spectral Avoidance -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Adelic.IntegralSpectralAvoidance |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite scalar family with integral unit differences moves any |
| 11 | integral quadratic matrix into an open cell with integral inverse. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticIntegralCoefficients OAI.RepresentationTheory.Theta.Adelic.QuadraticOrderLift |
| 16 | open OAI.RepresentationTheory.Theta.Adelic.QuadraticLocalRingAvoidance |
| 17 | |
| 18 | variable {k I J : Type*} [Field k] [Fintype I] [Fintype J] [DecidableEq J] |
| 19 | variable (S : Subring k) [IsLocalRing S] (d : k) (hd : d ∈ S) |
| 20 | |
| 21 | theorem integral_spectral_avoidance (A : Matrix J J (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)) |
| 22 | (hA : ∀ i j, A i j ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd) (z : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d) |
| 23 | (hz : ∀ i, z i ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd) |
| 24 | (hdiff : ∀ i j, i ≠ j → ∃ u : (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d)ˣ, u.val = z i - z j ∧ |
| 25 | u.val ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd ∧ u.inv ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd) |
| 26 | (hcard : 2 * Fintype.card J < Fintype.card I) : |
| 27 | ∃ i, ∃ u : (Matrix J J (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ, u.val = Matrix.scalar J (z i) - A ∧ |
| 28 | (∀ i j, u.val i j ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd) ∧ |
| 29 | (∀ i j, u.inv i j ∈ QuadraticIntegralCoefficients.coefficientOrder S d hd) := by |
| 30 | let f := Weil.AdelicSplitting.UnitaryBase.Construction.quadraticBaseChange S.subtype (⟨d, hd⟩ : S) |
| 31 | have hf : Function.Injective f := by |
| 32 | intro x y h |
| 33 | exact QuadraticAlgebra.ext (Subtype.ext (congrArg QuadraticAlgebra.re h)) |
| 34 | (Subtype.ext (congrArg QuadraticAlgebra.im h)) |
| 35 | let A' : Matrix J J (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic S (⟨d, hd⟩ : S)) := fun i j => QuadraticOrderLift.integralElement S d hd (A i j) (hA i j) |
| 36 | let z' : I → Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic S (⟨d, hd⟩ : S) := fun i => QuadraticOrderLift.integralElement S d hd (z i) (hz i) |
| 37 | have hzmap (i : I) : f (z' i) = z i := QuadraticOrderLift.integralElement_map S d hd _ _ |
| 38 | have hAmap : A'.map f = A := by |
| 39 | apply Matrix.ext |
| 40 | intro i j |
| 41 | exact QuadraticOrderLift.integralElement_map S d hd _ _ |
| 42 | have hdu : ∀ i j, i ≠ j → IsUnit (z' i - z' j) := by |
| 43 | intro i j hij |
| 44 | obtain ⟨u, hu, hv, hi⟩ := hdiff i j hij |
| 45 | have he : (QuadraticOrderLift.integralUnit S d hd u hv hi).val = z' i - z' j := by |
| 46 | apply hf |
| 47 | have hmap := congrArg Units.val (QuadraticOrderLift.integralUnit_map S d hd u hv hi) |
| 48 | change f (QuadraticOrderLift.integralUnit S d hd u hv hi).val = u.val at hmap |
| 49 | rw [hmap, map_sub, hzmap, hzmap, hu] |
| 50 | rfl |
| 51 | exact he ▸ (QuadraticOrderLift.integralUnit S d hd u hv hi).isUnit |
| 52 | obtain ⟨i, hi⟩ := QuadraticLocalRingAvoidance.quadratic_local_ring_avoidance (⟨d, hd⟩ : S) A' z' hdu hcard |
| 53 | let u' := hi.unit |
| 54 | let u : (Matrix J J (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic k d))ˣ := Units.map f.mapMatrix.toMonoidHom u' |
| 55 | refine ⟨i, u, ?_, ?_, ?_⟩ |
| 56 | · change u'.val.map f = Matrix.scalar J (z i) - A |
| 57 | rw [show u'.val = Matrix.scalar J (z' i) - A' from hi.unit_spec] |
| 58 | rw [← hAmap, ← hzmap i] |
| 59 | apply Matrix.ext |
| 60 | intro j l |
| 61 | by_cases h : j = l <;> simp [Matrix.map_apply, Matrix.scalar_apply, h] |
| 62 | · exact f.map_sub _ _ |
| 63 | · exact f.map_neg _ |
| 64 | · intro j l |
| 65 | exact (QuadraticOrderLift.orderMap S d hd (u'.val j l)).property |
| 66 | · intro j l |
| 67 | exact (QuadraticOrderLift.orderMap S d hd (u'.inv j l)).property |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.RepresentationTheory.Theta.Adelic.IntegralSpectralAvoidance |