Add Swift/Metal SL(2,C) LCT spatial visualizer for visionOS - #2
Merged
Conversation
…lizer 8,900-word companion to the codex/alok-781-lct-spatial branch: SL(2,R)->SL(2,C) background, the b=0 finite-grid branch, component-by-component walkthrough of LCTSpatial/LCTSpatialMetal/LCTVision with file:line citations, numerical stability constants, all 10 tests, and build/consumption instructions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Anonymized 2-page NeurIPS-2023-format abstract of the pre-registered LCT-layer study: structure beats rank-1 factorization at matched parameters, buys wall-clock at width >=1024, and never beats a matched narrower dense trunk; the five-harness-bug audit is the methodology contribution. Deadline 2026-07-30 via CMT; tracked as Linear ALOK-808. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Adds a reusable Swift package and an Apple Vision Pro app for interactively exploring SL(2,C) linear canonical transforms by direct manipulation — the spatial companion to the Python
lct-activationstudy.LCTSpatial(product 1):Complex32, arbitrary-rankComplexFieldwith a separable CPU reference LCT (including the centered finite-gridb = 0branch√d·exp(iπcd·y²/n)·f(dy)),SL2CMatrix+SL2CConstraint(determinant lock with automatic pivot away from ill-conditioned denominators), mesh geometry, OBJ import, surface voxelization, and Atlas-style phase coloring (hue = phase, luminance = magnitude).LCTSpatialMetal(product 2): GPU separable complex-field transformer (regular andb = 0kernels) and aLowLevelMesh-backed RealityKit canonical preview.LCTVision(app): volumetric visionOS explorer — four Argand-pad scrub controls fora, b, c, dwith an AUTO-solved dependent coefficient, presets (Identity/Fourier/FrFT/Fresnel/Complex Lens), FrFT orbit animation, 42 ms-debounced true-field transforms, OBJ import, and side-by-side canonical preview vs. true sampled-field spectral cloud.Package.swiftmakes the repo consumable as a Swift package.dwithb = 0is explicitly refused rather than silently projected — samplingf(dy)off the real grid would invent a contour.Verification
swift testfrom repo root: 10/10 pass (CPU/Metal parity on FrFT and singular branches within 3e-4, determinant lock + pivot, Fourier impulse, OBJ voxelization).uv run pytest: 162 passed, 3 skipped (Python side untouched; change is purely additive, +2.8k lines).Companion guide
docs/guides/visionos-spatial-visualizer-dev-guide.md— an 8,900-word hand-build guide (math background from SL(2,R) metaplectic theory to the SL(2,C) boundary, every component with file:line citations, numerical-stability constants, all 10 tests, build/consume instructions).Tracked in Linear: ALOK-781 (visualizer, Done), ALOK-808 (BayLearn 2026 abstract).
🤖 Generated with Claude Code