feat(v4): Phase 7 Task 4 -- the loops' words: v3's physics-freeze and inference words, F18 asking the kernel (#189)

capsules/v4/physics.4th, a kernel capsule on Hera (blocks 8200-8201): FREEZE-WORD UNFREEZE-WORD FROZEN?
HEAT! HEAT@ DECAY-RATE@ Q.VARIANCE INFER-DECAY-SLOPE INFER-WINDOW-WIDTH INFER-RUN INFER-WINDOW@ INFER-DECAY@
INFER-VARIANCE@ INFER-FIT@ INFER-EARLY-EXIT@ -- each a KERNEL-WORD, requests -21..-34 (v4/mesh.h), served by
the kernel on any node: "The compudynamics is stadium/fabric" (Captain Bob, 2026-11-14). A word is named as
v3's, the newest visible entry of CONTEXT then FORTH (the image gains CONTEXT's address); the arithmetic is
v4/system/inference.c, v3's to the bit. Q48.16 results are v4's doubles (low cell, then high). HEAT! starts
the word's decay from now. Test first with v3's POST cases in v4's address units: test_mesh_boot.c 86
checks, 95 on, 83 without opcode physics. docs/reference/v4-dictionary.tsv: the 15 words (392 live).
amd64 PASS, word_count=392. Not pushed (held to the end of Phase 7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-14 00:40:27 +00:00
parent e1b731f444
commit 28ffed8f57
12 changed files with 214 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
Block 8200
( physics.4th -- the words of the loops, v3's physics-freeze )
( and inference words, on a node the kernel keeps records )
( for: each asks its kernel, which keeps every word's and )
( opcode's physics and does the arithmetic -- compudynamics )
( is the Stadium/fabric's: #189 Phase 7, Task 4, Captain Bob )
( 2026-11-14. The requests, by their numbers in v4/mesh.h: )
-21 KERNEL-WORD FREEZE-WORD ( baddr u -- )
-22 KERNEL-WORD UNFREEZE-WORD ( baddr u -- )
-23 KERNEL-WORD FROZEN? ( baddr u -- flag )
-24 KERNEL-WORD HEAT! ( n baddr u -- )
-25 KERNEL-WORD HEAT@ ( baddr u -- n )
-26 KERNEL-WORD Q.VARIANCE ( addr u -- d )
-27 KERNEL-WORD INFER-DECAY-SLOPE ( addr u -- d )
-28 KERNEL-WORD INFER-WINDOW-WIDTH ( addr u -- n )
-29 KERNEL-WORD INFER-RUN ( -- )
Block 8201
( and what the last INFER-RUN, or the heartbeat's, found; )
( a q is a Q48.16 double, as qmath.f18's )
-30 KERNEL-WORD INFER-WINDOW@ ( -- u )
-31 KERNEL-WORD INFER-DECAY@ ( -- d )
-32 KERNEL-WORD INFER-VARIANCE@ ( -- d )
-33 KERNEL-WORD INFER-FIT@ ( -- d )
-34 KERNEL-WORD INFER-EARLY-EXIT@ ( -- flag )
( v3's DECAY_RATE_PER_US_Q16, its compile-time constant )
1 CONSTANT DECAY-RATE@