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.Affine.DivisorNorm |
| 2 | import OAI.AlgebraicGeometry.Cycles.Functoriality.FunctionFields |
| 3 | |
| 4 | /-! # Function Fields -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FunctionFields |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The affine norm formula uses the actual generic-stalk pullback on the |
| 11 | function fields of the schemes. This verifies the canonical fraction-field |
| 12 | comparisons on scalars and then on every rational function. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Order OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorNorm OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CyclePushforward |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R S : Type u) [CommRing R] [CommRing S] |
| 23 | [IsDedekindDomain R] [IsDedekindDomain S] [Algebra R S] [Module.IsTorsionFree R S] |
| 24 | |
| 25 | local instance (A : Type u) [CommRing A] [IsDomain A] : |
| 26 | Algebra A (Spec (.of A)).functionField := |
| 27 | (StructureSheaf.toStalk A (genericPoint (Spec (.of A)))).hom.toAlgebra |
| 28 | |
| 29 | theorem affineMap_genericPoint : |
| 30 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) (genericPoint (Spec (.of S))) = |
| 31 | genericPoint (Spec (.of R)) := by |
| 32 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 33 | apply PrimeSpectrum.ext |
| 34 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap R S)).mp |
| 35 | (FaithfulSMul.algebraMap_injective R S) |
| 36 | |
| 37 | def affineFieldMap : (Spec (.of R)).functionField ⟶ (Spec (.of S)).functionField := |
| 38 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 39 | (affineMap_genericPoint R S) |
| 40 | |
| 41 | theorem affineFieldMap_toStalk : |
| 42 | StructureSheaf.toStalk R (genericPoint (Spec (.of R))) ≫ affineFieldMap R S = |
| 43 | CommRingCat.ofHom (algebraMap R S) ≫ |
| 44 | StructureSheaf.toStalk S (genericPoint (Spec (.of S))) := by |
| 45 | change (Scheme.ΓSpecIso (.of R)).inv ≫ |
| 46 | (Spec (.of R)).presheaf.germ ⊤ _ (by trivial) ≫ affineFieldMap R S = |
| 47 | CommRingCat.ofHom (algebraMap R S) ≫ (Scheme.ΓSpecIso (.of S)).inv ≫ |
| 48 | (Spec (.of S)).presheaf.germ ⊤ _ (by trivial) |
| 49 | rw [affineFieldMap, Cycles.Functoriality.FunctionFields.Construction.genericFieldMap_germ, |
| 50 | Scheme.ΓSpecIso_inv_naturality_assoc] |
| 51 | |
| 52 | attribute [local instance] FractionRing.liftAlgebra |
| 53 | |
| 54 | theorem affineFieldMap_square : |
| 55 | (affineFieldMap R S).hom.comp (Order.affineFunctionFieldIso R).toRingHom = |
| 56 | (Order.affineFunctionFieldIso S).toRingHom.comp |
| 57 | (algebraMap (FractionRing R) (FractionRing S)) := by |
| 58 | apply IsFractionRing.ringHom_ext (A := R) |
| 59 | intro r |
| 60 | change affineFieldMap R S (Order.affineFunctionFieldIso R (algebraMap R (FractionRing R) r)) = |
| 61 | Order.affineFunctionFieldIso S (algebraMap (FractionRing R) (FractionRing S) |
| 62 | (algebraMap R (FractionRing R) r)) |
| 63 | rw [AlgEquiv.commutes, ← IsScalarTower.algebraMap_apply, |
| 64 | IsScalarTower.algebraMap_apply R S (FractionRing S), AlgEquiv.commutes] |
| 65 | exact congrArg (fun h : CommRingCat.of R ⟶ (Spec (.of S)).functionField => h r) |
| 66 | (affineFieldMap_toStalk R S) |
| 67 | |
| 68 | /-- The norm transported through canonical fraction fields is the native |
| 69 | norm for the actual generic-stalk field map. -/ |
| 70 | theorem affineFieldMap_norm (f : FractionRing S) : |
| 71 | letI := (affineFieldMap R S).hom.toAlgebra |
| 72 | Order.affineFunctionFieldIso R (Algebra.norm (FractionRing R) f) = |
| 73 | Algebra.norm (Spec (.of R)).functionField (Order.affineFunctionFieldIso S f) := by |
| 74 | let := (affineFieldMap R S).hom.toAlgebra |
| 75 | have h := Algebra.norm_eq_of_equiv_equiv (Order.affineFunctionFieldIso R).toRingEquiv |
| 76 | (Order.affineFunctionFieldIso S).toRingEquiv (affineFieldMap_square R S) f |
| 77 | exact (RingEquiv.eq_symm_apply (Order.affineFunctionFieldIso R).toRingEquiv).mp h |
| 78 | |
| 79 | /-- The finite affine norm-divisor identity entirely in the schemes' own |
| 80 | function fields and native pushforward. -/ |
| 81 | theorem principalDivisor_native_norm [IsDiscreteValuationRing R] [Module.Finite R S] |
| 82 | [PerfectField (FractionRing R)] (f : (Spec (.of S)).functionField) (hf : f ≠ 0) : |
| 83 | letI := (affineFieldMap R S).hom.toAlgebra |
| 84 | CyclePushforward.pointPushforward (Spec.map (CommRingCat.ofHom (algebraMap R S))) |
| 85 | (DivisorNorm.rationalPrincipalDivisor (Spec (.of S)) f) = |
| 86 | DivisorNorm.rationalPrincipalDivisor (Spec (.of R)) |
| 87 | (Algebra.norm (Spec (.of R)).functionField f) := by |
| 88 | let := (affineFieldMap R S).hom.toAlgebra |
| 89 | obtain ⟨g, rfl⟩ := (Order.affineFunctionFieldIso S).surjective f |
| 90 | have hg : g ≠ 0 := fun h => hf (by rw [h, map_zero]) |
| 91 | rw [DivisorNorm.principalDivisor_norm S R g hg, affineFieldMap_norm] |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FunctionFields |