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 | /- |
| 2 | Copyright (c) 2025 Antoine Chambert-Loir. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Antoine Chambert-Loir |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.RingTheory.Localization.BaseChange |
| 8 | import Mathlib.RingTheory.TensorProduct.IsBaseChangeFree |
| 9 | |
| 10 | /-! # Map Base Change Hom -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.MapBaseChangeHom.IsBaseChange |
| 13 | |
| 14 | open _root_.IsBaseChange |
| 15 | |
| 16 | open LinearMap TensorProduct _root_.Module |
| 17 | |
| 18 | variable {R : Type*} [CommSemiring R] |
| 19 | {S : Type*} [CommSemiring S] [Algebra R S] |
| 20 | {M : Type*} [AddCommMonoid M] [Module R M] |
| 21 | {N : Type*} [AddCommMonoid N] [Module R N] |
| 22 | {P : Type*} [AddCommMonoid P] [Module R P] |
| 23 | |
| 24 | variable |
| 25 | {Q : Type*} [AddCommMonoid Q] [Module R Q] |
| 26 | [Module S P] [IsScalarTower R S P] |
| 27 | [Module S Q] [IsScalarTower R S Q] |
| 28 | |
| 29 | /-- The base change map for linear maps with source a free finite module. -/ |
| 30 | noncomputable def linearMapLeftRightHom {α : M →ₗ[R] P} (j : IsBaseChange S α) |
| 31 | (β : N →ₗ[R] Q) : |
| 32 | (M →ₗ[R] N) →ₗ[R] (P →ₗ[S] Q) := |
| 33 | ((LinearMap.llcomp (σ₂₃ := RingHom.id S) S P (S ⊗[R] M) Q).flip |
| 34 | j.equiv.symm.toLinearMap) ∘ₗ |
| 35 | (liftBaseChangeEquiv S).toLinearMap.restrictScalars R ∘ₗ |
| 36 | (compRight R β (M := M)) |
| 37 | |
| 38 | theorem linearMapLeftRightHom_apply |
| 39 | {α : M →ₗ[R] P} (j : IsBaseChange S α) (β : N →ₗ[R] Q) (f : M →ₗ[R] N) (p : P) : |
| 40 | linearMapLeftRightHom j β f p = ((liftBaseChangeEquiv S) (β ∘ₗ f)) (j.equiv.symm p) := by |
| 41 | rfl |
| 42 | |
| 43 | @[simp] theorem linearMapLeftRightHom_comp_apply |
| 44 | {α : M →ₗ[R] P} (j : IsBaseChange S α) (β : N →ₗ[R] Q) (f : M →ₗ[R] N) (m : M) : |
| 45 | linearMapLeftRightHom j β f (α m) = β (f m) := by |
| 46 | simp [linearMapLeftRightHom_apply, IsBaseChange.equiv_symm_apply] |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Linear.MapBaseChangeHom.IsBaseChange |