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.IntersectionTheory.ProjectionFormula.FiltrationBaseLength |
| 2 | |
| 3 | /-! # Semilinear Length -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilinearLength |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Module length is invariant under a ring isomorphism and a |
| 10 | compatible semilinear module equivalence. In particular, the length |
| 11 | after base change does not depend on the chosen localization model. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | attribute [local instance] RingHomInvPair.of_ringEquiv |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | theorem length {R S : Type u} [CommRing R] [CommRing S] (σ : R ≃+* S) |
| 24 | {M N : Type u} [AddCommGroup M] [AddCommGroup N] [Module R M] [Module S N] |
| 25 | (e : M ≃ₛₗ[RingHomClass.toRingHom σ] N) : |
| 26 | Module.length R M = Module.length S N := by |
| 27 | apply WithBot.coe_injective |
| 28 | rw [Module.coe_length, Module.coe_length, |
| 29 | Order.krullDim_eq_of_orderIso (Submodule.orderIsoMapComap e)] |
| 30 | |
| 31 | variable (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T] |
| 32 | |
| 33 | def tensorEquiv (e : S ≃ₐ[R] T) (M : ModuleCat.{u} R) : |
| 34 | S ⊗[R] M ≃ₛₗ[RingHomClass.toRingHom e.toRingEquiv] T ⊗[R] M where |
| 35 | toEquiv := (e.toLinearEquiv.rTensor M).toEquiv |
| 36 | map_add' x y := (e.toLinearEquiv.rTensor M).map_add x y |
| 37 | map_smul' a x := by |
| 38 | induction x using TensorProduct.inductionOn with |
| 39 | | tmul b m => |
| 40 | change e (a * b) ⊗ₜ[R] m = e a • (e b ⊗ₜ[R] m) |
| 41 | rw [map_mul, TensorProduct.smul_tmul'] |
| 42 | rfl |
| 43 | | add x y hx hy => |
| 44 | change (e.toLinearEquiv.rTensor M) (a • (x + y)) = |
| 45 | e a • ((e.toLinearEquiv.rTensor M) (x + y)) |
| 46 | simp only [smul_add, map_add] |
| 47 | exact congrArg₂ (· + ·) hx hy |
| 48 | |
| 49 | theorem baseChange_length (e : S ≃ₐ[R] T) (M : ModuleCat.{u} R) : |
| 50 | FiltrationBaseLength.length R S M = FiltrationBaseLength.length R T M := |
| 51 | SemilinearLength.length e.toRingEquiv (tensorEquiv R S T e M) |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilinearLength |