Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Shortcut map and equal-slope comparison interfaces

Definition
CollatzWork_InverseWordBoundaryStatement

by Sodelin · Sep 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

collatz-work-import

Let T:N→NT:\mathbb N\to\mathbb NT:N→N be the shortcut Collatz map: T(n)=n/2T(n)=n/2T(n)=n/2 for even nnn and T(n)=(3n+1)/2T(n)=(3n+1)/2T(n)=(3n+1)/2 for odd nnn. Write TkT^kTk for its kkk-fold iterate, with T0(n)=nT^0(n)=nT0(n)=n.

For natural coefficients A, B, and R, the comparison interface is

(∀x∈N, Ax+B<Ax+R)  ⟺  B<R.(\forall x\in\mathbb N,\ Ax+B<Ax+R)\iff B<R.(∀x∈N, Ax+B<Ax+R)⟺B<R.

A second interface specifies that the starts 8x+5 and 8x+4 share the value 3x+2 after three shortcut steps, with the latter positive and smaller. These propositions support finite inverse-word comparisons.

Definition code
import Std
import Init.Grind.Ordered.Module
namespace CollatzWork

/--
Trusted auxiliary statement for the affine comparison boundary corrected in
Round-7 L5.  Equal slopes make the comparison depend exactly on the two
intercepts.
-/
def EqualSlopeSmallerStatement : Prop :=
  ∀ A B R : Nat, (∀ x : Nat, A * x + B < A * x + R) ↔ B < R

/-- The once-accelerated Collatz map used in L4-L12. -/
def onceAccelerated (n : Nat) : Nat :=
  if n % 2 = 0 then n / 2 else (3 * n + 1) / 2

/--
Trusted concrete regression statement for the equal-slope certificate omitted
by the original L5 classifier.
-/
def EqualSlopeWitnessStatement : Prop :=
  ∀ x : Nat,
    onceAccelerated (onceAccelerated (onceAccelerated (8 * x + 5))) =
        3 * x + 2 ∧
    onceAccelerated (onceAccelerated (onceAccelerated (8 * x + 4))) =
        3 * x + 2 ∧
    0 < 8 * x + 4 ∧
    8 * x + 4 < 8 * x + 5

end CollatzWork
Source
https://github.com/Sodelin/Collatz-Conjecture-Work/blob/026aa4ad4be6453a005ab950b160a9f2204c5271/lean/CollatzWork/InverseWordBoundaryStatement.lean#L1-L30

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