feat(contract): Vsa16kF32 switchboard carrier + 16K algebra#253
Merged
Conversation
Ships the Click-native 16,384-D f32 VSA carrier as a first-class CrystalFingerprint variant with six algebra primitives. New in crystal/fingerprint.rs: - CrystalFingerprint::Vsa16kF32(Box<[f32; 16_384]>) — 64 KB, inside-BBB only, 1:1 bit-addressable with Binary16K - vsa16k_zero() — allocate zeroed carrier - binary16k_to_vsa16k_bipolar() — bit → ±1.0 (lossless) - vsa16k_to_binary16k_threshold() — >0 → bit set (inverse) - vsa16k_bind() — element-wise multiply (role assignment) - vsa16k_bundle() — element-wise add (CK-safe superposition) - vsa16k_cosine() — similarity on the 16K carrier - to_vsa10k_f32() arm for Vsa16kF32 → 10K downcast - byte_size() arm (65_536 bytes) - 7 new tests (16 total in module): byte_size, bipolar roundtrip, bipolar values, bind self-inverse, bundle similarity, bundle-then-unbind role recovery, 16K→10K projection finiteness Exported from crystal::mod re-exports. All 174 contract tests pass, 11 callcenter tests pass. No regressions. This is expansion-list item #1 from the SoAReview sweep (PR #252). The type must exist before FingerprintColumns.cycle can migrate from Box<[u64]> to the f32 carrier (PR B, next). Board-hygiene (same commit): - LATEST_STATE.md crystal/ inventory updated - EPIPHANIES.md prepended with Vsa16kF32 FINDING entry https://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CrystalFingerprint::Vsa16kF32(Box<[f32; 16_384]>)— the Click-native 64 KB switchboard carrier per CLAUDE.md §The Click and I-VSA-IDENTITIES iron rule.vsa16k_zero,binary16k_to_vsa16k_bipolar,vsa16k_to_binary16k_threshold,vsa16k_bind,vsa16k_bundle,vsa16k_cosine.to_vsa10k_f32()andbyte_size()for the new variant. Exports fromcrystal::mod.Context
This is expansion-list item #1 from the SoAReview sweep (PR #252 §6). The carrier type must exist before
FingerprintColumns.cycleincognitive-shader-driver::bindspacecan migrate fromBox<[u64]>(Binary16K) to the f32 carrier.Inside-BBB only.
Vsa16kF32does NOT crossExternalMembrane. The Arrow-scalar commit tier uses Binary16K (Index regime) or CAM-PQ scent (Argmax regime).What changed
crystal/fingerprint.rscrystal/mod.rs.claude/board/LATEST_STATE.md.claude/board/EPIPHANIES.mdTest plan
cargo test -p lance-graph-contract --lib— 174 pass, 0 failcargo test -p lance-graph-callcenter --lib— 11 pass, 0 failbinary16k_to_vsa16k_bipolarroundtrip is lossless (strict ±1 → threshold)vsa16k_bindis self-inverse for bipolar keysvsa16k_bundlethen unbind recovers role-bound content above noise floorvsa16k_to_vsa10kprojection produces finite valueshttps://claude.ai/code/session_01SbYsmmbPf9YQuYbHZN52Zh
Generated by Claude Code