Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Curve-duality library (Poincaré duality on curves over finite fields), part 30g of 71

Definition
RPLib_S4_CDPack30g

by Nickrobbins95 · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometryfinite-fieldsnumber-theory

Part 30g of 71 of the curve-duality library: the following library modules, in dependency order.

  • Def_RP_JacLaw_InstA1: S4-JacLaw, file O10e (part A): associativity at points of D(ωm) [pack-only part InstA1: b_LL, b_LR, b_RR]

Formalization note. Library package of a formalization of Poincaré duality for constant coefficients on an affine curve over a finite field (the cup pairing Hc1(Uˉ,Λ)×H1(Uˉ,σ)→ΛH^1_c(\bar U,\Lambda)\times H^1(\bar U,\sigma)\to\LambdaHc1​(Uˉ,Λ)×H1(Uˉ,σ)→Λ of the geometric fundamental group is perfect). The modules are copied verbatim (import lines removed), each inside its own section ... end, in dependency order. They contain definitions together with proved lemmas (no sorry; where divisibility facts about Picard groups are used they are explicit hypotheses), so that later solution files can import them.

Definition code
import Mathlib
import Definitions.Def_RPLib_S4_CDPack30f

/-!
# Curve-duality library package, part 30g of 71

Library modules of the formalization of Poincaré duality for constant coefficients on an affine curve over a
finite field (`RamanujanPetersson.CupDuality.constDuality_S3_perfect`). Each module below is copied verbatim
(import lines removed) inside its own `section` ... `end`:

* `Def_RP_JacLaw_InstA1`: S4-JacLaw, file O10e (part A): associativity at points of `D(ωm)` [pack-only part InstA1: `b_LL`, `b_LR`, `b_RR`]
-/

set_option autoImplicit false

-- ===== S4.Def_RP_JacLaw_InstA1 =====
section

/-!
# S4-JacLaw, file O10e (part A): associativity at points of `D(ωm)` [pack-only part InstA1: `b_LL`, `b_LR`, `b_RR`]

`b_LL b_LR b_RR b_Lmu b_Rmu` (base identities through the nest) and `rel_assoc`.
-/

set_option autoImplicit false

open Polynomial Module

namespace RamanujanPetersson.JacLaw

open RamanujanPetersson.JacSym RamanujanPetersson.RR
open CategoryTheory AlgebraicGeometry RamanujanPetersson.JacChunk
open Algebra.TensorProduct (includeLeft includeRight)
open scoped TensorProduct

universe u

section Inst

variable {K : Type u} [Field K] [DecidableEq (RatFunc K)]
variable {F : Type u} [Field F] [Algebra K F] [Algebra K[X] F] [Algebra (RatFunc K) F]
  [IsScalarTower K[X] (RatFunc K) F] [IsScalarTower K K[X] F] [FunctionField K F]
  [Algebra.IsSeparable (RatFunc K) F] [IsAlgClosed K]

namespace LawData

variable (L : LawData K F)

section Rel

variable (x : Localization.Away L.ωm →ₐ[K] K) (xr : Localization.Away L.ωr →ₐ[K] K)
  (xl : Localization.Away L.ωl →ₐ[K] K)

variable {x xr xl} in
theorem b_LL {x' : Localization.Away L.ωm →ₐ[K] K} (h : pL x = pL x') :
    (L.mB (x.comp (nestK (K := K) L.mU))).comp (iL K F) = (L.mB (x'.comp (nestK (K := K) L.mU))).comp (iL K F) :=
  (L.mB_L x).trans (h.trans (L.mB_L x').symm)

variable {x xr xl} in
theorem b_LR {x' : Localization.Away L.ωm →ₐ[K] K} (h : pL x = pR x') :
    (L.mB (x.comp (nestK (K := K) L.mU))).comp (iL K F) = (L.mB (x'.comp (nestK (K := K) L.mU))).comp (iR K F) :=
  (L.mB_L x).trans (h.trans (L.mB_R x').symm)

variable {x xr xl} in
theorem b_RR {x' : Localization.Away L.ωm →ₐ[K] K} (h : pR x = pR x') :
    (L.mB (x.comp (nestK (K := K) L.mU))).comp (iR K F) = (L.mB (x'.comp (nestK (K := K) L.mU))).comp (iR K F) :=
  (L.mB_R x).trans (h.trans (L.mB_R x').symm)

end Rel

end LawData

end Inst

end RamanujanPetersson.JacLaw

end
Source
J. S. Milne, Étale Cohomology, Princeton University Press (1980), Chapter V, §2 (Poincaré duality for curves); P. Deligne, Cohomologie étale (SGA 4½), Lecture Notes in Math. 569, Springer (1977), « Dualité »; J. S. Milne, Jacobian varieties, in Arithmetic Geometry (G. Cornell, J. H. Silverman, eds.), Springer (1986), 167-212; H. Stichtenoth, Algebraic Function Fields and Codes, 2nd ed., GTM 254, Springer (2009)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me