pith. sign in
module module high

IndisputableMonolith.Patterns.GrayCycle

show as:
view Lean formalization →

The GrayCycle module defines the OneBitDiff predicate for patterns differing in exactly one coordinate (Hamming distance 1) together with supporting Gray cycle and cover notions. Researchers on ledger parity bridges or general-D Gray constructions cite it as the combinatorial base layer. The module consists of definitions and elementary properties with no complex proofs.

claimLet $p,q$ be patterns. The predicate OneBitDiff$(p,q)$ holds precisely when the Hamming distance between $p$ and $q$ is 1. GrayCycle and GrayCover are the associated cycle and cover structures built from such one-bit adjacencies.

background

This module sits in the Patterns domain and imports IndisputableMonolith.Patterns plus Mathlib. Its core definition, OneBitDiff, states that two patterns differ in exactly one coordinate. Sibling definitions include GrayCycle, GrayCover, grayCover_min_ticks, grayCover_eight_tick_min, pattern3, gray8At and grayCycle3Path, all operating on finite binary or integer vectors under single-coordinate flips. The setting supplies the adjacency primitive required by downstream parity and Gray-code work.

proof idea

This is a definition module, no proofs.

why it matters in Recognition Science

It supplies the one-bit adjacency predicate used by LedgerParityAdjacency (the mathematical core of Workstream B2 on single atomic updates inducing one-bit parity changes) and by GrayCycleBRGC (axiom-free recursive BRGC construction) together with GrayCycleGeneral (bounded BRGC generalization for arbitrary dimension). The module therefore anchors the combinatorial foundation for both the ledger-parity bridge and the general-D Gray-cycle constructions in the Recognition framework.

scope and limits

used by (3)

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