Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The aggregate is `N`-computable.

Proved
Round7Agreement.mem_agree_iff_jacobiSym

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogtropical

The aggregate is N-computable. Agreement holds exactly when the Jacobi symbol J(a | N) — a quantity computable from N alone — equals 1.

theorem Round7Agreement.mem_agree_iff_jacobiSym(a : (ZMod (p * q))ˣ) :
    a ∈ agree p q ↔ jacobiSym ((a : ZMod (p * q)).val : ℤ) (p * q) = 1 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Tropical/Round7AgreementCharacter.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Tropical/Round7AgreementCharacter.lean
import Mathlib
import Definitions.Def_Tropical_Round7AgreementCharacter

/-!
# Round-7 closure AGREEMENT: barrier-2-invariant character aggregates collapse

This file formalises experiment 325 of the round-7 batch.  For a semiprime
`N = p q` the **agreement set**

`A(N) = { a ∈ (ℤ/Nℤ)ˣ : (a/p) = (a/q) }`

is invariant under both barrier-2 symmetries (the swap `p ↔ q` and conjugation),
so it was a candidate for a factor-revealing aggregate that escapes the
residue/order classification.  It does not:

* `agree_card_two_mul` : `2 · |A(N)| = φ(N)`, i.e. `A(N) = φ(N)/2` exactly, for
  every semiprime with an odd prime factor — the count is a *function of `N`
  alone* (through `φ(N)`), hence carries no information about `p` and `q`;
* `mem_agree_iff_jacobiSym` : the agreement set *is* the set where the
  `N`-computable Jacobi symbol `J(a | N)` equals `1`, so the aggregate collapses
  onto the quadratic character mod `N` by character orthogonality.

The proof is a pairing argument: an element `u` that is a non-residue mod `p`
and `≡ 1 (mod q)` (produced by CRT) translates the agreement set bijectively
onto its complement.
-/

open Round7Agreement

open Finset

variable {p q : ℕ}


variable [Fact p.Prime] [Fact q.Prime]













/-! ## The agreement set -/




/-! ## A CRT witness: non-residue mod `p`, trivial mod `q` -/


variable [Fact p.Prime] [Fact q.Prime]



/-! ## The count -/


variable [Fact p.Prime] [Fact q.Prime]





/-! ## The collapse onto the Jacobi symbol -/


variable [Fact p.Prime] [Fact q.Prime]
Formal statement
theorem Round7Agreement.mem_agree_iff_jacobiSym(a : (ZMod (p * q))ˣ) :
    a ∈ agree p q ↔ jacobiSym ((a : ZMod (p * q)).val : ℤ) (p * q) = 1 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Tropical/Round7AgreementCharacter.lean#L217

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