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.Open.StalkSupport |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.KernelSquare |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportDimension |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Closed.ImmersionSupport |
| 5 | |
| 6 | /-! # Support Base Change Square -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportBaseChangeSquare |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Base-change identities for the native defining support primes |
| 13 | transport through commuting open chart squares. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 21 | |
| 22 | theorem preimage_point {X Y : Scheme} (i : X ⟶ Y) [IsOpenImmersion i] |
| 23 | (B : IrreducibleCloseds Y) (h : (i ⁻¹' (B : Set Y)).Nonempty) : |
| 24 | i (CycleClass.Thom.IntersectionGeometry.supportPoint (SupportDimension.preimage i B h)) = CycleClass.Thom.IntersectionGeometry.supportPoint B := by |
| 25 | let A := SupportDimension.preimage i B h |
| 26 | have hp := Closed.ImmersionSupport.support_point (CycleClass.Geometric.GenericPoint.reducedSupportι A ≫ i) |
| 27 | change CycleClass.Thom.IntersectionGeometry.supportPoint (CycleClass.Geometric.StratumClosure.integralImageClosure (CycleClass.Geometric.GenericPoint.reducedSupportι A ≫ i)) = |
| 28 | i (CycleClass.Geometric.GenericPoint.reducedSupportι A (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme A))) at hp |
| 29 | rw [SupportDimension.imageClosure, CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq] at hp |
| 30 | exact hp.symm |
| 31 | |
| 32 | theorem kernel_map_at {U Y : Scheme} (i : U ⟶ Y) [IsOpenImmersion i] |
| 33 | (A : IrreducibleCloseds U) (B : IrreducibleCloseds Y) |
| 34 | (hAB : i (CycleClass.Thom.IntersectionGeometry.supportPoint A) = CycleClass.Thom.IntersectionGeometry.supportPoint B) (u : U) (y : Y) (hy : i u = y) |
| 35 | (huA : u ∈ (A : Set U)) (hyB : y ∈ (B : Set Y)) : |
| 36 | (Stalk.PrimeQuotient.kernelPrime Y B y hyB).asIdeal.map |
| 37 | (eqToHom (congrArg (fun y => Y.presheaf.stalk y) hy.symm) ≫ i.stalkMap u).hom = |
| 38 | (Stalk.PrimeQuotient.kernelPrime U A u huA).asIdeal := by |
| 39 | subst y |
| 40 | simpa only [eqToHom_refl, Category.id_comp] using StalkSupport.kernelPrime_map i A B hAB u huA hyB |
| 41 | |
| 42 | theorem kernel {X Y U V : Scheme} (f : X ⟶ Y) (q : V ⟶ U) |
| 43 | (i : U ⟶ Y) (j : V ⟶ X) [IsOpenImmersion i] [IsOpenImmersion j] |
| 44 | (h : j ≫ f = q ≫ i) |
| 45 | (A : IrreducibleCloseds X) (B : IrreducibleCloseds Y) |
| 46 | (A' : IrreducibleCloseds V) (B' : IrreducibleCloseds U) |
| 47 | (hA : j (CycleClass.Thom.IntersectionGeometry.supportPoint A') = CycleClass.Thom.IntersectionGeometry.supportPoint A) (hB : i (CycleClass.Thom.IntersectionGeometry.supportPoint B') = CycleClass.Thom.IntersectionGeometry.supportPoint B) |
| 48 | (v : V) (hvA : v ∈ (A' : Set V)) (hvB : q v ∈ (B' : Set U)) |
| 49 | (hxA : j v ∈ (A : Set X)) (hxB : f (j v) ∈ (B : Set Y)) |
| 50 | (hloc : (Stalk.PrimeQuotient.kernelPrime U B' (q v) hvB).asIdeal.map (q.stalkMap v).hom = |
| 51 | (Stalk.PrimeQuotient.kernelPrime V A' v hvA).asIdeal) : |
| 52 | (Stalk.PrimeQuotient.kernelPrime Y B (f (j v)) hxB).asIdeal.map (f.stalkMap (j v)).hom = |
| 53 | (Stalk.PrimeQuotient.kernelPrime X A (j v) hxA).asIdeal := by |
| 54 | let ψ := Stalk.KernelSquare.map f i q j h v |
| 55 | have hb : (Stalk.PrimeQuotient.kernelPrime Y B (f (j v)) hxB).asIdeal.map ψ.hom = |
| 56 | (Stalk.PrimeQuotient.kernelPrime U B' (q v) hvB).asIdeal := |
| 57 | kernel_map_at i B' B hB (q v) (f (j v)) |
| 58 | (congrArg (fun g : V ⟶ Y => g v) h).symm hvB hxB |
| 59 | have ha := StalkSupport.kernelPrime_map j A' A hA v hvA hxA |
| 60 | have he : ((Stalk.PrimeQuotient.kernelPrime Y B (f (j v)) hxB).asIdeal.map (f.stalkMap (j v)).hom).map |
| 61 | (j.stalkMap v).hom = (Stalk.PrimeQuotient.kernelPrime X A (j v) hxA).asIdeal.map (j.stalkMap v).hom := by |
| 62 | calc |
| 63 | _ = ((Stalk.PrimeQuotient.kernelPrime Y B (f (j v)) hxB).asIdeal.map ψ.hom).map (q.stalkMap v).hom := by |
| 64 | rw [Ideal.map_map, Ideal.map_map] |
| 65 | exact congrArg (fun φ => (Stalk.PrimeQuotient.kernelPrime Y B (f (j v)) hxB).asIdeal.map φ) |
| 66 | (congrArg CommRingCat.Hom.hom (Stalk.KernelSquare.square f i q j h v).symm) |
| 67 | _ = (Stalk.PrimeQuotient.kernelPrime V A' v hvA).asIdeal := by rw [hb, hloc] |
| 68 | _ = _ := ha.symm |
| 69 | have he' := congrArg (fun I => I.comap (j.stalkMap v).hom) he |
| 70 | simpa only [Ideal.comap_map_of_bijective _ (ConcreteCategory.bijective_of_isIso (j.stalkMap v))] using he' |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportBaseChangeSquare |