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.Isogenies.NeighborCounting.EtaleTargetMaps |
| 2 | |
| 3 | /-! # Affine Special Fiber -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.AffineSpecialFiber.Components |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | The coordinate tensor product agrees with the native special-fiber |
| 11 | functor on objects and maps. This lets HenselianLifting construct scheme maps from |
| 12 | their independently specified special fibers. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R S A : Type u) [CommRing R] [CommRing S] [CommRing A] |
| 21 | variable [Algebra R S] [Algebra R A] |
| 22 | |
| 23 | def affineBaseChangeIso : |
| 24 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R S)))).obj (EtaleTargetMaps.Components.affineOver R A) ≅ |
| 25 | EtaleTargetMaps.Components.affineOver S (S ⊗[R] A) := |
| 26 | (pullbackSymmetry .. ≪≫ pullbackSpecIso' R S A).asOver (Spec (.of S)) |
| 27 | |
| 28 | theorem affineBaseChangeIso_inv_fst : |
| 29 | (affineBaseChangeIso R S A).inv.left ≫ |
| 30 | pullback.fst (EtaleTargetMaps.Components.affineOver R A).hom (Spec.map (CommRingCat.ofHom (algebraMap R S))) = |
| 31 | Spec.map (CommRingCat.ofHom |
| 32 | (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom) := by |
| 33 | change (pullbackSpecIso' R S A).inv ≫ (pullbackSymmetry _ _).inv ≫ pullback.fst _ _ = _ |
| 34 | rw [pullbackSymmetry_inv_comp_fst] |
| 35 | exact pullbackSpecIso_inv_snd R S A |
| 36 | |
| 37 | variable {A} {C : Type u} [CommRing C] [Algebra R C] |
| 38 | |
| 39 | theorem affineBaseChangeIso_naturality (f : C →ₐ[R] A) : |
| 40 | (affineBaseChangeIso R S A).inv ≫ |
| 41 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R S)))).map (EtaleTargetMaps.Components.affineMap R f) = |
| 42 | EtaleTargetMaps.Components.affineMap S (Algebra.TensorProduct.map (AlgHom.id S S) f) ≫ |
| 43 | (affineBaseChangeIso R S C).inv := by |
| 44 | apply Over.OverMorphism.ext |
| 45 | apply pullback.hom_ext |
| 46 | · simp only [Over.comp_left, Category.assoc] |
| 47 | have hp : |
| 48 | ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R S)))).map |
| 49 | (EtaleTargetMaps.Components.affineMap R f)).left ≫ |
| 50 | pullback.fst (EtaleTargetMaps.Components.affineOver R C).hom (Spec.map (CommRingCat.ofHom (algebraMap R S))) = |
| 51 | pullback.fst (EtaleTargetMaps.Components.affineOver R A).hom (Spec.map (CommRingCat.ofHom (algebraMap R S))) ≫ |
| 52 | (EtaleTargetMaps.Components.affineMap R f).left := pullback.lift_fst _ _ _ |
| 53 | rw [hp, ← Category.assoc, affineBaseChangeIso_inv_fst, affineBaseChangeIso_inv_fst] |
| 54 | change Spec.map (CommRingCat.ofHom |
| 55 | (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom) ≫ |
| 56 | Spec.map (CommRingCat.ofHom f.toRingHom) = |
| 57 | Spec.map (CommRingCat.ofHom |
| 58 | (Algebra.TensorProduct.map (AlgHom.id S S) f).toRingHom) ≫ |
| 59 | Spec.map (CommRingCat.ofHom |
| 60 | (Algebra.TensorProduct.includeRight : C →ₐ[R] S ⊗[R] C).toRingHom) |
| 61 | rw [← Spec.map_comp, ← Spec.map_comp] |
| 62 | congr 1 |
| 63 | · exact Over.w _ |>.trans (Over.w _).symm |
| 64 | |
| 65 | variable {R} [HenselianLocalRing R] |
| 66 | |
| 67 | /-- Every native special-fiber map into the finite etale affine target |
| 68 | has a unique integral lift. No special-fiber identification is an input. -/ |
| 69 | theorem affine_special_fiber_hom_bijective |
| 70 | [Module.Finite R A] [Module.Finite R C] [Algebra.Etale R C] : |
| 71 | Function.Bijective |
| 72 | ((Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R)))).map |
| 73 | (X := EtaleTargetMaps.Components.affineOver R A) (Y := EtaleTargetMaps.Components.affineOver R C)) := by |
| 74 | let k := IsLocalRing.ResidueField R |
| 75 | let F := Over.pullback (Spec.map (CommRingCat.ofHom (IsLocalRing.residue R))) |
| 76 | let eA : F.obj (EtaleTargetMaps.Components.affineOver R A) ≅ EtaleTargetMaps.Components.affineOver k (k ⊗[R] A) := affineBaseChangeIso R k A |
| 77 | let eC : F.obj (EtaleTargetMaps.Components.affineOver R C) ≅ EtaleTargetMaps.Components.affineOver k (k ⊗[R] C) := affineBaseChangeIso R k C |
| 78 | constructor |
| 79 | · intro f g h |
| 80 | let a : C →ₐ[R] A := ((algSpec.fullyFaithful (R := .of R)).preimage f).unop.hom |
| 81 | let b : C →ₐ[R] A := ((algSpec.fullyFaithful (R := .of R)).preimage g).unop.hom |
| 82 | have ha : EtaleTargetMaps.Components.affineMap R a = f := (algSpec.fullyFaithful (R := .of R)).map_preimage f |
| 83 | have hb : EtaleTargetMaps.Components.affineMap R b = g := (algSpec.fullyFaithful (R := .of R)).map_preimage g |
| 84 | have hab : a = b := EtaleTargetMaps.Components.affine_specialization_injective R A a b (by rwa [ha, hb]) |
| 85 | exact ha.symm.trans ((congrArg (EtaleTargetMaps.Components.affineMap R) hab).trans hb) |
| 86 | · intro φ |
| 87 | let φa : k ⊗[R] C →ₐ[k] k ⊗[R] A := |
| 88 | ((algSpec.fullyFaithful (R := .of k)).preimage (eA.inv ≫ φ ≫ eC.hom)).unop.hom |
| 89 | have hφ : EtaleTargetMaps.Components.affineMap k φa = eA.inv ≫ φ ≫ eC.hom := |
| 90 | (algSpec.fullyFaithful (R := .of k)).map_preimage _ |
| 91 | obtain ⟨f, hf⟩ := (OAI.Algebra.LocalRing.HenselianLifting.Construction.finiteEtale_baseChange_hom_bijective R C A).2 φa |
| 92 | change Algebra.TensorProduct.map (AlgHom.id k k) f = φa at hf |
| 93 | refine ⟨EtaleTargetMaps.Components.affineMap R f, ?_⟩ |
| 94 | apply (cancel_epi eA.inv).mp |
| 95 | change eA.inv ≫ F.map (EtaleTargetMaps.Components.affineMap R f) = eA.inv ≫ φ |
| 96 | have hn : eA.inv ≫ F.map (EtaleTargetMaps.Components.affineMap R f) = |
| 97 | EtaleTargetMaps.Components.affineMap k (Algebra.TensorProduct.map (AlgHom.id k k) f) ≫ eC.inv := |
| 98 | affineBaseChangeIso_naturality R k f |
| 99 | have hc : EtaleTargetMaps.Components.affineMap k (Algebra.TensorProduct.map (AlgHom.id k k) f) = |
| 100 | eA.inv ≫ φ ≫ eC.hom := (congrArg (EtaleTargetMaps.Components.affineMap k) hf).trans hφ |
| 101 | exact hn.trans ((congrArg (fun g => g ≫ eC.inv) hc).trans (by |
| 102 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id])) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.AffineSpecialFiber.Components |