Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The exact `l = 3` mechanism.

Proved
SmoothSelfHint.symmetric_forced_mod_three

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

aether-catalogtropical

The exact l = 3 mechanism. If N = p q with p, q primes different from 3 and N ≡ 2 (mod 3), then one of the two factors is ≡ 1 (mod 3): the symmetric divisibility event is forced by the residue of N. (Experimentally P(OR) = 1.000.)

theorem SmoothSelfHint.symmetric_forced_mod_three{p q : ℕ} (hp : p.Prime) (hq : q.Prime)
    (hp3 : p ≠ 3) (hq3 : q ≠ 3) (h : (p * q) % 3 = 2) :
    3 ∣ p - 1 ∨ 3 ∣ q - 1 := by sorry

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

Preamble
-- Thm stub generated from Tropical/SmoothSelfHintDichotomyCore.lean
import Mathlib
import Definitions.Def_Tropical_SmoothSelfHintDichotomyCore

/-!
# The asymmetric / symmetric divisibility dichotomy

Motivation (Paper 54, Experiment 389).  For a semiprime `N = p * q` and a small prime
`l`, one asks whether `N` "knows" something about the divisibility of `p - 1` by `l`
(the elementary building block of `p - 1`/ECM smoothness).  The experiment reports

* `I(N mod l ; l ∣ p-1) = 0` (asymmetric event: zero leak),
* `I(N mod l ; l ∣ p-1 ∨ l ∣ q-1) > 0` (symmetric event: strong leak, `0.313` bits at
  `l = 3`), with an exact mechanism at `l = 3`: `N ≡ 2 (mod 3)` *forces* one factor to
  be `≡ 1 (mod 3)`.

This file proves the structural reason, in complete generality, as a statement about
fibres of the multiplication map of a finite group `G` (for us `G = (ZMod l)ˣ`):

* `SmoothSelfHint.asym_fiber_card` : for **any** `A ⊆ G` and **any** `n`, the number of
  pairs `(a,b)` with `a * b = n` and `a ∈ A` equals `|A|` — independent of `n`.
  One–sided ("asymmetric") events are *exactly* independent of the product.
* `SmoothSelfHint.sym_fiber_card` : the two–sided ("symmetric") count is
  `|A ∪ n·A⁻¹|`, which genuinely depends on `n`.
* `SmoothSelfHint.sym_fiber_card_one` : for the singleton `A = {1}` the symmetric count
  is `1` if `n = 1` and `2` otherwise — the whole leak, in one line.
* `SmoothSelfHint.asym_condProb_constant` / `SmoothSelfHint.sym_condProb_not_constant`:
  the resulting conditional probabilities, `1/(l-1)` versus `(1 or 2)/(l-1)`.

The arithmetic half of the file turns this into statements about actual semiprimes:

* `SmoothSelfHint.symmetric_forced_mod_three` : the exact `l = 3` mechanism.
* `SmoothSelfHint.asym_not_residue_dial` : no function of `N mod 3` computes `3 ∣ p-1`,
  and indeed *both* residue classes carry both outcomes.
* `SmoothSelfHint.sym_not_forced_mod_five` : at `l = 5` even the symmetric event is not
  forced — the leak there is purely statistical (`0.036` bits), as measured.
-/

open Finset

open SmoothSelfHint

/-! ## Part 1 : fibres of multiplication in a finite group -/


variable {G : Type*} [Group G] [Fintype G] [DecidableEq G]










/-! ## Part 2 : the conditional probabilities for `G = (ZMod l)ˣ` -/


variable (l : ℕ) [Fact (Nat.Prime l)]









/-! ## Part 3 : arithmetic incarnation for genuine semiprimes -/
Formal statement
theorem SmoothSelfHint.symmetric_forced_mod_three{p q : ℕ} (hp : p.Prime) (hq : q.Prime)
    (hp3 : p ≠ 3) (hq3 : q ≠ 3) (h : (p * q) % 3 = 2) :
    3 ∣ p - 1 ∨ 3 ∣ q - 1 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Tropical/SmoothSelfHintDichotomyCore.lean#L199

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