Skip to content

Prism model: ncm's plasticity as the neuromorphic standard; Pages closure v2 - #129

Merged
afflom merged 2 commits into
mainfrom
claude/project-thread-5h3yzm
Nov 10, 2026
Merged

afflom merged 2 commits into
mainfrom
claude/project-thread-5h3yzm

Conversation

@afflom

@afflom afflom commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Requested by Alex · project thread

v0.4 lane 4.

The model: Uorc.Neuromorphic

src/Uorc/Neuromorphic.lex.tex states the plasticity of every learning part of the ncm coder as the Prism neuromorphic standard (after verdant-resonance Foundation/Neuromorphic/V1). It uses the codec's own integer (offset) form, and its bounds are kernel-checked. All 14 theorems pass lexlean verify locally with LexLean 0.4.0 and Lean 4.32.1.

Theorem Bound
hebbianBoundsHold Every mixer weight stays within ±2^22 under the bounded Hebbian rule.
potentiationNeverLowersHolds, depressionNeverRaisesHolds A weight moves in the direction of the Hebbian sign.
plasticityBoundsHold, plasticityAt* The plasticity 24 + 104·4096/(4096+pos) lies in [24, 128] per 65536. Closed vectors: 128, 76, 25, 24.
laneFitHolds x·err·plasticity ≤ 1,073,217,536, which is below 2^31, so the AVX2/NEON 32-bit lanes cannot overflow. One bit changes a weight by at most 16,376.
slotRatesBoundedHolds, slotRateAtConsolidation, slotCountBoundHolds, slotStepWithinGapHolds Slot rates lie in [510, 43690]. A slot never steps past its gap to the coded bit, and it consolidates at count 127.
refinementBoundsHold Points of the probability maps stay within 16 bits.

Omega has no nonlinear arithmetic, so the products are proved through scale, the product defined by its recursion. scaleIsMultiply bridges scale to *, and each bound is carried in a single induction. For plasticity, the bound is proved over the quotient's defining inequality, because Nat division by a variable does not unfold in the kernel.

The model is registered as UC-NEU-01 (kernel_theorem), with its projections regenerated.

The native coder

The native coder now reads its constants from ncm::standard. Its output stays byte-identical, and the ncm round-trip and kernel-agreement tests pass. crates/uorc/tests/neuromorphic.rs checks that every native constant equals the model's and that the model's theorem inventory is complete.

The module is separate from the codec modules. The basis identity and the export are unchanged, so lanes 1 to 3 can change the coder independently. When their coder changes land, the constants test will flag any drift.

Pages: browser closure v2

This follows PrismPM SPEC §1.2.1.

  • Closure files: the site is index.html, app.css, app.js, uorc.js, uorc_bg.wasm and provenance.json, plus the ten Hologram brand files. Those are the Geist, Geist Mono and Archivo fonts, the OFL licences, icon.svg, icon-512.png and manifest.webmanifest. All files are flat and same-origin, the page is installable, and nothing loads from a remote origin.
  • Vendored brand files: they are copied byte for byte from PrismPM (vendor/hologram-brand) and checked against their MANIFEST.sha256.
  • Site assembly: scripts/site.mjs builds and checks the closure. provenance.json (uorc/browser-provenance/2) names the SHA-256 of every other file, and the release version moved there from version.txt.
  • Benchmark page: it stays beside the closure.
  • Wiring: release.yml assembles the site with the script, and the release wasm bundle keeps its uorc.wasm name. just test runs scripts/site.test.mjs, which covers the exact file set, the digests, remote loads and the manifest bytes.
  • Receipts: the formal list in factory/graph.json excludes vendor/hologram-brand/ and scripts/site., so changes to the brand files or the site script do not rerun the formal legs.

Local checks

  • lexlean check --all: 341 modules.
  • lexlean verify of the new module: passes.
  • lexlean lock --check: passes.
  • cargo clippy -p uorc --all-targets -D warnings: clean.
  • cargo test -p uorc (ncm and neuromorphic tests): passes.
  • repo-conformance bdd: passes.
  • node --test scripts/site.test.mjs and factory.test.mjs: pass.
  • xtask validate: passes up to the SDK-only bootstrap audit.

CI on ce21a83 (merged with main after #128): all checks pass.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_013Asa3MmVJi8mhN3UZ6rgwH

…sure v2

Uorc.Neuromorphic (src/Uorc/Neuromorphic.lex.tex) states the plasticity of
every learning part of the ncm coder as the Prism neuromorphic standard, in
the codec's own integer (offset) form, with kernel-checked bounds:

- hebbianBoundsHold: every mixer weight stays within +-2^22 under the
  bounded Hebbian rule; potentiation never lowers and depression never
  raises a weight.
- plasticityBoundsHold: the plasticity 24 + 104*4096/(4096+pos) lies in
  [24, 128] per 65536 (closed vectors 128, 76, 25, 24 by decide).
- laneFitHolds: |x * err * plasticity| <= 1,073,217,536 < 2^31, so the
  SIMD kernels' 32-bit lanes cannot overflow, and one bit changes a weight
  by at most 16,376.
- slot plasticity: rates 131072/(2n+3) lie in [510, 43690], a slot never
  steps past its gap to the coded bit, and consolidates at count 127.
- refinementBoundsHold: probability-map points stay within 16 bits.

The products are proved through `scale`, the product by its recursion
(scaleIsMultiply bridges it to `*`), with each bound carried in one
induction, since omega has no nonlinear arithmetic.

The native coder reads the model's constants from ncm::standard (byte
identical output); tests/neuromorphic.rs holds them equal to the model's and
the theorem inventory complete. Registered as UC-NEU-01 (kernel_theorem).

The Pages site becomes a Prism browser closure v2 (PrismPM SPEC 1.2.1):
index.html, app.css, app.js, uorc.js, uorc_bg.wasm, provenance.json and the
ten Hologram brand files (fonts, licences, icons, manifest.webmanifest),
flat and same-origin, installable, with no remote load. The brand files are
vendored byte-identical to PrismPM's (vendor/hologram-brand).
scripts/site.mjs assembles and checks the closure (provenance.json names
every file's SHA-256); release.yml uses it and `just test` runs its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3MmVJi8mhN3UZ6rgwH
@afflom afflom self-assigned this Nov 10, 2026
…-5h3yzm

# Conflicts:
#	.github/workflows/release.yml
#	scripts/ci-receipt.sh
@afflom
afflom merged commit 632ed9a into main Nov 10, 2026
15 checks passed
afflom pushed a commit that referenced this pull request Nov 10, 2026
afflom pushed a commit that referenced this pull request Nov 10, 2026
Keeps #129's formal exclusions (vendor/hologram-brand/, scripts/site.)
and excludes scripts/site. from the scripts set too: only the rest legs
run site.test.mjs, and they read the whole tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3LdDSxZc5dyuEbM7w7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants