Pith. sign in
module module moderate

IndisputableMonolith.Foundation.PrimitiveRecognitionCalculus.OrbitEuclidean

show as:
view Lean formalization →

Defines Euclidean division and GCD on orbit fuel by repeated subtraction, not on verifier naturals. Quotient, remainder, and gcd are extracted from a fuelled div-mod pair, with lemmas tying them to ordinary Nat arithmetic. Downstream factorization, kernel, and J-cost modules import this layer so divisibility stays inside the recognition orbit calculus.

claimOn orbit fuel $f$ (not verifier $\mathbb{N}$), fuelled division yields a pair $(q,r)$ by repeated subtraction so that the corresponding naturals satisfy $n = q\cdot d + r$ with $r < d$ when $d > 0$. The module also defines $\gcd$ on fuel via the Euclidean algorithm (repeated remainder), with transport lemmas to $\mathrm{Nat}$.

background

Primitive Recognition Calculus works with orbit fuel rather than bare verifier naturals: fuel is the resource that bounds recognition steps along an orbit. Integer and rational structure, and orbit-level divisibility, are already available from the imported IntegerRational and OrbitDivisibility modules.

This module supplies the classical Euclidean toolkit in that fuel setting. Division is implemented as fuelled repeated subtraction (divModFuel / divMod), exposing quotient and remainder. Parallel fuelled GCD (gcdFuel / gcd) follows the usual remainder loop. Companion lemmas relate these operations to Nat via toNat, including the standard identities remainder strictly less than the divisor and $q\cdot d + r = n$.

proof idea

Definition-and-lemma module, not a single theorem. Core objects are recursive fuelled procedures: div-mod by repeated subtraction with an explicit fuel argument, then quotient/remainder projections; gcd by the Euclidean remainder iteration on fuel. Correctness is discharged by transport to Nat (divMod_toNat, quotient_toNat, remainder_toNat) plus the two classical identities remainder_lt_divisor and quotient_mul_divisor_add_remainder_eq. No deep analytic argument; structural recursion on fuel plus Nat bridge lemmas.

why it matters in Recognition Science

Gives the foundation layer a fuel-native Euclidean algorithm so later PRC modules never drop to ad-hoc verifier Nat division. Imported by Factorization.ChartTransition (chart changes and factor moves), by Kernel (core recognition kernel constructions), and by PRCJCost (J-cost bookkeeping on recognition orbits). Without orbit-level quotients, remainders, and gcd, factorization and cost identities cannot stay inside the forcing/recognition calculus that feeds the T5–T8 chain and the RCL cost $J$.

scope and limits

used by (3)

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

depends on (2)

Lean names referenced from this declaration's body.

declarations in this module (36)