racah 0.2.0

Racah-Wigner calculus for compact Lie groups: exact SU(2) recoupling, and runtime Clebsch-Gordan / F- / R-coefficient generation for SU(N), SO(N), and Sp(2N)
Documentation
# Coefficient-cache trim semantics

> **AI-generated, for agentic coding.** This document was written by an AI agent
> as reference material for AI agents (and humans) working on this repository.
> It may contain errors — check it against the code and tests rather than
> trusting it blindly.

Fresh release processes measured revision `78491855d1023545121020454989a6dee6859c6e`
on macOS/aarch64 with rustc 1.96.0. Five samples per mode used:

```text
for mode in retained partial zero; do for sample in 1 2 3 4 5; do RACAH_TRIM_REVISION=78491855d1023545121020454989a6dee6859c6e COEFFICIENT_CACHE_TRIM_SAMPLE=$sample CARGO_TARGET_DIR=/private/tmp/racah-67-trim-release-7849185 cargo test --release --features cgc-gen --lib coefficient_cache_trim_$mode -- --ignored --nocapture; done; done
```

The SU(2), SU(3), and SU(4) workload first fills 3j, 6j, and SU(N)-product tiers,
then retains, partially trims, or zero-trims them before a second workload.
Elapsed time therefore measures warm hits, mixed regeneration, or full regeneration.

| mode | elapsed ns, median ± MAD |
| --- | ---: |
| retained | 1417 ± 42 |
| partial | 71583 ± 1249 |
| zero | 194125 ± 8625 |

The JSONL artifact records targets, trim reports, post-rerun tier statistics,
requested-live allocation accounting, and RSS. Charged-entry bytes are distinct
from requested-live memory and RSS. RSS comes from macOS `ps`; this test-only
collector has no Linux RSS implementation and makes no RSS-release claim.
`RACAH_TRIM_REVISION` is embedded at compile time through `option_env!`; the
revision-specific target avoids reusing a release binary built with another value.
Later test/documentation commits do not change the measured harness revision.