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.LinearAlgebra.Basis.Basic |
| 2 | import Mathlib.Algebra.Ring.Int.Units |
| 3 | |
| 4 | /-! # Integral Generator Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.IntegralGeneratorChange.Cycles |
| 7 | |
| 8 | /-! |
| 9 | # Changes between integral rank-one normalizations |
| 10 | |
| 11 | Two actual integral linear isomorphisms to the integers specify primitive |
| 12 | generators. Their comparison coefficient is a unit of the integers, hence |
| 13 | one or negative one. This is independent of any choice of a positive |
| 14 | geometric orientation. |
| 15 | -/ |
| 16 | |
| 17 | section |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {H : Type u} [AddCommGroup H] [Module ℤ H] |
| 22 | |
| 23 | /-- The coefficient of the second specified primitive generator in the first |
| 24 | specified integral coordinate system. -/ |
| 25 | def integralGeneratorChange (e e' : H ≃ₗ[ℤ] ℤ) : ℤ := e (e'.symm 1) |
| 26 | |
| 27 | /-- An actual isomorphism with the integers expands every vector in its |
| 28 | specified primitive generator. -/ |
| 29 | theorem integralGenerator_expansion (e : H ≃ₗ[ℤ] ℤ) (x : H) : |
| 30 | x = e x • e.symm 1 := by |
| 31 | apply e.injective |
| 32 | rw [map_zsmul, e.apply_symm_apply] |
| 33 | simp |
| 34 | |
| 35 | /-- The generator change has the stated coefficient, without choosing a |
| 36 | separate basis or an arbitrary nonzero vector. -/ |
| 37 | theorem integralGeneratorChange_generator (e e' : H ≃ₗ[ℤ] ℤ) : |
| 38 | e'.symm 1 = integralGeneratorChange e e' • e.symm 1 := |
| 39 | integralGenerator_expansion e (e'.symm 1) |
| 40 | |
| 41 | /-- The corresponding coordinate functionals have the reciprocal relation. -/ |
| 42 | theorem integralGeneratorChange_apply (e e' : H ≃ₗ[ℤ] ℤ) (x : H) : |
| 43 | e x = integralGeneratorChange e e' * e' x := by |
| 44 | calc |
| 45 | e x = e (e' x • e'.symm 1) := congrArg e (integralGenerator_expansion e' x) |
| 46 | _ = integralGeneratorChange e e' * e' x := by |
| 47 | rw [map_zsmul] |
| 48 | change e' x * e (e'.symm 1) = e (e'.symm 1) * e' x |
| 49 | exact mul_comm _ _ |
| 50 | |
| 51 | theorem integralGeneratorChange_coordinates (e e' : H ≃ₗ[ℤ] ℤ) : |
| 52 | e.toLinearMap = integralGeneratorChange e e' • e'.toLinearMap := by |
| 53 | ext x |
| 54 | exact integralGeneratorChange_apply e e' x |
| 55 | |
| 56 | @[simp] |
| 57 | theorem integralGeneratorChange_self (e : H ≃ₗ[ℤ] ℤ) : |
| 58 | integralGeneratorChange e e = 1 := e.apply_symm_apply 1 |
| 59 | |
| 60 | /-- Reversing the two normalizations supplies an actual multiplicative inverse. -/ |
| 61 | theorem integralGeneratorChange_mul_swap (e e' : H ≃ₗ[ℤ] ℤ) : |
| 62 | integralGeneratorChange e e' * integralGeneratorChange e' e = 1 := by |
| 63 | have h := integralGeneratorChange_apply e e' (e.symm 1) |
| 64 | rw [e.apply_symm_apply] at h |
| 65 | exact h.symm |
| 66 | |
| 67 | /-- Integral primitive-generator changes are units, proved using the inverse |
| 68 | coordinate change rather than a nonzero assumption. -/ |
| 69 | theorem integralGeneratorChange_isUnit (e e' : H ≃ₗ[ℤ] ℤ) : |
| 70 | IsUnit (integralGeneratorChange e e') := |
| 71 | isUnit_iff_exists_inv.mpr |
| 72 | ⟨integralGeneratorChange e' e, integralGeneratorChange_mul_swap e e'⟩ |
| 73 | |
| 74 | theorem integralGeneratorChange_eq_one_or_neg_one (e e' : H ≃ₗ[ℤ] ℤ) : |
| 75 | integralGeneratorChange e e' = 1 ∨ integralGeneratorChange e e' = -1 := |
| 76 | Int.isUnit_eq_one_or (integralGeneratorChange_isUnit e e') |
| 77 | |
| 78 | theorem integralGeneratorChange_ne_zero (e e' : H ≃ₗ[ℤ] ℤ) : |
| 79 | integralGeneratorChange e e' ≠ 0 := |
| 80 | (integralGeneratorChange_isUnit e e').ne_zero |
| 81 | |
| 82 | /-- Successive changes of actual integral normalizations compose multiplicatively. -/ |
| 83 | theorem integralGeneratorChange_comp (e e' e'' : H ≃ₗ[ℤ] ℤ) : |
| 84 | integralGeneratorChange e e'' = |
| 85 | integralGeneratorChange e e' * integralGeneratorChange e' e'' := |
| 86 | integralGeneratorChange_apply e e' (e''.symm 1) |
| 87 | |
| 88 | /-- The two primitive generators are equal or negatives of one another. -/ |
| 89 | theorem integralGenerators_eq_or_eq_neg (e e' : H ≃ₗ[ℤ] ℤ) : |
| 90 | e'.symm 1 = e.symm 1 ∨ e'.symm 1 = -(e.symm 1) := by |
| 91 | rcases integralGeneratorChange_eq_one_or_neg_one e e' with h | h |
| 92 | · exact Or.inl (by simpa only [h, one_smul] using integralGeneratorChange_generator e e') |
| 93 | · exact Or.inr (by simpa only [h, neg_one_zsmul] using integralGeneratorChange_generator e e') |
| 94 | |
| 95 | /-- The integral coordinate functionals likewise differ only by sign. -/ |
| 96 | theorem integralCoordinates_eq_or_eq_neg (e e' : H ≃ₗ[ℤ] ℤ) : |
| 97 | e.toLinearMap = e'.toLinearMap ∨ e.toLinearMap = -e'.toLinearMap := by |
| 98 | rcases integralGeneratorChange_eq_one_or_neg_one e e' with h | h |
| 99 | · exact Or.inl (by simpa only [h, one_smul] using integralGeneratorChange_coordinates e e') |
| 100 | · exact Or.inr (by simpa only [h, neg_one_zsmul] using integralGeneratorChange_coordinates e e') |
| 101 | |
| 102 | end |
| 103 | |
| 104 | universe u |
| 105 | |
| 106 | variable {A : Type u} [AddCommGroup A] |
| 107 | |
| 108 | /-- The same statement for actual additive-group isomorphisms, using their |
| 109 | canonical integral linear structure. -/ |
| 110 | theorem addEquiv_generators_eq_or_eq_neg (e e' : A ≃+ ℤ) : |
| 111 | e'.symm 1 = e.symm 1 ∨ e'.symm 1 = -(e.symm 1) := |
| 112 | integralGenerators_eq_or_eq_neg e.toIntLinearEquiv e'.toIntLinearEquiv |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.CycleClass.Geometric.IntegralGeneratorChange.Cycles |