Pith. sign in
module module high

IndisputableMonolith.Patterns.GrayCycleGeneral

show as:
view Lean formalization →

The module defines the BRGC path as the explicit map from Fin(2^d) into the space of d-bit patterns. Researchers constructing Hamiltonian cycles on hypercubes cite it for the general-dimensional case. The module assembles the recursive BRGC definition from its imports into a single path function.

claimThe binary-reflected Gray code path is the function $brgcPath : \Fin(2^d) \to (\Fin d \to \Bool)$.

background

Pattern d is the state space of d-bit strings, realized as functions Fin d to Bool. Adjacency holds when two patterns differ in exactly one coordinate. GrayCode supplies the recursive BRGC construction: BRGC(0) equals the singleton list containing 0, with the standard doubling step that prepends a bit and reverses the second half. GrayCycle upgrades counting facts to an explicit adjacent cycle of length 2^d that visits every pattern once. GrayCycleBRGC gives the axiom-free recursive realization of such a cycle for arbitrary d.

proof idea

This is a definition module, no proofs.

why it matters in Recognition Science

The module supplies the general BRGC path that feeds explicit cycle constructions used by GrayCycle and GrayCycleBRGC. It realizes the Hamiltonian path on the hypercube Q_d without axioms, supporting downstream coverage and enumeration results in the Patterns domain.

scope and limits

depends on (5)

Lean names referenced from this declaration's body.

declarations in this module (15)