⚖️ Strictly AS-IS Archival Documentation: Provided free of charge under the MIT License without warranty, financial/gambling advice, or technical support of any kind.

.v3bin — Zero-Copy Binary Table Format & the 1.3 GB Combinatorial Vault (data-engineering spec)

Audience: data engineers, Rust/CUDA/NumPy developers.
TL;DR: 13 flat, little-endian, mmap-able tables with a 64-byte header, 39,077,004 exhaustively enumerated k-subset bitmasks, bootstrap statistics, covering designs and Pareto portfolios — reproducible from source, SHA-256-pinned, bit-exact between GPU and CPU, archived with a DOI. You can read every table from Python in one line with numpy.memmap; the lottery application that produced them is irrelevant to using them as a dataset.
Permanent archive: https://doi.org/10.5281/zenodo.23992530 (CERN Zenodo, concept DOI → latest version). Source: github.com/quantbotsoftware/quantum-lab-649-rust-core.

1. Why a custom format

The engine needs to scan the entire universe of tickets of several games (C(49,6) = 13,983,816 · C(40,5) = 658,008 · C(40,6) = 3,838,380 · C(45,5)×20 = 24,435,180) on every evaluation, from both a 24-thread AVX2/POPCNT CPU path and a CUDA kernel, without deserialisation, allocation or copying. Requirements that ruled out JSON/CSV/Parquet/Arrow for the hot path:

RequirementDesign decision
Zero-copy on open, O(1) random accessFixed-size records, 64-byte header, memmap2::Mmap (Rust) / numpy.memmap (Python)
Same bytes consumed by CPU and GPURecords are plain u64 / f32 little-endian, uploaded to VRAM as-is via pinned DMA (64 MiB chunks)
Verifiable integrity, no silent corruptionHeader carries kind/n/k/count/record size; file length must equal 64 + count × record_bytes; SHA-256 of every file pinned in VAULT_MANIFEST.json
ReproducibleEvery table is deterministically regenerated by rust-singularity-core-v3 vault-init (lexicographic enumeration, partitioned by first element so the global order is exact even in parallel)
Immutable after generationFiles are written once and kept 0444; the observatory reports is_0444 + header_valid for every table in its snapshot so tampering is visible

2. Header (64 bytes, little-endian)

OffsetSizeTypeFieldValue / meaning
08bytesmagic51 4C 56 33 56 4C 54 01 = "QLV3VLT\x01"
84u32version3
124u32table_kindsee §3
164u32n_poolsize of the number pool (49, 40, 45 …)
204u32k_picknumbers per ticket / draw (5, 6 …)
248u64record_countnumber of records
328u64record_bytesbytes per record (8, 24, 64, 128)
4024bytesreservedall zero

Invariant: file_size == 64 + record_count × record_bytes. Readers must reject any file violating magic, version or size (the reference implementation does: vault::verify_header).

3. Table kinds & the 13 files

#Filekindnkrecordsrec BContent
1loto_649_masks.v3bin149613,983,8168every 6-subset of {1..49} as a u64 bitmask, lexicographic
2loto_540_tickets.v3bin1405658,0088every 5-subset of {1..40}
3loto_540_draws6.v3bin24063,838,3808every 6-subset of {1..40} (draw space of 5/40)
4joker_base45_masks.v3bin14551,221,7598every 5-subset of {1..45}
5joker_full_24m.v3bin345524,435,18085-subset in bits 0..44 + bonus ball (1..20) − 1 in bits 48..52
6cdv3_wheels_catalog.v3bin5——6,9268covering-design ("wheel") catalogue, CD-V3
7cdv3q_wheels_catalog.v3bin6——6,9268CD-V3Q variant
8pmv3_boot1000_649.v3bin449613,983,81624per-ticket 6 × f32: [ev, q05, q25, q50, q75, q95] from a 1,000-replicate bootstrap
9pmv3_boot1000_540.v3bin4405658,00824idem, 5/40
10pmv3_boot1000_joker.v3bin445524,435,18024idem, Joker (586 MB — the largest table)
11c3v2_pareto_portfolios.v3bin7——13,9458exact Pareto-frontier portfolios, C3-V2
12c4v2_mc1m_summary.v3bin849690128Monte-Carlo (1M) summary rows, C4-V2
13ckv6_power_10k.v3bin9——10,00064causal-power trajectories, CK-V6

Total: 1,291.8 MB, 39,077,004 ticket records in kinds 1–3. Exact sizes and SHA-256 for each file: vault/VAULT_MANIFEST.json.

Bitmask encoding (kinds 1–3): bit i−1 set ⇔ number i is in the ticket. Popcount of every record equals k. The enumeration is lexicographic, which makes the file also a perfect-hash: the rank of a ticket is its index (combinatorial number system), so "ticket → row" is O(k) arithmetic, no search.

4. Reading the tables without the application

Python / NumPy (zero-copy)

import numpy as np, struct
def open_v3bin(path):
    hdr = open(path, "rb").read(64)
    magic, ver, kind, n, k, count, rec = struct.unpack_from("<8sIIIIQQ", hdr, 0)
    assert magic == b"QLV3VLT\x01" and ver == 3
    dtype = {8: "<u8", 24: ("<f4", 6), 64: ("<u8", 8), 128: ("<u8", 16)}[rec]
    return np.memmap(path, dtype=dtype, mode="r", offset=64, shape=(count,)), (kind, n, k)

masks, (kind, n, k) = open_v3bin("vault/loto_649_masks.v3bin")
balls = [i + 1 for i in range(n) if (int(masks[0]) >> i) & 1]      # → [1, 2, 3, 4, 5, 6]
ev, (_, _, _) = open_v3bin("vault/pmv3_boot1000_649.v3bin")        # shape (13983816, 6) float32

Measured on the reference laptop (NVMe): np.memmap open 0.2 ms; full-table popcount check of 13.98 M masks 0.55 s in pure NumPy.

Rust (reference implementation)

memmap2::MmapOptions::new().map(&file) → verify_header(&mmap, kind, n, k, count) → bytemuck-style reinterpret of &mmap[64..] as &[u64]. See src/vault.rs (MappedVaultUniverse::open_or_build) and src/v3_observatory.rs (ALL_13_V3BIN_FILES).

Verify integrity

cd vault && sha256sum -c <(python3 -c "import json;[print(f['sha256'],' ',f['filename']) for f in json.load(open('VAULT_MANIFEST.json'))['files']]")

5. Gate A0 — bit-exact GPU ⇄ CPU parity, measured

rust-singularity-core-v3 a0-parity maps the Vault, DMA-uploads the 39 M masks to VRAM (353 MB resident), runs the popcount/match kernels on the GPU and the AVX2/POPCNT path on all CPU threads, and compares results bit-for-bit. Real run, 2026-11-06, Intel i7-14650HX (24 threads) + RTX 5060 Laptop (sm_120, 26 SMs, 8 GB):

TableGPU (ms)CPU 24T (ms)Zero-diff
6/49 masks (13.98 M)7.668.99✅
5/40 draws6 (3.84 M)2.201.86✅
Joker full (24.44 M)14.5312.96✅

VRAM upload 45 ms for 353 MB via pinned 64 MiB chunks · process RSS 616 MB (guard limit 11.5 GiB) · GPU throughput 13.9 G ops/s.

Honest reading: for this memory-bound popcount workload a modern 24-thread CPU with POPCNT matches a laptop GPU — the GPU path exists for the heavier PM-V3 / CK-V6 kernels, and Gate A0's purpose is parity (the same bytes give the same answers on both devices), not a speed-up claim. positive_claims_allowed is hard-wired to false in every report the engine writes.

6. Reproducing the Vault from source

./scripts/download_vault.sh          # 1.3 GB from Zenodo (latest version resolved at runtime), SHA-256 verified
# or regenerate the tables locally (parallel lexicographic enumeration; the PM-V3 bootstrap tables are the slow part):
cargo build --release && ./target/release/rust-singularity-core-v3 vault-init

Build requirements and CUDA arch overrides: see QUANTUM_RUST_CORE_V3_USER_MANUAL.md.

7. What this is not

The tables enumerate combinatorial spaces and store statistics computed from historical draws. They do not — and mathematically cannot — predict future lottery draws. They are published as a reproducible engineering artefact (format, integrity chain, GPU/CPU parity harness, HPC build) under MIT, strictly AS-IS.