Hybrid Hierarchical Representation of Numbers
Based on the Zeckendorf System
A Synthesis of Sparsity and Efficiency
Vladimir Veselov | Russian Academy of Sciences, Moscow | February 26, 2026
Abstract
This paper proposes a novel approach to the representation and processing of non-negative integers, combining the hierarchical sparse weight structure introduced by V. Veselov with the canonical Zeckendorf representation based on Fibonacci numbers. The hybrid model is designed for compact storage and accelerated arithmetic processing of giant numbers with extremely low density of non-zero “units” (). Empirical estimates indicate a potential speedup of 100–500 times compared to standard arbitrary-precision libraries for specific problem classes in cryptography and computer algebra.
Modules
6
Lean 4 files
Theorems
24
Machine-verified
Lines
872
Proof code
Sorry
0
Zero gaps
Audit Rounds
4
Hostile audits passed
Paper ↔ Proof Correspondence
Every section of the paper that defines a structure, algorithm, or theorem has a corresponding Lean 4 module with a machine-checked proof. Sections without a Lean counterpart are expository (introduction, applications, conclusion).
| Paper Section | Lean Module | Status |
|---|---|---|
| 1 | expository | N/A |
| 2.1 | WeightSystem.lean | PROVED |
| 2.2 | FibIdentities.lean | PROVED |
| 2.3 | HybridNumber.lean | PROVED |
| 2.4 | Normalization.lean | PROVED |
| 3.1 | Addition.lean | PROVED |
| 3.2 | Multiplication.lean | PROVED |
| 3.3 | Normalization.lean | PROVED |
| 4 | Multiplication.lean (density) | PROVED |
| 5 | expository | N/A |
| 6 | expository | N/A |
| 7 | expository | N/A |
| 8 | expository | N/A |
Proof Modules
Each module below shows two views. Mathematics renders the definitions and theorems in standard mathematical notation. Lean 4 shows the corresponding formal proof code.
WeightSystem
HeytingLean/Bridge/Veselov/HybridZeckendorf/WeightSystem.lean | 78 lines | Paper 2.1 Weight System
Super-exponential weight hierarchy defining the level structure of hybrid numbers.
Definitions
Recurrence defining the weight sequence
Verified Theorems
FibIdentities
HeytingLean/Bridge/Veselov/HybridZeckendorf/FibIdentities.lean | 44 lines | Paper 2.2 Fibonacci Coefficients
Fibonacci recurrence identities used by intra-level normalization rewrite rules.
Definitions
Lazy Zeckendorf payload evaluation via Fibonacci sum
Verified Theorems
HybridNumber
HeytingLean/Bridge/Veselov/HybridZeckendorf/HybridNumber.lean | 141 lines | Paper 2.3 Structure of a Hybrid Number (Def 2.1)
Core hybrid number type as a finitely-supported map from levels to Zeckendorf payloads, with evaluation and embedding.
Definitions
A hybrid number is a finitely-supported function from levels to payloads
Total semantic value: weighted sum over active levels
Embed a natural number at level 0 using its canonical Zeckendorf representation
Verified Theorems
Addition
HeytingLean/Bridge/Veselov/HybridZeckendorf/Addition.lean | 60 lines | Paper 3.1 Addition (Algorithm 1)
Lazy level-wise addition by payload concatenation, followed by normalization for canonical output.
Definitions
Canonical addition: lazy merge then full normalization
Verified Theorems
Normalization
HeytingLean/Bridge/Veselov/HybridZeckendorf/Normalization.lean | 353 lines | Paper 2.4 + 3.3 Normalization (Algorithms 1, 3)
Two-stage normalization: bounded intra-level rewriting via Fibonacci identities, then inter-level Euclidean carry propagation.
Definitions
Single rewrite step using Fibonacci identities
Inter-level carry: Euclidean division propagates overflow upward
Verified Theorems
Multiplication
HeytingLean/Bridge/Veselov/HybridZeckendorf/Multiplication.lean | 213 lines | Paper 3.2 Multiplication (Algorithm 2) + Section 4
Structural multiplication via bounded level fold, with halving/doubling primitives and density analysis.
Definitions
Binary multiplication: bounded fold over B's support depth d
Density statistic measuring sparsity relative to the golden ratio
Verified Theorems
Module Dependencies
Hover over a module to trace its imports. Solid lines show direct dependencies; dashed lines show transitive imports used for specific operations.
Verified C Artifacts
Generated via CAB pipeline: Lean 4 → LambdaIR → MiniC → C. Each file carries a correctness certificate verifying semantic preservation.
hybrid_zeckendorf_weight.c
Weight sequence computation | from WeightSystem
hybrid_zeckendorf_fib.c
Fibonacci identity helpers | from FibIdentities
hybrid_zeckendorf_eval.c
Evaluation and constructors | from HybridNumber
hybrid_zeckendorf_add.c
Lazy addition | from Addition
hybrid_zeckendorf_normalize.c
Two-stage normalization | from Normalization
hybrid_zeckendorf_multiply.c
Structural multiplication | from Multiplication
Safe Rust Artifacts
Transpiled from verified C to idiomatic safe Rust. Raw pointers replaced with owned types, slices, and iterators. Correctness inherited from the C verification chain. Download the full crate (includes Cargo.toml and lib.rs) and run cargo test.
Cargo.toml
Crate manifest (cargo build) | from Crate
lib.rs
Crate root — declares all modules | from Crate
hybrid_zeckendorf_weight.rs
Weight sequence (safe Rust) | from WeightSystem
hybrid_zeckendorf_fib.rs
Fibonacci helpers (safe Rust) | from FibIdentities
hybrid_zeckendorf_eval.rs
Eval and constructors (safe Rust) | from HybridNumber
hybrid_zeckendorf_add.rs
Lazy addition (safe Rust) | from Addition
hybrid_zeckendorf_normalize.rs
Normalization (safe Rust) | from Normalization
hybrid_zeckendorf_multiply.rs
Multiplication (safe Rust) | from Multiplication
Provenance Chain
Research Paper
Veselov, V. “Hybrid Hierarchical Representation of Numbers Based on the Zeckendorf System.” February 2026. Defines Def 2.1, Algorithms 1-3, complexity analysis.
Lean 4 Formalization
6 modules, 24 theorems, 872 lines. Kernel-verified by Lean 4 + Mathlib. 4 rounds of hostile adversarial audit passed. Zero sorry/admit.
CAB-Certified C
Lean 4 → LambdaIR → MiniC → C. Each transformation step carries a certificate hash verifying semantic preservation.
Safe Rust
C → Rust transpilation. Ownership semantics, no unsafe blocks. Correctness inherited from verified C source.
Hybrid Zeckendorf | Paper → Proof → Code | Apoth3osis
All proofs machine-verified using Lean 4 and Mathlib
