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
+3
View File
@@ -76,6 +76,9 @@ typedef struct {
* the dictionary. The kernel fills it, when its build has ENABLE_HOTWORDS_CACHE; otherwise it is empty. */
v4_cell hot;
/* CONTEXT: the variable that holds the address of the vocabulary names are looked up in first (dict.f18) */
v4_cell context;
/* the block window: the word address of the slots the kernel copies
* blocks into (v4/blocks.h) */
v4_cell block_window;
+16
View File
@@ -53,6 +53,22 @@
#define V4_MESH_WORD_IDS 1024u /* word IDs a record is kept for: v3's DICTIONARY_SIZE, the Stadium's bound */
#define V4_REQ_WORD_DEFINED (-19)
#define V4_REQ_WORD_FORGOTTEN (-20)
/* the loops' words (capsules/v4/physics.4th; #189 Phase 7, Task 4): a word named by (baddr u), as v3's, or cells
* of the node's memory (addr u) */
#define V4_REQ_FREEZE_WORD (-21) /* ( baddr u -- ) */
#define V4_REQ_UNFREEZE_WORD (-22) /* ( baddr u -- ) */
#define V4_REQ_FROZEN (-23) /* ( baddr u -- flag ) */
#define V4_REQ_HEAT_STORE (-24) /* ( n baddr u -- ) */
#define V4_REQ_HEAT_FETCH (-25) /* ( baddr u -- n ) */
#define V4_REQ_Q_VARIANCE (-26) /* ( addr u -- q ) */
#define V4_REQ_INFER_SLOPE (-27) /* ( addr u -- q ) */
#define V4_REQ_INFER_WIDTH (-28) /* ( addr u -- n ) */
#define V4_REQ_INFER_RUN (-29) /* ( -- ) */
#define V4_REQ_INFER_WINDOW (-30) /* ( -- u ) */
#define V4_REQ_INFER_DECAY (-31) /* ( -- q ) */
#define V4_REQ_INFER_VARIANCE (-32) /* ( -- q ) */
#define V4_REQ_INFER_FIT (-33) /* ( -- q ) */
#define V4_REQ_INFER_EARLY (-34) /* ( -- flag ) */
typedef struct {
v4_uheat_t calls; /* every call since the word was defined */
v4_uheat_t since; /* calls since the owner last charged them */