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.SpecScalarSections |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.OpenImmersion |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Product Chart -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ProductChart |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An actual affine product chart is the spectrum of the tensor |
| 12 | product of the two affine section rings over the given scalar field. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | variable {K : Type} [Field K] {X Y : Scheme} |
| 21 | (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) |
| 22 | (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V) |
| 23 | |
| 24 | def inclusion : |
| 25 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 26 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 27 | pullback (Spec.map (CommRingCat.ofHom (algebraMap K Γ(X, U)))) |
| 28 | (Spec.map (CommRingCat.ofHom (algebraMap K Γ(Y, V)))) ⟶ pullback f g := by |
| 29 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 30 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 31 | exact pullback.map _ _ f g hU.fromSpec hV.fromSpec (𝟙 _) |
| 32 | ((Category.comp_id _).trans (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec f U hU)) |
| 33 | ((Category.comp_id _).trans (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec g V hV)) |
| 34 | |
| 35 | theorem inclusion_open : |
| 36 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 37 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 38 | IsOpenImmersion (inclusion f g U hU V hV) := by |
| 39 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 40 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 41 | exact MorphismProperty.pullbackMap (P := @IsOpenImmersion) |
| 42 | (inferInstanceAs (IsOpenImmersion hU.fromSpec)) (inferInstanceAs (IsOpenImmersion hV.fromSpec)) |
| 43 | (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec f U hU) (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec g V hV) |
| 44 | |
| 45 | def map : |
| 46 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 47 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 48 | Spec (.of (Γ(X, U) ⊗[K] Γ(Y, V))) ⟶ pullback f g := by |
| 49 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 50 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 51 | exact (pullbackSpecIso K Γ(X, U) Γ(Y, V)).inv ≫ inclusion f g U hU V hV |
| 52 | |
| 53 | theorem isOpenImmersion : |
| 54 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 55 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 56 | IsOpenImmersion (ProductChart.map f g U hU V hV) := by |
| 57 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 58 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 59 | let := inclusion_open f g U hU V hV |
| 60 | unfold ProductChart.map |
| 61 | infer_instance |
| 62 | |
| 63 | theorem range : |
| 64 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 65 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 66 | Set.range (ProductChart.map f g U hU V hV) = |
| 67 | pullback.fst f g ⁻¹' (U : Set X) ∩ pullback.snd f g ⁻¹' (V : Set Y) := by |
| 68 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 69 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 70 | change Set.range (inclusion f g U hU V hV ∘ (pullbackSpecIso K Γ(X, U) Γ(Y, V)).inv) = _ |
| 71 | rw [Set.range_comp, (pullbackSpecIso K Γ(X, U) Γ(Y, V)).inv.surjective.range_eq, Set.image_univ, |
| 72 | inclusion, Scheme.Pullback.range_map] |
| 73 | exact congrArg₂ (fun S : Set X => fun T : Set Y => |
| 74 | pullback.fst f g ⁻¹' S ∩ pullback.snd f g ⁻¹' T) hU.range_fromSpec hV.range_fromSpec |
| 75 | |
| 76 | theorem over_base : |
| 77 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 78 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 79 | ProductChart.map f g U hU V hV ≫ pullback.fst f g ≫ f = |
| 80 | Spec.map (CommRingCat.ofHom (algebraMap K (Γ(X, U) ⊗[K] Γ(Y, V)))) := by |
| 81 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 82 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra g V |
| 83 | rw [ProductChart.map, Category.assoc, inclusion, pullback.lift_fst_assoc, |
| 84 | Category.assoc, ← Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec f U hU] |
| 85 | have he := congrArg (fun a => (pullbackSpecIso K Γ(X, U) Γ(Y, V)).inv ≫ a) |
| 86 | (pullbackSpecIso_hom_base K Γ(X, U) Γ(Y, V)) |
| 87 | rw [Iso.inv_hom_id_assoc] at he |
| 88 | exact he.symm |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ProductChart |