A machine-checked mathematical corpus on Function-Defined Radix Systems — from positional notation as algebra, through certified digit-emission engines, to the geometry and conservation laws of coupled radix networks.
This repository is a long-form mathematical research program carried out
spec-first in a single document and machine-checked item by item in Lean 4
against Mathlib. The
specification (docs/fdrs.md) has grown through fourteen
phases of numbered definitions, theorems, and propositions; every numbered
item has a Lean proof, and the correspondence is maintained by tooling rather
than by prose claims. The default build carries zero axioms and zero
sorries (work-in-progress wavelet-packet experiments are excluded from the
default target).
The subject is what number representation becomes when its structure is a free parameter. Classical positional notation fixes a base; FDRS lets the radix at each position be computed by a function — of the position, the prefix already written, an external context, or the state of another number line entirely. The corpus develops what survives each generalization and what breaks, with the boundary in every case proven, not asserted.
The arc: foundations (canonical bijections with ℕ, the odometer, the prefix ultrametric, a conditional-expectation multiresolution analysis on mixed-radix cylinders, and the bridge to analytic number theory) → the three modes of function-defined radices and the design space of engineered ultrametrics → multi-timeline routing and spatialized digits → generated gauges, where continued-fraction timelines replace base products and digit emission becomes a certified act → the synthetic place complex: coupled radix networks, their geometry, their conservation laws, and the precise obstructions separating them from numbers.
A sample chosen to show the range; the index maps every item to its proof.
Foundations and bridges.
- Canonical bijections between digit spaces and ℕ; the tick is
+1under decode and1-Lipschitz in the ultrametric; balls are exactly cylinders. - A discrete multiresolution analysis: block projections as conditional expectations, detail operators, L² Pythagoras, and the commutant theorem — an operator commutes with every scale projection iff it is scale-block-diagonal in the Haar/contrast basis.
- The cylinder-measurability bridge: a congruence condition is decidable from a positional prefix iff the modulus divides the place value (both directions, with the sharp converse) — the exact interface between the additive and multiplicative filtrations, including a constructive witness of their generic non-commutation.
Realizability. The full characterization of which ultrametrics are
realizable by sibling-uniform radix laws (Theorem 43): an ultrametric is
realizable iff every open ball is a prefix cylinder and every cylinder has
canonical diameter — proven in both directions, with the two conditions doing
provably separate work (the first pins the tree, the second pins the gauge)
(MetricRealizability.lean).
Certified emission engines (Phase 13). Continued-fraction timelines where
the gauge is generated rather than multiplied out, with Gosper-style
homographic/bihomographic engines that emit a digit only when every possible
continuation of the unread input forces it — the four-corner order trap at the
Archimedean place, the congruence trap at p-adic places, the admissibility
trap on finite grammars. Exact integer ledgers, no floating point anywhere;
√2·√2 emits nothing, honestly.
The adelic complex. Heterogeneous place-engines under one scheduler with
proven confluence; the product formula on ℚˣ in exact arithmetic; the
finite-precision gauge bound; and the rigidity boundary — an FDRS gauge
reproduces a p-adic place value iff its base is constantly p, so there are
no synthetic places on ℚ. A function-field keystone stakes the genuinely
synthetic instance (docs/function-field/).
The synthetic place complex (Phase 14). What survives when number lines
couple: any positive monotone prefix gauge induces an ultrametric with
ball = cylinder (both prior corpus metrics become instances); coupling
generically destroys the odometer while the geometry survives; conservation
migrates from product formulas — impossible for genuinely coupled systems, by
a machine-checked separability no-go — to interface balance laws
(issued = consumed + pending, proven for arbitrary coupling in any
commutative monoid of carries); no scalar gauge can metrize a concurrent
network (proven), forcing the observer-glued construction; and "bigger digit"
exists iff every coupling loop has trivial holonomy — with a verified
three-digit Penrose staircase on the other side of the boundary. Together with
ragged fibers and bilateral coupling, that gives three independent,
machine-checked obstructions separating coupled radix complexes from number
systems.
- Spec first.
docs/fdrs.mdis the single source of truth; Lean modules cite the numbered items they prove, and an erratum is preferred over a silent fix when the spec is wrong. - Ask the tooling, not the prose.
python3 scripts/fdrs-summaryscans the live source for axioms, sorries, stubs, and per-phase coverage; numbers in documentation are treated as stale by default. - Honest scope, as working practice. Every module carries an honest-scope
banner; design documents carry anti-confabulation ledgers; finite witnesses
use kernel
decide(nevernative_decide); classical results are cited as classical — the contribution is the connection and the verified artifact.
FdrsFormal/
├── Core/ # Radix sequences, bijections, finite/infinite spaces
├── Operations/ # Tick, predecessor, addition, subtraction
├── Topology/ # Ultrametric, compactness, filtration, odometer dynamics
├── FunctionSpaces/ # Projections, detail operators, Haar/contrast bases, commutant
├── NumberTheory/ # Dirichlet convolution, characters, valuations,
│ # the factorization lens, the measurability bridge
├── Integration/ # Dual filtrations, mediator lines, runtime algebra
├── Analysis/ # Digit-conditional signal analysis, the Fourier ceiling
├── Composition/ # Multi-timeline routing, deadlock-freedom, timing bounds
└── Modes/
├── VariableRadix/ # Mode I, realizability (Theorem 43), subshift gauges,
│ # the Gosper engine cluster
├── ContextDependent/ # Mode II oracles
├── ExtendedBase/ # Mode III: walls, wires, the spatial thermometer
├── BaseZeroSea/ # Phase 10 substrate dynamics, the linear-chain bridge
├── Adelic/ # Place engines, product formula (ℚˣ), gauge bound,
│ # rigidity, the AdelicLaw interface, function-field keystone
└── SyntheticPlace/ # Phase 14: gauge keystone, coupling, certificates,
# conservation + rigidity, network geometry, grading
FdrsFormal.lean is the root module aggregating the development; Main.lean
is a trivial executable entry point. Design records for the newer complexes
live in docs/synthetic-place/ and
docs/function-field/; superseded design documents
are archived under docs/archive/.
Requires the toolchain pinned in lean-toolchain via
elan; Mathlib is fetched by Lake at the
revision pinned in lake-manifest.json. The maintenance
tooling needs Python with pyyaml (requirements.txt).
lake exe cache get # prebuilt Mathlib (recommended)
lake build # the formalization
python3 scripts/fdrs-summary # live status: axioms, sorries, coveragedocs/TESTING.md covers the work-in-progress modules
outside the default target; docs/GENERAL_CONTEXT.md
documents the trust hierarchy of the generated metadata;
docs/notation.md is the symbol reference extracted from
live code.
This repository contains the Lean formalization, its build configuration, the
maintenance tooling, and the documentation needed to build and check it. It
intentionally excludes the SageMath and ML experiments, paper drafts, and
generated media that live alongside the formalization during development. It
is the canonical Lean artifact of the Hyphaeic variable-representation
research program (registry id project-fdrs-formal), built within the
workspace-math-proof-env toolchain (Lean 4 + Python + SageMath).
Licensed under the Hyphaeic Public License, Version 1.0. See LICENSE and NOTICE. Third-party components (Lean 4, Mathlib) are under their own licenses, as noted in NOTICE.