Pith. sign in
module module high

IndisputableMonolith.Gravity.Analysis.Q3PatchSeating

show as:
view Lean formalization →

Four binary coordinates on a Q3 (Freudenthal) patch are packed into a single natural number and recovered bit-wise. Gravity analysts cite the seating maps when an order-sensitive Loom history must be written as an edge-current response on the patch. The module is mostly definitional: seat/unseat are mutual inverses, with injectivity and surjectivity proved by bit arithmetic.

claimFour bits $b_0,b_1,b_2,b_3\in\{0,1\}$ pack into a natural $n=\sum_{i=0}^{3}b_i\,2^i$ with $n<16$. The seating map $\mathrm{seat}$ and its inverse $\mathrm{unseat}$ are mutual inverses; $\mathrm{seat}$ is bijective onto its image. Bit extraction recovers each coordinate: $\mathrm{testBit}(n,i)=b_i$.

background

Recognition Science gravity analysis on the Freudenthal (Q3) patch needs a discrete address for four binary degrees of freedom: three spatial edge choices plus a time-orientation flip. The module introduces bitNat (a bit as a natural in ${0,1}$), seatNat (the packed address, strictly less than $16$), and the pair seat / unseat that convert between a 4-tuple of bits and that address.

A companion flipTime toggles the temporal bit inside the packed word. The local setting is pure combinatorial packing: no metric or curvature is assumed here. Upstream material is only the Patterns import (shared bit and pattern utilities). Downstream, the same seating is how an order-sensitive Loom Config is written onto patch edges for the G2/G3 frozen claims.

proof idea

Definitional core: seat packs four bits by weighted powers of two; unseat reads them back with testBit. Round-trip lemmas seat_unseat and unseat_seat are bit-arithmetic identities. Injectivity of seat follows from the round-trip; surjectivity onto the image ${0,\ldots,15}$ is by exhaustive recovery of bits. Bounds bitNat_le_one and seatNat_lt are immediate from the constructors. pack4_testBit records that each extracted bit matches the original coordinate. No deep tactics: mostly rfl, omega, and testBit simp lemmas.

why it matters in Recognition Science

This module is the discrete addressing layer for order-sensitive gravity on the Q3 patch. It is imported by OrderSensitiveHistoryResponse4D, which freezes claims G2/G3 of the Order-Sensitive Gravity proposition: the depth-two commutator reading of a Loom configuration is seated as an edge-current response on the Freudenthal patch. The audit module Q3PatchSeatingAudit re-exports the same API for axiom hygiene.

In the broader RS chain the eight-tick octave (T7) and $D=3$ (T8) already fix a $2^3$ spatial tick structure; packing one extra time-orientation bit yields the 4-bit word used here. Without bijective seating, the history-to-current map could not be stated as a function on naturals.

scope and limits

used by (2)

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 (18)