Pith. sign in
module module moderate

IndisputableMonolith.Foundation.PrimitiveRecognitionCalculus.IntegerOrder

show as:
view Lean formalization →

Defines the internal order on signed orbits (and thus integers) from signed-orbit comparison and balanced length, independent of any verifier display. Supplies reflexivity, transitivity, balanced antisymmetry, totality, and trichotomy, plus exclusive/exhaustive sign flags. Downstream ratio-orbit and divisibility layers import it as the native ≤ bridge. Structure is a compact order-theory package over the IntegerRational substrate.

claimOn signed orbits (the internal model of integers), a comparison $\leq$ is defined from signed-orbit order and balanced length. It is reflexive, transitive, antisymmetric on balanced representatives, total, and satisfies trichotomy. Sign flags for nonnegative and negative are mutually exclusive and exhaustive, with $0 \leq n$ iff the nonnegative flag holds and $n < 0$ iff the negative flag holds.

background

Primitive Recognition Calculus builds integers and rationals from orbits and signed orbits rather than from a pre-given $\mathbb{Z}$. The upstream module IntegerRational supplies that substrate: signed orbits with a balanced-length presentation and a bridge to ordinary integer comparison when needed.

This module installs the internal order selector on that substrate. The doc-comment is explicit: comparison is taken from signed-orbit order and balanced length, not from the verifier's integer display. That keeps the foundation choice-free and display-independent while still recovering the usual order facts.

Sibling lemmas package the standard order axioms (reflexivity, transitivity, balanced antisymmetry, totality, trichotomy) and the Boolean sign-flag calculus (exclusive, exhaustive, and the zero-threshold characterizations).

proof idea

Definition-and-lemmas module over the IntegerRational import. Order is selected from signed-orbit comparison plus balanced length; the listed siblings then discharge the classical order and sign-flag identities relative to that selector. No single deep theorem: a short suite of elementary order and flag lemmas that later modules quote as the native $\leq$ bridge (including the purified SignedOrbit.le_iff_toInt_le path used downstream).

why it matters in Recognition Science

Feeds the Grow layer that builds ratio-orbit order and arithmetic. Downstream importers include RatioOrbitLeReflTotal (cross-multiplication order leQ via signed orbits of $p.num\cdot q.den$ and $q.num\cdot p.den$), RatioOrbitLeTransAntisymm (transitivity of that delta-native order, routed through the signed-orbit bridge and Int cancellation), RatioOrbitLeNeg, RatioOrbitLtTrichotomy, RatioOrbitMulPos, RatioOrbitDenseMediant, IntegerDivisibility, and EtaCompletionM0a.

Without a display-independent integer order, the cross-multiplication order on ratio orbits and the later density/mediant and divisibility arguments have no native comparison to stand on. In the Recognition stack this is foundation plumbing under the forcing chain, not a T5–T8 landmark itself, but it is required infrastructure for any later quantitative comparison on the phi-ladder or mass formulas that routes through rational orbits.

scope and limits

used by (21)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (1)

Lean names referenced from this declaration's body.

declarations in this module (443)

… and 363 more