# Projective Law Descent

Version 0.6 turns the statement “an upper layer confines the laws visible below
it” into a finite decision procedure. It does not assume that the seven layers
are physical facts. It proves consequences of a declared finite upper rule and
projection.

## 1. Exact criterion

Let the upper state space be finite, let

\[
T:X\rightarrow X
\]

be its deterministic transition, and let

\[
\pi:X\rightarrow Y
\]

be the lower observation. A self-contained deterministic lower rule
\(L:Y\rightarrow Y\) exists exactly when

\[
\boxed{\pi(a)=\pi(b)\Longrightarrow \pi(T(a))=\pi(T(b))}
\]

for every pair of upper states. Equivalently, the diagram commutes:

\[
\boxed{\pi\circ T=L\circ\pi.}
\]

The engine checks every upper state. If the condition fails it returns two
states in the same observation fiber whose projected successors differ. This
is an exact counterexample, not a statistical warning.

For a seven-layer tower

\[
X_7\xrightarrow{\pi_{7,6}}X_6\rightarrow\cdots\rightarrow X_1,
\]

the same test is applied at each edge. If every adjacent square commutes, then
every composite projection also commutes. Thus an upper law constrains all
lower laws transitively. One failed edge identifies the precise layer where an
autonomous lower description stops being valid.

## 2. Effects, fibers, and stochastic lower behavior

An observed lower state determines a fiber

\[
F_y=\{x\in X:\pi(x)=y\}.
\]

If projected evolution is not constant on \(F_y\), the lower future is not
determined by \(y\) alone. Given an explicitly supplied nonnegative integer
microstate weight \(w_x\), the engine computes the exact rational kernel

\[
P(y'\mid y)=
\frac{\sum_{x\in F_y,\;\pi(Tx)=y'}w_x}
     {\sum_{x\in F_y}w_x}.
\]

The numerator and denominator stay as integers. Equal counting weights are
available, but the engine does not claim that equal microstate counts are
physical probabilities. In quantum applications the Born weights must be
derived or supplied separately; hidden-state counting cannot silently replace
the Born rule.

## 3. Minimum deterministic repair

When no lower rule exists, the engine refines the observation by future
equivalence:

\[
a\sim_\infty b
\iff
\pi(T^k a)=\pi(T^k b)\quad\text{for every }k\ge0.
\]

Because \(X\) is finite, partition refinement terminates. The resulting
classes are the coarsest refinement that both preserves the original
observation and makes evolution deterministic. If one old fiber splits into at
most \(s\) future classes, the minimum fixed-width hidden register is

\[
\boxed{b_{\min}=\lceil\log_2s\rceil.}
\]

This is the precise computational version of “the lower layer is missing a
distinction supplied from above.”

## 4. Conservation-law descent

For a Boolean upper invariant \(I:X\to\{0,1\}\), a genuine lower invariant
exists only if both

\[
I(Tx)=I(x)
\]

and

\[
\pi(a)=\pi(b)\Longrightarrow I(a)=I(b)
\]

hold. The first condition is upper conservation. The second says the invariant
is observable below. The engine returns a counterexample for either failure.

## 5. Input language

`RBE-LAW` version 1 uses zero-based finite state labels:

```text
RBE-LAW 1
upper 4
lower 2
transition 1 0 3 2
projection 0 1 0 1
```

The vectors contain one entry for every upper state. `transition[x]` is
\(T(x)\); `projection[x]` is \(\pi(x)\).

Run:

```text
reality-bit-engine law-demo
reality-bit-engine law-analyze examples/law-clean.rbelaw
reality-bit-engine law-analyze examples/law-hidden.rbelaw
reality-bit-engine law-simulate examples/law-hidden.rbelaw 2 12
reality-bit-engine law-invariant examples/law-clean.rbelaw 0011
```

The provided examples demonstrate clean descent, a one-hidden-bit repair, and
a distinction that requires two refinement rounds to propagate into the
visible future.

## 6. What has and has not been proved

For every admitted finite table, the factorization result, refinement,
invariant result, and certificate are exhaustive finite proofs. The program can
therefore test a proposed layer hierarchy without guessing.

It does not infer nature's state set, transition, projection, or probability
measure from theology. To discover a physical law, those objects must be fitted
from measurements and then predict data not used in fitting. A model that calls
every residual “higher-dimensional action” is not falsifiable and is rejected
by the engine's design.

The cycle-twist map from `CYCLIC_DIMENSIONS.md` can itself be used as \(T\).
Analyzing it with an observation \(\pi\) then decides whether one full winding
induces a self-contained law at the observed layer.
