Release v2.2.0: EROFS ProtectSystem=strict test harness (34x stats-card fast-path), homepage /engineering/ & /math/ navigation wiring, and additive Guile Scheme lens + offline Z-combinator REPL
This commit is contained in:
1 parent
e599f34525
commit
49b7a195af
49 files changed
+2030
-177
No files matched your search
@@ -53,6 +53,7 @@ echo "[3/4] Verifying all active portal, /learn/, /quant/, graph, encyclopedia,
|
||||
ROUTES=(
|
||||
"/"
|
||||
"/assets/hs-group3-basalt-chamfer.css"
|
||||
"/assets/hs-guile-scheme-repl.js"
|
||||
"/donate/index.html"
|
||||
"/learn/index.html"
|
||||
"/learn/learn-app.js"
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hyperstitionstud.io/workspace-core",
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.0",
|
||||
"private": true,
|
||||
"description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hyperstitionstud.io/ciphers-aq",
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.0",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"license": "MIT"
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "hyperstitionstudio-core"
|
||||
version = "2.1.1"
|
||||
version = "2.2.0"
|
||||
description = "Shared PEP 420 common library (hyperstitionstud_io.*) for Base-36 AQ ciphers, offline CMUdict Ingglish phonetics, ReportLab/Pillow publishing, SHA-256 glossary isolation guards, local-config citation verification, and multi-format knowledge graphs."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
@@ -144,8 +144,8 @@ def main() -> int:
|
||||
})
|
||||
|
||||
manifest = {
|
||||
"version": "2.1.1",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.1.1",
|
||||
"version": "2.2.0",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:gallery:2.2.0",
|
||||
"total_items": len(items),
|
||||
"items": items,
|
||||
}
|
||||
|
||||
@@ -239,3 +239,86 @@ button.btn:not(.tactile-donate-btn):hover,
|
||||
border-radius: 50% !important;
|
||||
clip-path: none !important;
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
ADDITIVE GUILE SCHEME PEDAGOGICAL LENS & DOCKABLE IN-BROWSER Z-REPL (v2.2.0)
|
||||
============================================================================ */
|
||||
.hs-guile-toggle {
|
||||
height: 34px !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 0.4rem !important;
|
||||
padding: 0 0.72rem !important;
|
||||
background: var(--bg-panel) !important;
|
||||
border: 1px solid rgba(56, 189, 248, 0.55) !important;
|
||||
color: var(--cyan) !important;
|
||||
font-size: 0.72rem !important;
|
||||
font-weight: 700 !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
|
||||
html[data-guile-scheme-mode="on"] .hs-guile-toggle {
|
||||
background: rgba(16, 185, 129, 0.16) !important;
|
||||
border-color: var(--emerald) !important;
|
||||
color: var(--emerald) !important;
|
||||
}
|
||||
|
||||
.hs-guile-lambda-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--bg-void);
|
||||
border: 1px solid currentColor;
|
||||
font-weight: 700;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.hs-guile-cartridge {
|
||||
display: none;
|
||||
margin-top: 0.65rem;
|
||||
margin-bottom: 0.9rem;
|
||||
padding: 0.95rem 1.15rem;
|
||||
border-left: 3px solid var(--cyan) !important;
|
||||
}
|
||||
|
||||
html[data-guile-scheme-mode="on"] .hs-guile-cartridge {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hs-guile-triview {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 0.65rem;
|
||||
margin: 0.55rem 0;
|
||||
}
|
||||
|
||||
.hs-guile-box {
|
||||
background: var(--bg-void);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.55rem 0.7rem;
|
||||
font-size: 0.71rem;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
#hsGuileReplDrawer {
|
||||
display: none;
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 16px;
|
||||
width: min(560px, calc(100vw - 32px));
|
||||
z-index: 90;
|
||||
background: var(--bg-well);
|
||||
border: 1px solid var(--cyan);
|
||||
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.82);
|
||||
padding: 0.75rem 0.9rem;
|
||||
}
|
||||
|
||||
html[data-guile-scheme-mode="on"] #hsGuileReplDrawer {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#hsGuileReplDrawer.hs-repl-minimized .hs-repl-body {
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,664 @@
|
||||
/**
|
||||
* /workspace/hyperstitionstudio-core/site/assets/hs-guile-scheme-repl.js
|
||||
* Offline Client-Side GNU Guile Scheme & Z-Combinator Evaluator, Exact Rational (p/q) Tower,
|
||||
* Beta-Reduction Stepper & Non-Eclipsing Pedagogical Lens Controller (v2.2.0).
|
||||
* Zero external CDN dependencies; works both in browser (/engineering/* & /math/*) and in Node.js unit tests.
|
||||
*/
|
||||
(function (root) {
|
||||
"use strict";
|
||||
|
||||
var STORAGE_KEY = "hs:guile-scheme-mode:v1";
|
||||
|
||||
// =========================================================================
|
||||
// 1. EXACT RATIONAL (p/q) + FLOAT NUMBER TOWER
|
||||
// =========================================================================
|
||||
function gcd(a, b) {
|
||||
a = Math.abs(Math.trunc(a));
|
||||
b = Math.abs(Math.trunc(b));
|
||||
while (b !== 0) {
|
||||
var t = b;
|
||||
b = a % b;
|
||||
a = t;
|
||||
}
|
||||
return a || 1;
|
||||
}
|
||||
|
||||
function Rational(num, den) {
|
||||
if (den === 0) throw new Error("Division by zero in rational");
|
||||
if (den < 0) {
|
||||
num = -num;
|
||||
den = -den;
|
||||
}
|
||||
var g = gcd(num, den);
|
||||
this.num = Math.trunc(num / g);
|
||||
this.den = Math.trunc(den / g);
|
||||
this.exact = true;
|
||||
}
|
||||
|
||||
Rational.prototype.toFloat = function () {
|
||||
return this.num / this.den;
|
||||
};
|
||||
|
||||
Rational.prototype.toString = function () {
|
||||
return this.den === 1 ? String(this.num) : this.num + "/" + this.den;
|
||||
};
|
||||
|
||||
function isRational(v) {
|
||||
return v instanceof Rational;
|
||||
}
|
||||
|
||||
function makeExact(num, den) {
|
||||
return new Rational(num, den === undefined ? 1 : den);
|
||||
}
|
||||
|
||||
function isNumberVal(v) {
|
||||
return typeof v === "number" || isRational(v);
|
||||
}
|
||||
|
||||
function toFloatVal(v) {
|
||||
return isRational(v) ? v.toFloat() : Number(v);
|
||||
}
|
||||
|
||||
function addNum(a, b) {
|
||||
if (isRational(a) && isRational(b)) {
|
||||
return new Rational(a.num * b.den + b.num * a.den, a.den * b.den);
|
||||
}
|
||||
return toFloatVal(a) + toFloatVal(b);
|
||||
}
|
||||
|
||||
function subNum(a, b) {
|
||||
if (isRational(a) && isRational(b)) {
|
||||
return new Rational(a.num * b.den - b.num * a.den, a.den * b.den);
|
||||
}
|
||||
return toFloatVal(a) - toFloatVal(b);
|
||||
}
|
||||
|
||||
function mulNum(a, b) {
|
||||
if (isRational(a) && isRational(b)) {
|
||||
return new Rational(a.num * b.num, a.den * b.den);
|
||||
}
|
||||
return toFloatVal(a) * toFloatVal(b);
|
||||
}
|
||||
|
||||
function divNum(a, b) {
|
||||
if (isRational(a) && isRational(b)) {
|
||||
return new Rational(a.num * b.den, a.den * b.num);
|
||||
}
|
||||
return toFloatVal(a) / toFloatVal(b);
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// 2. S-EXPRESSION READER (TOKENIZER & PARSER)
|
||||
// =========================================================================
|
||||
function Sym(name) {
|
||||
this.name = name;
|
||||
}
|
||||
Sym.prototype.toString = function () {
|
||||
return this.name;
|
||||
};
|
||||
function isSym(x) {
|
||||
return x instanceof Sym;
|
||||
}
|
||||
|
||||
function tokenize(src) {
|
||||
var cleaned = src.replace(/;[^\n]*/g, "");
|
||||
var regex = /\s*(,@|[('`,)]|"(?:\\.|[^\\"])*"|[^\s('`,;)]+)/g;
|
||||
var tokens = [];
|
||||
var match;
|
||||
while ((match = regex.exec(cleaned)) !== null) {
|
||||
if (match[1]) tokens.push(match[1]);
|
||||
}
|
||||
return tokens;
|
||||
}
|
||||
|
||||
function parseAtom(tok) {
|
||||
if (tok === "#t" || tok === "#true") return true;
|
||||
if (tok === "#f" || tok === "#false") return false;
|
||||
if (tok[0] === '"' && tok[tok.length - 1] === '"') {
|
||||
return tok.slice(1, -1).replace(/\\"/g, '"').replace(/\\n/g, "\n");
|
||||
}
|
||||
if (/^[+-]?\d+\/\d+$/.test(tok)) {
|
||||
var parts = tok.split("/");
|
||||
return new Rational(parseInt(parts[0], 10), parseInt(parts[1], 10));
|
||||
}
|
||||
if (/^[+-]?\d+$/.test(tok)) {
|
||||
return new Rational(parseInt(tok, 10), 1);
|
||||
}
|
||||
if (/^[+-]?(?:\d+\.\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(tok) || /^[+-]?\d+[eE][+-]?\d+$/.test(tok)) {
|
||||
return parseFloat(tok);
|
||||
}
|
||||
return new Sym(tok);
|
||||
}
|
||||
|
||||
function readFromTokens(tokens, state) {
|
||||
if (state.pos >= tokens.length) throw new Error("Unexpected EOF while reading S-expression");
|
||||
var tok = tokens[state.pos++];
|
||||
if (tok === "'") {
|
||||
return [new Sym("quote"), readFromTokens(tokens, state)];
|
||||
}
|
||||
if (tok === "(") {
|
||||
var list = [];
|
||||
while (state.pos < tokens.length && tokens[state.pos] !== ")") {
|
||||
list.push(readFromTokens(tokens, state));
|
||||
}
|
||||
if (state.pos >= tokens.length) throw new Error("Unclosed '(' in S-expression");
|
||||
state.pos++; // consume ')'
|
||||
return list;
|
||||
}
|
||||
if (tok === ")") {
|
||||
throw new Error("Unexpected ')' in S-expression");
|
||||
}
|
||||
return parseAtom(tok);
|
||||
}
|
||||
|
||||
function parseProgram(src) {
|
||||
var tokens = tokenize(src);
|
||||
var exprs = [];
|
||||
var state = { pos: 0 };
|
||||
while (state.pos < tokens.length) {
|
||||
exprs.push(readFromTokens(tokens, state));
|
||||
}
|
||||
return exprs;
|
||||
}
|
||||
|
||||
function formatSchemeValue(v, preferFloat) {
|
||||
if (v === undefined || v === null) return "#<unspecified>";
|
||||
if (v === true) return "#t";
|
||||
if (v === false) return "#f";
|
||||
if (isRational(v)) {
|
||||
if (preferFloat && v.den !== 1) return v.toFloat().toFixed(6) + " (exact: " + v.toString() + ")";
|
||||
return v.toString();
|
||||
}
|
||||
if (typeof v === "number") {
|
||||
return Number.isInteger(v) ? v.toFixed(1) : Number(v.toPrecision(8)).toString();
|
||||
}
|
||||
if (typeof v === "string") return '"' + v + '"';
|
||||
if (isSym(v)) return v.name;
|
||||
if (Array.isArray(v)) {
|
||||
return "(" + v.map(function (el) { return formatSchemeValue(el, preferFloat); }).join(" ") + ")";
|
||||
}
|
||||
if (v && v.__proc) return "#<procedure lambda>";
|
||||
if (typeof v === "function") return "#<primitive-procedure>";
|
||||
return String(v);
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// 3. LEXICAL ENVIRONMENT, TAIL-CALL TRAMPOLINE & BETA-REDUCTION TRACER
|
||||
// =========================================================================
|
||||
function Env(parent) {
|
||||
this.vars = Object.create(null);
|
||||
this.parent = parent || null;
|
||||
}
|
||||
Env.prototype.lookup = function (name) {
|
||||
var cur = this;
|
||||
while (cur) {
|
||||
if (Object.prototype.hasOwnProperty.call(cur.vars, name)) return cur.vars[name];
|
||||
cur = cur.parent;
|
||||
}
|
||||
throw new Error("Unbound Scheme symbol: " + name);
|
||||
};
|
||||
Env.prototype.define = function (name, val) {
|
||||
this.vars[name] = val;
|
||||
return val;
|
||||
};
|
||||
|
||||
function charAqValue(ch) {
|
||||
if (!ch || typeof ch !== "string") return makeExact(0, 1);
|
||||
var c = ch.toLowerCase().charCodeAt(0);
|
||||
if (c >= 48 && c <= 57) return makeExact(c - 48, 1);
|
||||
if (c >= 97 && c <= 122) return makeExact(c - 87, 1);
|
||||
return makeExact(0, 1);
|
||||
}
|
||||
|
||||
function createBaseEnv() {
|
||||
var env = new Env(null);
|
||||
env.define("else", true);
|
||||
env.define("+", function () {
|
||||
var acc = makeExact(0, 1);
|
||||
for (var i = 0; i < arguments.length; i++) acc = addNum(acc, arguments[i]);
|
||||
return acc;
|
||||
});
|
||||
env.define("-", function () {
|
||||
if (arguments.length === 0) return makeExact(0, 1);
|
||||
if (arguments.length === 1) return subNum(makeExact(0, 1), arguments[0]);
|
||||
var acc = arguments[0];
|
||||
for (var i = 1; i < arguments.length; i++) acc = subNum(acc, arguments[i]);
|
||||
return acc;
|
||||
});
|
||||
env.define("*", function () {
|
||||
var acc = makeExact(1, 1);
|
||||
for (var i = 0; i < arguments.length; i++) acc = mulNum(acc, arguments[i]);
|
||||
return acc;
|
||||
});
|
||||
env.define("/", function () {
|
||||
if (arguments.length === 1) return divNum(makeExact(1, 1), arguments[0]);
|
||||
var acc = arguments[0];
|
||||
for (var i = 1; i < arguments.length; i++) acc = divNum(acc, arguments[i]);
|
||||
return acc;
|
||||
});
|
||||
env.define("=", function (a, b) {
|
||||
if (isRational(a) && isRational(b)) return a.num === b.num && a.den === b.den;
|
||||
return toFloatVal(a) === toFloatVal(b);
|
||||
});
|
||||
env.define("<", function (a, b) { return toFloatVal(a) < toFloatVal(b); });
|
||||
env.define("<=", function (a, b) { return toFloatVal(a) <= toFloatVal(b); });
|
||||
env.define(">", function (a, b) { return toFloatVal(a) > toFloatVal(b); });
|
||||
env.define(">=", function (a, b) { return toFloatVal(a) >= toFloatVal(b); });
|
||||
env.define("abs", function (x) {
|
||||
return isRational(x) ? new Rational(Math.abs(x.num), x.den) : Math.abs(toFloatVal(x));
|
||||
});
|
||||
env.define("modulo", function (a, b) {
|
||||
var na = Math.trunc(toFloatVal(a));
|
||||
var nb = Math.trunc(toFloatVal(b));
|
||||
var r = ((na % nb) + nb) % nb;
|
||||
return makeExact(r, 1);
|
||||
});
|
||||
env.define("exact->inexact", function (x) { return toFloatVal(x); });
|
||||
env.define("null?", function (x) { return Array.isArray(x) && x.length === 0; });
|
||||
env.define("pair?", function (x) { return Array.isArray(x) && x.length > 0; });
|
||||
env.define("car", function (x) {
|
||||
if (!Array.isArray(x) || x.length === 0) throw new Error("car called on empty/non-list");
|
||||
return x[0];
|
||||
});
|
||||
env.define("cdr", function (x) {
|
||||
if (!Array.isArray(x) || x.length === 0) throw new Error("cdr called on empty/non-list");
|
||||
return x.slice(1);
|
||||
});
|
||||
env.define("cons", function (h, t) {
|
||||
return Array.isArray(t) ? [h].concat(t) : [h, t];
|
||||
});
|
||||
env.define("list", function () { return Array.prototype.slice.call(arguments); });
|
||||
env.define("length", function (x) { return makeExact(Array.isArray(x) ? x.length : 0, 1); });
|
||||
env.define("reverse", function (x) { return Array.isArray(x) ? x.slice().reverse() : []; });
|
||||
env.define("list-ref", function (x, idx) {
|
||||
return x[Math.trunc(toFloatVal(idx))];
|
||||
});
|
||||
env.define("string->list", function (s) {
|
||||
return String(s).split("");
|
||||
});
|
||||
env.define("char-aq", function (ch) {
|
||||
return charAqValue(ch);
|
||||
});
|
||||
env.define("eq?", function (a, b) {
|
||||
if (isSym(a) && isSym(b)) return a.name === b.name;
|
||||
if (isRational(a) && isRational(b)) return a.num === b.num && a.den === b.den;
|
||||
return a === b;
|
||||
});
|
||||
env.define("equal?", function (a, b) {
|
||||
return formatSchemeValue(a, false) === formatSchemeValue(b, false);
|
||||
});
|
||||
env.define("not", function (x) { return x === false; });
|
||||
env.define("assoc-ref", function (alist, key) {
|
||||
var kStr = isSym(key) ? key.name : String(key);
|
||||
if (!Array.isArray(alist)) return false;
|
||||
for (var i = 0; i < alist.length; i++) {
|
||||
var row = alist[i];
|
||||
if (Array.isArray(row) && row.length >= 2) {
|
||||
var rk = isSym(row[0]) ? row[0].name : String(row[0]);
|
||||
if (rk === kStr) return row[1];
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return env;
|
||||
}
|
||||
|
||||
function bindLambdaParams(paramsSpec, args, parentEnv) {
|
||||
var callEnv = new Env(parentEnv);
|
||||
if (isSym(paramsSpec)) {
|
||||
callEnv.define(paramsSpec.name, args);
|
||||
return callEnv;
|
||||
}
|
||||
if (Array.isArray(paramsSpec)) {
|
||||
for (var i = 0; i < paramsSpec.length; i++) {
|
||||
var p = paramsSpec[i];
|
||||
if (isSym(p) && p.name === ".") {
|
||||
var restSym = paramsSpec[i + 1];
|
||||
callEnv.define(restSym.name, args.slice(i));
|
||||
return callEnv;
|
||||
}
|
||||
callEnv.define(p.name, args[i]);
|
||||
}
|
||||
}
|
||||
return callEnv;
|
||||
}
|
||||
|
||||
function evalExpr(expr, env, traceLog) {
|
||||
while (true) {
|
||||
if (traceLog && traceLog.length < 18 && Array.isArray(expr) && expr.length > 0) {
|
||||
traceLog.push(formatSchemeValue(expr, false));
|
||||
}
|
||||
if (isSym(expr)) {
|
||||
return env.lookup(expr.name);
|
||||
}
|
||||
if (!Array.isArray(expr)) {
|
||||
return expr;
|
||||
}
|
||||
if (expr.length === 0) {
|
||||
return [];
|
||||
}
|
||||
var head = expr[0];
|
||||
if (isSym(head)) {
|
||||
var kw = head.name;
|
||||
if (kw === "quote") {
|
||||
return expr[1];
|
||||
}
|
||||
if (kw === "define") {
|
||||
var target = expr[1];
|
||||
if (Array.isArray(target)) {
|
||||
var fnName = target[0].name;
|
||||
var fnParams = target.slice(1);
|
||||
var fnBody = expr.slice(2);
|
||||
var proc = { __proc: true, params: fnParams, body: fnBody, env: env };
|
||||
env.define(fnName, proc);
|
||||
return new Sym(fnName);
|
||||
}
|
||||
var val = evalExpr(expr[2], env, traceLog);
|
||||
env.define(target.name, val);
|
||||
return val;
|
||||
}
|
||||
if (kw === "lambda") {
|
||||
return { __proc: true, params: expr[1], body: expr.slice(2), env: env };
|
||||
}
|
||||
if (kw === "if") {
|
||||
var condVal = evalExpr(expr[1], env, traceLog);
|
||||
expr = condVal !== false ? expr[2] : (expr.length > 3 ? expr[3] : false);
|
||||
continue; // TCO
|
||||
}
|
||||
if (kw === "cond") {
|
||||
var matchedClause = null;
|
||||
for (var ci = 1; ci < expr.length; ci++) {
|
||||
var clause = expr[ci];
|
||||
if (isSym(clause[0]) && clause[0].name === "else") {
|
||||
matchedClause = clause;
|
||||
break;
|
||||
}
|
||||
if (evalExpr(clause[0], env, traceLog) !== false) {
|
||||
matchedClause = clause;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!matchedClause) return false;
|
||||
for (var bi = 1; bi < matchedClause.length - 1; bi++) {
|
||||
evalExpr(matchedClause[bi], env, traceLog);
|
||||
}
|
||||
expr = matchedClause[matchedClause.length - 1];
|
||||
continue; // TCO
|
||||
}
|
||||
if (kw === "and") {
|
||||
if (expr.length === 1) return true;
|
||||
for (var ai = 1; ai < expr.length - 1; ai++) {
|
||||
if (evalExpr(expr[ai], env, traceLog) === false) return false;
|
||||
}
|
||||
expr = expr[expr.length - 1];
|
||||
continue;
|
||||
}
|
||||
if (kw === "or") {
|
||||
if (expr.length === 1) return false;
|
||||
for (var oi = 1; oi < expr.length - 1; oi++) {
|
||||
var ov = evalExpr(expr[oi], env, traceLog);
|
||||
if (ov !== false) return ov;
|
||||
}
|
||||
expr = expr[expr.length - 1];
|
||||
continue;
|
||||
}
|
||||
if (kw === "begin") {
|
||||
for (var gi = 1; gi < expr.length - 1; gi++) {
|
||||
evalExpr(expr[gi], env, traceLog);
|
||||
}
|
||||
expr = expr[expr.length - 1];
|
||||
continue; // TCO
|
||||
}
|
||||
if (kw === "let" || kw === "let*") {
|
||||
var bindings = expr[1];
|
||||
var letEnv = new Env(env);
|
||||
for (var li = 0; li < bindings.length; li++) {
|
||||
var bPair = bindings[li];
|
||||
var bVal = evalExpr(bPair[1], kw === "let*" ? letEnv : env, traceLog);
|
||||
letEnv.define(bPair[0].name, bVal);
|
||||
}
|
||||
for (var lbi = 2; lbi < expr.length - 1; lbi++) {
|
||||
evalExpr(expr[lbi], letEnv, traceLog);
|
||||
}
|
||||
env = letEnv;
|
||||
expr = expr[expr.length - 1];
|
||||
continue; // TCO
|
||||
}
|
||||
if (kw === "apply") {
|
||||
var fnToApply = evalExpr(expr[1], env, traceLog);
|
||||
var applyArgs = evalExpr(expr[2], env, traceLog);
|
||||
if (typeof fnToApply === "function") {
|
||||
return fnToApply.apply(null, applyArgs);
|
||||
}
|
||||
if (fnToApply && fnToApply.__proc) {
|
||||
env = bindLambdaParams(fnToApply.params, applyArgs, fnToApply.env);
|
||||
for (var pbi = 0; pbi < fnToApply.body.length - 1; pbi++) {
|
||||
evalExpr(fnToApply.body[pbi], env, traceLog);
|
||||
}
|
||||
expr = fnToApply.body[fnToApply.body.length - 1];
|
||||
continue; // TCO
|
||||
}
|
||||
throw new Error("apply target is not a procedure");
|
||||
}
|
||||
}
|
||||
|
||||
// Procedure application
|
||||
var procVal = evalExpr(head, env, traceLog);
|
||||
var argVals = [];
|
||||
for (var k = 1; k < expr.length; k++) {
|
||||
argVals.push(evalExpr(expr[k], env, traceLog));
|
||||
}
|
||||
if (typeof procVal === "function") {
|
||||
return procVal.apply(null, argVals);
|
||||
}
|
||||
if (procVal && procVal.__proc) {
|
||||
env = bindLambdaParams(procVal.params, argVals, procVal.env);
|
||||
for (var cbi = 0; cbi < procVal.body.length - 1; cbi++) {
|
||||
evalExpr(procVal.body[cbi], env, traceLog);
|
||||
}
|
||||
expr = procVal.body[procVal.body.length - 1];
|
||||
continue; // TCO
|
||||
}
|
||||
throw new Error("Attempted to call non-procedure: " + formatSchemeValue(procVal, false));
|
||||
}
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// 4. PRELOADED Z-CALCULUS & HYPERSTITION DOMAIN PRELUDE
|
||||
// =========================================================================
|
||||
var PRELUDE_SCM = [
|
||||
"(define Z (lambda (f) ((lambda (x) (f (lambda args (apply (x x) args)))) (lambda (x) (f (lambda args (apply (x x) args)))))))",
|
||||
"(define limit (Z (lambda (recur) (lambda (f a h eps) (let ((v1 (f (+ a h))) (v2 (f (+ a (/ h 2.0))))) (if (< (abs (- v1 v2)) eps) v2 (recur f a (/ h 2.0) eps)))))))",
|
||||
"(define derivative (lambda (f eps) (lambda (x) (limit (lambda (h) (/ (- (f (+ x h)) (f (- x h))) (* 2.0 h))) 0.0 0.1 eps))))",
|
||||
"(define nth-derivative (Z (lambda (recur) (lambda (f n eps) (if (<= n 0) f (recur (derivative f eps) (- n 1) eps))))))",
|
||||
"(define riemann-integral (lambda (f a b n) (let ((dx (/ (- b a) n))) (* dx ((Z (lambda (recur) (lambda (i acc) (if (>= i n) acc (recur (+ i 1) (+ acc (f (+ a (* (+ i 0.5) dx))))))))) 0 0.0)))))",
|
||||
"(define adaptive-simpson (lambda (f a b eps) (let ((simpson-step (lambda (a b) (* (/ (- b a) 6.0) (+ (f a) (* 4.0 (f (/ (+ a b) 2.0))) (f b)))))) ((Z (lambda (recur) (lambda (a b eps whole) (let* ((mid (/ (+ a b) 2.0)) (left (simpson-step a mid)) (right (simpson-step mid b)) (delta (- (+ left right) whole))) (if (<= (abs delta) (* 15.0 eps)) (+ left right (/ delta 15.0)) (+ (recur a mid (/ eps 2.0) left) (recur mid b (/ eps 2.0) right))))))) a b eps (simpson-step a b)))))",
|
||||
"(define aq-base36 (lambda (s) ((Z (lambda (recur) (lambda (chars acc) (if (null? chars) acc (recur (cdr chars) (+ acc (char-aq (car chars)))))))) (string->list s) 0)))",
|
||||
"(define digital-root-mod9 (lambda (n) (if (<= n 0) 0 (+ 1 (modulo (- n 1) 9)))))",
|
||||
"(define prime-factors (lambda (n) ((Z (lambda (recur) (lambda (m d acc) (if (< m (* d d)) (if (> m 1) (reverse (cons m acc)) (reverse acc)) (if (= (modulo m d) 0) (recur (/ m d) d (cons d acc)) (recur m (+ d 1) acc)))))) n 2 '())))",
|
||||
"(define list-sum (Z (lambda (recur) (lambda (xs acc) (if (null? xs) acc (recur (cdr xs) (+ acc (car xs))))))))",
|
||||
"(define variance-pop (lambda (xs) (let* ((n (length xs)) (mu (/ (list-sum xs 0) n)) (sq-diffs ((Z (lambda (recur) (lambda (rem acc) (if (null? rem) acc (let ((d (- (car rem) mu))) (recur (cdr rem) (+ acc (* d d)))))))) xs 0))) (/ sq-diffs n))))",
|
||||
"(define eti-score (lambda (cap col arm prm vel res) (+ (* 1/5 cap) (* 9/50 col) (* 9/50 arm) (* 4/25 prm) (* 7/50 vel) (* 7/50 res))))",
|
||||
"(define confluence-dose (lambda (flags) ((Z (lambda (recur) (lambda (rem acc) (if (null? rem) acc (recur (cdr rem) (+ acc (if (car rem) 1 0))))))) flags 0)))",
|
||||
"(define bayes-update (lambda (priors likelihoods) (let* ((unnorm ((Z (lambda (recur) (lambda (ps ls) (if (null? ps) '() (cons (* (car ps) (car ls)) (recur (cdr ps) (cdr ls))))))) priors likelihoods)) (z-norm (list-sum unnorm 0))) ((Z (lambda (recur) (lambda (us) (if (null? us) '() (cons (/ (car us) z-norm) (recur (cdr us))))))) unnorm))))",
|
||||
"(define evaluate-bump-scope (lambda (dirty ahead archived-plans new-tools breaking?) (cond (breaking? 'major) ((or (> archived-plans 0) (> new-tools 0)) 'minor) ((or (> dirty 0) (> ahead 0)) 'patch) (else 'noop))))",
|
||||
"(define *cluster-292-gen0* '(264 317 276))",
|
||||
"(define *cluster-292-gen1* '(292 292 292))"
|
||||
].join("\n");
|
||||
|
||||
function createSession() {
|
||||
var env = createBaseEnv();
|
||||
var preludeExprs = parseProgram(PRELUDE_SCM);
|
||||
for (var i = 0; i < preludeExprs.length; i++) {
|
||||
evalExpr(preludeExprs[i], env, null);
|
||||
}
|
||||
return {
|
||||
env: env,
|
||||
evaluate: function (codeStr, options) {
|
||||
var opts = options || {};
|
||||
var trace = opts.trace ? [] : null;
|
||||
var exprs = parseProgram(codeStr);
|
||||
var lastVal = null;
|
||||
for (var j = 0; j < exprs.length; j++) {
|
||||
lastVal = evalExpr(exprs[j], env, trace);
|
||||
}
|
||||
return {
|
||||
ok: true,
|
||||
value: lastVal,
|
||||
formatted: formatSchemeValue(lastVal, !!opts.preferFloat),
|
||||
floatValue: isNumberVal(lastVal) ? toFloatVal(lastVal) : null,
|
||||
trace: trace || []
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// =========================================================================
|
||||
// 5. BROWSER UI CONTROLLER (TOGGLE + CARTRIDGES + DOCKABLE REPL DRAWER)
|
||||
// =========================================================================
|
||||
function initBrowserGuileController() {
|
||||
if (typeof document === "undefined") return;
|
||||
var session = createSession();
|
||||
var toggleBtn = document.getElementById("guileSchemeModeToggle");
|
||||
var stateLbl = document.getElementById("guileSchemeModeState");
|
||||
var replDrawer = document.getElementById("hsGuileReplDrawer");
|
||||
var replInput = document.getElementById("hsGuileReplInput");
|
||||
var replOutput = document.getElementById("hsGuileReplOutput");
|
||||
var replEvalBtn = document.getElementById("hsGuileReplEvalBtn");
|
||||
var replStepBtn = document.getElementById("hsGuileReplStepBtn");
|
||||
var replPresetSel = document.getElementById("hsGuileReplPreset");
|
||||
var replCloseBtn = document.getElementById("hsGuileReplCloseBtn");
|
||||
var preferFloatBox = document.getElementById("hsGuilePreferFloat");
|
||||
|
||||
function runCartridgeVerifications() {
|
||||
var cards = document.querySelectorAll(".hs-guile-cartridge");
|
||||
cards.forEach(function (card) {
|
||||
var codeEl = card.querySelector(".hs-guile-code-expr");
|
||||
var outEl = card.querySelector(".hs-guile-eval-result");
|
||||
if (!codeEl || !outEl) return;
|
||||
try {
|
||||
var res = session.evaluate(codeEl.textContent, { preferFloat: false });
|
||||
outEl.textContent = "=> " + res.formatted + (res.floatValue !== null && res.formatted.indexOf("/") !== -1 ? " (≈ " + res.floatValue.toFixed(4) + ")" : "") + " [VERIFIED VIA Z]";
|
||||
outEl.style.color = "var(--emerald)";
|
||||
} catch (err) {
|
||||
outEl.textContent = "Error: " + err.message;
|
||||
outEl.style.color = "var(--rose)";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function applySchemeMode(modeStr) {
|
||||
var isOn = modeStr === "on";
|
||||
document.documentElement.setAttribute("data-guile-scheme-mode", isOn ? "on" : "off");
|
||||
if (toggleBtn) toggleBtn.setAttribute("aria-pressed", isOn ? "true" : "false");
|
||||
if (stateLbl) stateLbl.textContent = isOn ? "ON" : "OFF";
|
||||
if (isOn) {
|
||||
runCartridgeVerifications();
|
||||
}
|
||||
try {
|
||||
window.localStorage.setItem(STORAGE_KEY, isOn ? "on" : "off");
|
||||
} catch (_e) {}
|
||||
}
|
||||
|
||||
var saved = "off";
|
||||
try {
|
||||
saved = window.localStorage.getItem(STORAGE_KEY) || "off";
|
||||
} catch (_e) {}
|
||||
applySchemeMode(saved);
|
||||
|
||||
if (toggleBtn) {
|
||||
toggleBtn.addEventListener("click", function () {
|
||||
var cur = document.documentElement.getAttribute("data-guile-scheme-mode") === "on" ? "on" : "off";
|
||||
applySchemeMode(cur === "on" ? "off" : "on");
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("keydown", function (ev) {
|
||||
if (ev.altKey && (ev.key === "s" || ev.key === "S")) {
|
||||
ev.preventDefault();
|
||||
var cur = document.documentElement.getAttribute("data-guile-scheme-mode") === "on" ? "on" : "off";
|
||||
applySchemeMode(cur === "on" ? "off" : "on");
|
||||
}
|
||||
});
|
||||
|
||||
document.querySelectorAll(".hs-load-in-repl-btn").forEach(function (btn) {
|
||||
btn.addEventListener("click", function () {
|
||||
var expr = btn.getAttribute("data-scheme-expr") || "";
|
||||
applySchemeMode("on");
|
||||
if (replInput) {
|
||||
replInput.value = expr;
|
||||
replInput.focus();
|
||||
}
|
||||
if (replEvalBtn) replEvalBtn.click();
|
||||
});
|
||||
});
|
||||
|
||||
if (replPresetSel && replInput) {
|
||||
replPresetSel.addEventListener("change", function () {
|
||||
if (replPresetSel.value) {
|
||||
replInput.value = replPresetSel.value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (replEvalBtn && replInput && replOutput) {
|
||||
replEvalBtn.addEventListener("click", function () {
|
||||
var src = replInput.value.trim();
|
||||
if (!src) return;
|
||||
try {
|
||||
var pFloat = preferFloatBox ? preferFloatBox.checked : false;
|
||||
var r = session.evaluate(src, { preferFloat: pFloat, trace: false });
|
||||
replOutput.textContent = "guile> " + src.replace(/\s+/g, " ") + "\n=> " + r.formatted;
|
||||
} catch (err) {
|
||||
replOutput.textContent = "ERROR: " + err.message;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (replStepBtn && replInput && replOutput) {
|
||||
replStepBtn.addEventListener("click", function () {
|
||||
var src = replInput.value.trim();
|
||||
if (!src) return;
|
||||
try {
|
||||
var pFloat = preferFloatBox ? preferFloatBox.checked : false;
|
||||
var r = session.evaluate(src, { preferFloat: pFloat, trace: true });
|
||||
var lines = ["[β-Reduction & Z-Combinator Call Trace]:"];
|
||||
for (var i = 0; i < r.trace.length; i++) {
|
||||
lines.push(" Step " + (i + 1) + ": " + r.trace[i]);
|
||||
}
|
||||
lines.push("=> Final Normal Form: " + r.formatted);
|
||||
replOutput.textContent = lines.join("\n");
|
||||
} catch (err) {
|
||||
replOutput.textContent = "ERROR: " + err.message;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (replCloseBtn && replDrawer) {
|
||||
replCloseBtn.addEventListener("click", function () {
|
||||
replDrawer.classList.toggle("hs-repl-minimized");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof document !== "undefined") {
|
||||
if (document.readyState === "loading") {
|
||||
document.addEventListener("DOMContentLoaded", initBrowserGuileController);
|
||||
} else {
|
||||
initBrowserGuileController();
|
||||
}
|
||||
}
|
||||
|
||||
var api = {
|
||||
Rational: Rational,
|
||||
createSession: createSession,
|
||||
formatSchemeValue: formatSchemeValue,
|
||||
PRELUDE_SCM: PRELUDE_SCM
|
||||
};
|
||||
|
||||
if (typeof module !== "undefined" && module.exports) {
|
||||
module.exports = api;
|
||||
} else {
|
||||
root.HyperstitionGuileREPL = api;
|
||||
}
|
||||
})(typeof globalThis !== "undefined" ? globalThis : window);
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Signal Patronage & Open-Instrument Notes — hyperstitionstud.io/donate</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
:root {
|
||||
--bg-canvas: #020617;
|
||||
@@ -343,7 +343,7 @@
|
||||
<span class="dot"></span>
|
||||
<h1>hyperstitionstud.io/donate — Signal Patronage & Open-Instrument Notes</h1>
|
||||
</div>
|
||||
<p class="subtitle">Open-Readout Phonemic, Graph & Closing-Bell Telemetry Workbench • Namespace Authority: urn:io:hyperstitionstud:donate:v2.1.1</p>
|
||||
<p class="subtitle">Open-Readout Phonemic, Graph & Closing-Bell Telemetry Workbench • Namespace Authority: urn:io:hyperstitionstud:donate:v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" data-donate-route="home" href="/">Portal Home (/)</a>
|
||||
@@ -406,7 +406,7 @@
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io/donate v2.1.1 • 100% Static & Offline-Portable • Zero External Trackers</div>
|
||||
<div>hyperstitionstud.io/donate v2.2.0 • 100% Static & Offline-Portable • Zero External Trackers</div>
|
||||
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit E5: Topological Git Push, Self-Re-Executing tmpfs VPS Hydration, Dark-Mode hs-pdf-build & hs-public-smoke</h1>
|
||||
<p class="subtitle">Cartridge E5 • Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge E5 • Non-Sequentially Revertible via <code>hs-eng-docs --disable cicd-vps-tmpfs-and-regression</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 4: Linux Systems Administration, Bash Traps, systemd & DevOps (20-30 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>POSIX Bash error handling (set -euo pipefail, trap ERR, run_checked(), exec, flock)</li><li>Git fast-forward merges, annotated tags, and git pull --rebase --autostash</li><li>Linux tmpfs RAM mounts, systemd services/timers, Caddy HTTP/3 QUIC, and TrueType cmap tables</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://git-scm.com/book/en/v2" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Pro Git Book (Chacon & Straub — Free Complete Online Text) ↗</a></li><li><a href="https://mywiki.wooledge.org/BashGuide" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Wooledge BashGuide & BashFAQ (Error Handling & Process Exec) ↗</a></li><li><a href="https://www.freedesktop.org/software/systemd/man/systemd.service.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">freedesktop.org systemd.service & systemd.timer Manuals ↗</a></li><li><a href="https://caddyserver.com/docs/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Caddy Server Official Documentation (HTTP/3 & Reverse Proxy) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E5): 4-Tier Programmatic Semantic Version Bump Heuristic in Scheme</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(evaluate-bump-scope 2 0 1 0 #f)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>Bump(dirty, ahead, plans, tools, brk) ∈ {noop, patch, minor, major}</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">evaluate_change_scope_heuristics(signals)['recommended_bump_level']</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(evaluate-bump-scope 2 0 1 0 #f)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Set archived-plans to 0 => 'patch, or dirty=0 ahead=0 => 'noop in the REPL.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Zero-/dev/null CI/CD Scripts, Self-Re-Exec & Autonomous VPS Harvest Timers</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">push-all-to-git-libre-audio.sh, deploy/sync-vps-repos.sh, and deploy/run-vps-data-production.sh contain 0 /dev/null redirections and capture exact exit codes via run_checked(). When sync-vps-repos.sh updates hyperstitionstudio-core on disk, HYPERSTITION_SYNC_REEXEC=1 immediately execs the new script image before hydrating /var/www/hyperstitionstud.io/repos (tmpfs RAM + Brotli-11/Gzip-9).</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Dark-Mode hs-pdf-build, Cold-Archive Rotator (hs-archive-rotate) & 6-Gate Public Regression (hs-public-smoke)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">pdf_compiler.py transpiles LaTeX math, preserves <br/>, filters every character against DejaVu TrueType cmap tables, sets rl_config.defaultGraphicsFontName='DejaVu' (0 /Helvetica leaks), and prioritizes web-linked PDFs (--refresh-all-web-pdfs). archive_rotator.py rotates completed docs/archive/ pairs into completed-plans-archive.tar.gz, while public_regression.py audits live HTTP responses against .cache/internal-test-baseline-latest.json across Gates P1-P6.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering/cicd-vps-tmpfs-and-regression v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../engineering-app.js?v=2.1.1"></script>
|
||||
<script src="../engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation</h1>
|
||||
<p class="subtitle">Cartridge E1 • Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge E1 • Non-Sequentially Revertible via <code>hs-eng-docs --disable ciphers-and-phonetics</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 2: Introductory Python & Text Processing (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)</li><li>ASCII & Unicode character codepoints (ord(), UTF-8)</li><li>Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 & 2 (Base-36 & Ingglish) ↗</a></li><li><a href="https://docs.python.org/3/tutorial/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Official Python 3 Tutorial (Sections 3-5 & 7) ↗</a></li><li><a href="https://cs50.harvard.edu/python/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Harvard CS50P (Intro to Programming with Python) ↗</a></li><li><a href="http://www.speech.cs.cmu.edu/cgi-bin/cmudict" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU Pronouncing Dictionary (CMUdict) Specification ↗</a></li><li><a href="https://regexone.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">RegexOne Interactive Regular Expression Tutorial ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E1): Pure Z-Combinator Base-36 Alphanumeric Homomorphism</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(aq-base36 "LEMUR")" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>AQ(w) = ∑_{i=1}^k v(c_i), v('0'..'9')=0..9, v('a'..'z')=10..35</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">sum(char_value_aq(ch) for ch in text)</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(aq-base36 "LEMUR")</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Verify AQ("LEMUR") = 114 and test homomorphic concatenation (+ (aq-base36 "LE") (aq-base36 "MUR")).</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. PEP 420 Namespace & Zero-d-Filter Boundary (hyperstitionstud_io.ciphers)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">The cipher engine maps digits 0-9 to 0..9 (ord(c)-48) and ASCII letters A-Z to 10..35 (ord(c)-87) across three quantization modes: digit (default), off (qualitative lexical only), and spoken (number-word expansion via int_to_spoken_words()). assert_zero_d_filter() enforces a hard boundary preventing legacy 10-letter decagram filters from ever entering Zoology or Knowledge Graph artifacts.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Three-Tier Offline Phonemic Transducer (hyperstitionstud_io.phonetics)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">translate_batch() resolves English phrases into Gen 1 Ingglish with zero external network calls and zero hardcoded /workspace dependencies: Tier 1 delegates to local Node/CLI translators when present; Tier 2 looks up the 4,943-entry bundled cmudict_fallback.json; Tier 3 applies deterministic English digraph-to-phoneme rules so arbitrary OOV strings always resolve.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering/ciphers-and-phonetics v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../engineering-app.js?v=2.1.1"></script>
|
||||
<script src="../engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1 +1 @@
|
||||
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.1.1", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 15, "mcp_tools": 15, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "hs-db-build": "hyperstitionstud_io.db.sqlite_meta:main", "hs-macro-harvest": "hyperstitionstud_io.quant.macro:main", "hs-daily-brief": "hyperstitionstud_io.quant.daily_brief:main", "hs-ticker-card": "hyperstitionstud_io.quant.cards:main", "hs-archive-rotate": "hyperstitionstud_io.publishing.archive_rotator:main", "hs-public-smoke": "hyperstitionstud_io.ci.public_regression:main", "hs-eng-docs": "hyperstitionstud_io.publishing.engineering_docs:main", "hs-math-docs": "hyperstitionstud_io.publishing.math_docs:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"ciphers-and-phonetics": {"unit_id": "E1", "slug": "ciphers-and-phonetics", "title": "Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation", "short_title": "E1: Ciphers & Phonetics", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Introductory Python & Text Processing (10-15 hrs study)", "prerequisites": ["Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)", "ASCII & Unicode character codepoints (ord(), UTF-8)", "Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules"], "Line truncated
|
||||
window.HYPERSTITION_ENGINEERING_MANIFEST = {"$id": "urn:io:hyperstitionstud:engineering-manifest", "version": "2.2.0", "enabled_subpages": ["ciphers-and-phonetics", "knowledge-graph-and-sqlite", "quant-macro-and-bayesian-brief", "mcp-chatbot-rest-and-ipld", "cicd-vps-tmpfs-and-regression"], "disabled_subpages": [], "enabled_routes": ["/engineering/index.html", "/engineering/ciphers-and-phonetics/index.html", "/engineering/knowledge-graph-and-sqlite/index.html", "/engineering/quant-macro-and-bayesian-brief/index.html", "/engineering/mcp-chatbot-rest-and-ipld/index.html", "/engineering/cicd-vps-tmpfs-and-regression/index.html"], "introspected_counts": {"repositories": 6, "cli_entrypoints": 15, "mcp_tools": 15, "rest_domain_aliases": 12, "enabled_lenses": 6, "watchlist_instruments": 24, "fred_macro_series": 14, "json_schemas_v1": 12}, "cli_scripts": {"hs-doctor": "hyperstitionstud_io.ci.doctor:main", "hs-citations": "hyperstitionstud_io.ci.citation_sources:main", "hs-pdf-build": "hyperstitionstud_io.publishing.pdf_compiler:main", "hs-kg-build": "hyperstitionstud_io.graph.cli:main", "hs-quant-harvest": "hyperstitionstud_io.quant.collector:main", "hs-mcp": "hyperstitionstud_io.mcp.server:main", "hs-sync-version": "hyperstitionstud_io.version_sync:main", "hs-db-build": "hyperstitionstud_io.db.sqlite_meta:main", "hs-macro-harvest": "hyperstitionstud_io.quant.macro:main", "hs-daily-brief": "hyperstitionstud_io.quant.daily_brief:main", "hs-ticker-card": "hyperstitionstud_io.quant.cards:main", "hs-archive-rotate": "hyperstitionstud_io.publishing.archive_rotator:main", "hs-public-smoke": "hyperstitionstud_io.ci.public_regression:main", "hs-eng-docs": "hyperstitionstud_io.publishing.engineering_docs:main", "hs-math-docs": "hyperstitionstud_io.publishing.math_docs:main"}, "mcp_tool_names": ["hs_evaluate_aq_and_ingglish", "hs_classify_singularity", "hs_query_knowledge_graph", "hs_search_glossary_encyclopedia", "hs_inspect_eti_tier_list", "hs_simulate_anchor_revision", "hs_search_archive_equations", "hs_verify_grounded_citations", "hs_compute_ipld_dag_json_cid", "hs_run_doctor_and_audit", "hs_scan_financial_quant_harvest", "hs_inspect_quant_timeseries", "hs_generate_ticker_stats_card", "hs_inspect_macro_indicators", "hs_generate_daily_portfolio_brief"], "rest_domain_aliases": {"/api/v1/doctor": "hs_run_doctor_and_audit", "/api/v1/ciphers/evaluate": "hs_evaluate_aq_and_ingglish", "/api/v1/zoology/classify": "hs_classify_singularity", "/api/v1/zoology/tier-list": "hs_inspect_eti_tier_list", "/api/v1/zoology/anchor-revision": "hs_simulate_anchor_revision", "/api/v1/graph/query": "hs_query_knowledge_graph", "/api/v1/glossary/search": "hs_search_glossary_encyclopedia", "/api/v1/archive/equations": "hs_search_archive_equations", "/api/v1/quant/harvest": "hs_scan_financial_quant_harvest", "/api/v1/quant/timeseries": "hs_inspect_quant_timeseries", "/api/v1/ipld/cid": "hs_compute_ipld_dag_json_cid", "/api/v1/citations/verify": "hs_verify_grounded_citations"}, "schemas_v1": ["assemblage-builds-tier-list.schema.json", "citations-ledger.schema.json", "encyclopedia-graph.schema.json", "encyclopedia-manifest.schema.json", "financial-aq-harvest.schema.json", "glossary-registry.schema.json", "learn-progress-state.schema.json", "memetic-superclass-registry.schema.json", "quant-timeseries.schema.json", "quantitative-economic-anchors.schema.json", "singularity-zoology-matrix.schema.json", "ticker-stats-card.schema.json"], "flow_diagrams": {"cross_repo_dependency_png": "/graph/docs/cross-repo-dependency-and-audit-flow-diagram.png", "periodic_harvest_cicd_vps_png": "/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png"}, "hub_prereq_ladder": {"unit_id": "E0", "expertise_level": "Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)", "summary": "New to command-line shells, Git repositories, or client-server web architecture? Start with these free foundational resources before diving into the engineering subpages:", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-6)", "url": "/learn/index.html", "external": false}, {"label": "MIT Missing Semester of Your CS Education (Shell, Git, CLI)", "url": "https://missing.csail.mit.edu/", "external": true}, {"label": "MDN Web Docs — How the Web Works (HTTP, HTML, Servers)", "url": "https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works", "external": true}]}, "subpages": {"ciphers-and-phonetics": {"unit_id": "E1", "slug": "ciphers-and-phonetics", "title": "Unit E1: Base-36 AQ Ciphers, Offline CMUdict Phonetics & Zero-d-Filter Isolation", "short_title": "E1: Ciphers & Phonetics", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Introductory Python & Text Processing (10-15 hrs study)", "prerequisites": ["Python 3 functions, dictionaries (dict), frozenset, and regular expressions (re.sub)", "ASCII & Unicode character codepoints (ord(), UTF-8)", "Dictionary lookup vs. deterministic grapheme-to-phoneme fallback rules"], "Line truncated
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$id": "urn:io:hyperstitionstud:engineering-manifest",
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.0",
|
||||
"enabled_subpages": [
|
||||
"ciphers-and-phonetics",
|
||||
"knowledge-graph-and-sqlite",
|
||||
@@ -348,6 +348,6 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeragebtyr5jwv4gix65g63gca7xh2wqhhk5i5rpav55y5sqt4ycdtnq"
|
||||
"/": "baguqeerarzhuigaqa4ktjf2vh6mrhgzm7xbbopyccnfncsb5u6asi6azh2wa"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Software Engineering Explication Hub — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -27,7 +27,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>HYPERSTITION STUDIO // SOFTWARE ENGINEERING EXPLICATION HUB (UNIT E0)</h1>
|
||||
<p class="subtitle">Commutative Live-Introspected Architecture • Piecewise & Non-Sequentially Revertible Cartridges • urn:io:hyperstitionstud:engineering:v2.1.1</p>
|
||||
<p class="subtitle">Commutative Live-Introspected Architecture • Piecewise & Non-Sequentially Revertible Cartridges • urn:io:hyperstitionstud:engineering:v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../index.html">Portal Home (/)</a>
|
||||
@@ -38,12 +38,15 @@
|
||||
<a class="btn" href="mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 1-2 (Novice to Advanced Beginner • 4-8 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Command-line navigation, files, and Git version control</li><li>How HTTP servers, JSON APIs, and static webroots operate</li><li>Self-Paced Learning Track (/learn/ Modules 1-6)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-6) ↗</a></li><li><a href="https://missing.csail.mit.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT Missing Semester of Your CS Education (Shell, Git, CLI) ↗</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/How_the_Web_works" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — How the Web Works (HTTP, HTML, Servers) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E0): Homoiconic S-Expression Manifest & Z-Combinator Fixed-Point Closure</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(assoc-ref '((repositories 6) (mcp-tools 15) (lenses 4)) 'mcp-tools)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>Manifest M = (version, repos=6, tools=15, cidv1=H(M))</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">manifest = introspect_engineering_manifest()
|
||||
cid = compute_dag_json_cidv1(manifest)</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(assoc-ref '((repositories 6) (mcp-tools 15) (lenses 4)) 'mcp-tools)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Click 'Send to REPL' and change 'mcp-tools to 'repositories or evaluate (aq-base36 "HYPERSTITION").</div></section>
|
||||
|
||||
<section class="stats-row">
|
||||
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Repositories</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">6</div></div>
|
||||
@@ -75,10 +78,38 @@
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering v2.1.1 • CIDv1: <code>baguqeeragebtyr5jwv4gix65g63gca7xh2w...</code> • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering v2.2.0 • CIDv1: <code>baguqeerarzhuigaqa4ktjf2vh6mrhgzm7xb...</code> • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="engineering-app.js?v=2.1.1"></script>
|
||||
<script src="engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit E2: 6-Gate 388-Node Knowledge Graph Compiler, ReadOnlyIsolationGuard & Quiescent SQLite + FTS5 Engine</h1>
|
||||
<p class="subtitle">Cartridge E2 • Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge E2 • Non-Sequentially Revertible via <code>hs-eng-docs --disable knowledge-graph-and-sqlite</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,15 @@
|
||||
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 3-4: Databases, Cryptographic Hashing & OS Concurrency (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Cryptographic hash functions (SHA-256) and Python context managers (with / __exit__)</li><li>Relational schemas, inverted full-text search indices (SQLite FTS5), and graph representations</li><li>ACID transactions, Write-Ahead Logging (WAL), and BEGIN EXCLUSIVE file locking</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.sqlite.org/wal.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite Write-Ahead Logging (WAL) Architecture ↗</a></li><li><a href="https://www.sqlite.org/fts5.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">SQLite FTS5 Full-Text Search Extension Docs ↗</a></li><li><a href="https://15445.courses.cs.cmu.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">CMU 15-445/645 (Intro to Database Systems — Andy Pavlo) ↗</a></li><li><a href="https://docs.python.org/3/library/contextlib.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python contextlib & Context Manager Documentation ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E2): Functional Pre/Post SHA-256 Read-Only Isolation Guard</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="((lambda (pre post) (and (= pre 282) (= pre post))) 282 282)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>Guard(f): H_pre == H_expected ∧ H_post == H_pre</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
|
||||
run_pipeline()</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">((lambda (pre post) (and (= pre 282) (= pre post))) 282 282)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Test what happens in the REPL when post-state mutates from 282 to 283.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. ReadOnlyIsolationGuard Context Manager (hyperstitionstud_io.glossary)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Every compiler, MCP tool, and REST v1 handler executes inside with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:. Before and after the block runs, SHA-256 digests of taxonomy/glossary-registry.json and encyclopedia/encyclopedia-manifest.json are verified against baseline constants, raising RuntimeError immediately on any byte mutation.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. 6-Gate Multi-Format Graph Compiler & Quiescent 100M SQLite Logrotate (db/sqlite_meta.py)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">build_encyclopedia_knowledge_graph.py compiles 388 nodes and 1,282 edges into JSON, JS, GraphML, GEXF, Obsidian Canvas, and 3 1600x1060 PNG atlases. sqlite_meta.py hydrates hyperstition-catalog.db (FTS5) and records /api/v1/* and /mcp telemetry in /var/lib/hyperstitionstud.io/api-telemetry.db, while deploy/logrotate.d/hyperstition-sqlite-meta acquires BEGIN EXCLUSIVE at 100M, snapshots .1.gz, and runs PRAGMA wal_checkpoint(TRUNCATE); VACUUM;.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +50,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering/knowledge-graph-and-sqlite v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../engineering-app.js?v=2.1.1"></script>
|
||||
<script src="../engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1 — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit E4: Stateless MCP Server (:8095), Chatbot OpenAPI 3.1.0 REST Adapter, .png+.json Cards & IPLD CIDv1</h1>
|
||||
<p class="subtitle">Cartridge E4 • Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge E4 • Non-Sequentially Revertible via <code>hs-eng-docs --disable mcp-chatbot-rest-and-ipld</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 4: Network Protocols, OpenAPI 3.1 & Content-Addressed Storage (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP/1.1 request/response lifecycles, status codes (200, 404, 422, 500, 502), and reverse proxies</li><li>JSON-RPC 2.0, OpenAPI 3.1.0 schema generation, and Model Context Protocol (MCP)</li><li>Canonical JSON serialization, SHA-256 multihashes, and IPLD dag-json (0x0129) CIDv1</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MDN Web Docs — HTTP Protocol & Status Codes ↗</a></li><li><a href="https://www.jsonrpc.org/specification" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">JSON-RPC 2.0 Official Specification ↗</a></li><li><a href="https://modelcontextprotocol.io/introduction" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Model Context Protocol (MCP) Architecture Introduction ↗</a></li><li><a href="https://proto.school/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">ProtoSchool — Content Identifiers (CIDs) & IPLD Merkle DAGs ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E4): Homoiconic S-Expression JSON-RPC Tool Dispatcher</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(list 'jsonrpc-2.0 'tool "hs_evaluate_aq_and_ingglish" (aq-base36 "envideea"))" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>Dispatch(name, args) → ToolTable[name](args)</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">res = call_mcp_tool(target_tool, t_args)</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(list 'jsonrpc-2.0 'tool "hs_evaluate_aq_and_ingglish" (aq-base36 "envideea"))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Evaluate (aq-base36 "envideea") => 137 (33rd prime) inside the S-expression.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Unified Stateless MCP (/mcp) & Chatbot OpenAPI 3.1.0 REST Adapter (/api/v1/*)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">mcp/server.py and mcp/rest.py expose all 15 tools in MCP_TOOLS_SCHEMA over stdio, Streamable HTTP POST/GET /mcp, and /api/v1/tools/{tool_name} on 127.0.0.1:8095. Top-level exception guards in _MCPHTTPHandler and record_api_telemetry() ensure sqlite3.OperationalError or read-only filesystem states never drop connections or trigger 502 Bad Gateway.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. One-Shot .png + .json Ticker Stats Cards (quant/cards.py) & Canonical IPLD dag-json (0x0129)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">hs_generate_ticker_stats_card compiles a 5-zone 900x1260 Group 3 Stealth Basalt PNG card and companion JSON payload in one shot (with draw_fitted_text() width clamping and ink-bbox midpoint centering). ipld/__init__.py serializes canonical UTF-8 dag-json and prefixes SHA-256 digests with [0x01, 0xA9, 0x02, 0x12, 0x20] to form Base32 CIDv1 ('baguqeera...').</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering/mcp-chatbot-rest-and-ipld v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../engineering-app.js?v=2.1.1"></script>
|
||||
<script src="../engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief — hyperstitionstud.io/engineering (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit E3: Zero-Synthetic-Data Quant Engine, 14-Point Bidirectional Census, Dose 0..3+, FRED Macro & Bayesian Brief</h1>
|
||||
<p class="subtitle">Cartridge E3 • Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge E3 • Non-Sequentially Revertible via <code>hs-eng-docs --disable quant-macro-and-bayesian-brief</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../mcp-chatbot-rest-and-ipld/index.html" style="">E4: MCP, REST & IPLD CIDv1</a>
|
||||
<a class="btn" href="../cicd-vps-tmpfs-and-regression/index.html" style="">E5: CI/CD, VPS & Regression</a>
|
||||
<a class="btn" href="../../math/index.html">Math Hub (/math/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 3: Data Engineering, Time-Series Ingestion & Strategy Registries (10-15 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any concepts on this page are unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Concepts Required:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>HTTP JSON/CSV client ingestion (urllib.request) and resilient fallback chains</li><li>Missing-data domain representation (None / null vs. silent 0.0 corruption)</li><li>Pluggable projection registries (LENS_REGISTRY) and state-machine persistence</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../quant/index.html" style="color:var(--cyan);">Internal: /quant/ Interactive Guided Canvas Tour (5 Episodes) ↗</a></li><li><a href="https://docs.python.org/3/library/urllib.request.html" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Python urllib.request & json Standard Library Documentation ↗</a></li><li><a href="https://fredhelp.stlouisfed.org/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">St. Louis Federal Reserve (FRED) Series & CSV Documentation ↗</a></li><li><a href="https://refactoring.guru/design-patterns/python" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Refactoring.Guru — Strategy & Adapter Design Patterns in Python ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (E3): Zero-Synthetic #f Option Semantics & 4-Species Confluence Dose via Z</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(confluence-dose '(#t #t #t #f))" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>D_{i,t} = ∑_{s=1}^4 I(Species_s) ∈ {0..4}, Closed/Private = #f</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">dose = sum(1 for flag in (s1, s2, s3, s4) if flag)</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(confluence-dose '(#t #t #t #f))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Toggle the 4 species flags (#t / #f) in the REPL to observe Dose 0..4.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Strict Zero-Synthetic-Data Collector & Native-Cadence FRED Macro Engine (collector.py, macro.py)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">collector.py and timeseries.py eliminate all synthetic bar interpolation: 23 public tickers load 440 verified daily exchange bars (site/quant/real-market-history.json), while private entity ANTHR-PVT and closed weekend/holiday sessions serialize strictly as null ('No data available'). macro.py ingests 14 keyless St. Louis Fed (FRED) CSV series at native 1d, 1mo, and 1q cadences without forward-fill.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. 14-Point Bidirectional Census, Confluence Dose (D in {0..4}) & 5-Agenda Bayesian Brief (daily_brief.py)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">timeseries.py evaluates all 14 data points in Gen 0 (eng_aq) and Gen 1 (ing_aq) and classifies each bar by its 4-species Confluence Dose (Dose 2 isometric pinning vs. Dose 3+ breakout). daily_brief.py updates the append-only Bayesian state ledger (daily-brief-state.json) across R1 Bull, R2 Pinned Isometric, and R3 Tail Drawdown and grades each day's testable macro question Q_t.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/engineering/quant-macro-and-bayesian-brief v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../engineering-app.js?v=2.1.1"></script>
|
||||
<script src="../engineering-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../engineering-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -217,7 +217,7 @@
|
||||
<main class="gallery-grid" id="galleryGrid"></main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io/gallery • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.1.1)</div>
|
||||
<div>hyperstitionstud.io/gallery • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:gallery:2.2.0)</div>
|
||||
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
+37
-30
@@ -4,8 +4,8 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>hyperstitionstud.io — Technocapital Singularity Zoology & Alphanumeric Qabbala Workbench</title>
|
||||
<link rel="prefetch" href="/graph/graph-data.js?v=2.1.1" as="script" />
|
||||
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<link rel="prefetch" href="/graph/graph-data.js?v=2.2.0" as="script" />
|
||||
<link rel="stylesheet" href="assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
:root {
|
||||
--bg-canvas: #020617;
|
||||
@@ -191,11 +191,13 @@
|
||||
<span class="dot"></span>
|
||||
<h1>HYPERSTITIONSTUD.IO // TECHNOCAPITAL SINGULARITY ZOOLOGY WORKBENCH</h1>
|
||||
</div>
|
||||
<p class="subtitle">100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.1.1)</p>
|
||||
<p class="subtitle">100% Offline-Portable & HTTP/3 Edge-Ready Research Corpus • Namespace Authority: urn:io:hyperstitionstud (v2.2.0)</p>
|
||||
</div>
|
||||
<div class="meta-badges">
|
||||
<a class="btn primary" data-route="learn-track" href="/learn/index.html" style="padding:0.35rem 0.75rem;font-size:0.74rem;">Start Learning Track (/learn/)</a>
|
||||
<a class="btn" data-route="quant-app" href="/quant/index.html" style="padding:0.35rem 0.75rem;font-size:0.74rem;border-color:var(--gold);color:var(--gold);">Quant Time-Series (/quant/)</a>
|
||||
<a class="btn" data-route="eng-hub" href="/engineering/index.html" style="padding:0.35rem 0.75rem;font-size:0.74rem;border-color:var(--cyan);color:var(--cyan);">Engineering (/engineering/)</a>
|
||||
<a class="btn" data-route="math-hub" href="/math/index.html" style="padding:0.35rem 0.75rem;font-size:0.74rem;border-color:var(--emerald);color:var(--emerald);">Applied Math (/math/)</a>
|
||||
<span class="badge">388 Graph Nodes</span>
|
||||
<span class="badge">1,282 Typed Edges</span>
|
||||
<span class="badge">24 Quant Tickers</span>
|
||||
@@ -308,15 +310,17 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<a class="btn primary" data-route="dep-html" href="/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html">Interactive Flow Diagram</a>
|
||||
<a class="btn" data-route="quant-app" href="/quant/index.html">Quant Time-Series (/quant/)</a>
|
||||
<a class="btn primary" data-route="eng-hub" href="/engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<a class="btn" data-route="math-hub" href="/math/index.html" style="border-color:var(--emerald);color:var(--emerald);">Applied Math Hub (/math/)</a>
|
||||
<a class="btn" data-route="dep-html" href="/graph/docs/cross-repo-dependency-and-audit-flow-diagram.html">Interactive Flow Diagram</a>
|
||||
<a class="btn" data-route="harvest-flow-png" href="/graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png">Periodic Harvest Flow (PNG)</a>
|
||||
<a class="btn" data-route="vps-guide" href="/graph/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf">VPS & Git Guide (PDF)</a>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.1.1) • Zero External Network Dependencies</div>
|
||||
<div>hyperstitionstud.io • Powered by hyperstitionstudio-core (hyperstitionstud_io.* / urn:io:hyperstitionstud v2.2.0) • Zero External Network Dependencies</div>
|
||||
<div class="hs-lemur-credit" style="margin-top:0.35rem;color:var(--text-muted);font-size:0.75rem;">Made with <span class="hs-heart" role="img" aria-label="love" style="color:var(--rose);display:inline-block;padding:0 2px;">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -326,30 +330,33 @@
|
||||
(function() {
|
||||
if (window.location.protocol !== "file:") return;
|
||||
const map = {
|
||||
"learn-track": "./learn/index.html",
|
||||
"quant-app": "./quant/index.html",
|
||||
"donate-page": "./donate/index.html",
|
||||
"meme-gallery": "./gallery/index.html",
|
||||
"graph-index": "../../encyclopedia-knowledge-graph/index.html",
|
||||
"graph-manual": "../../encyclopedia-knowledge-graph/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf",
|
||||
"graph-json": "../../encyclopedia-knowledge-graph/encyclopedia-graph.json",
|
||||
"enc-vol00": "../../technocapital-singularity-zoology/encyclopedia/00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z.pdf",
|
||||
"enc-overview": "../../technocapital-singularity-zoology/encyclopedia-of-technocapital-singularity-zoology-overview-and-manifest.pdf",
|
||||
"glossary-pdf": "../../technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf",
|
||||
"tier-png": "../../technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.png",
|
||||
"tier-pdf": "../../technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.pdf",
|
||||
"radar-spec": "../../encyclopedia-knowledge-graph/docs/specification-concentric-eti-tier-ring-radar-d-periphery.pdf",
|
||||
"prop-fund": "../../technocapital-singularity-zoology/proposal-fund-manager-novel-investment-discovery.pdf",
|
||||
"prop-board": "../../technocapital-singularity-zoology/proposal-corporate-board-technocapital-allocation.pdf",
|
||||
"m7-pdf": "../../technocapital-singularity-zoology/m7-emergent-subclass-bidirectional-aq-nucleation.pdf",
|
||||
"calc-app": "../../haiperdohp-jemaytreeah/index.html",
|
||||
"ci-onboarding": "../../hyperdope-ci-build/ONBOARDING-INGGLISH-AQ.pdf",
|
||||
"ci-audit": "../../hyperdope-ci-build/ci-audit-report.json",
|
||||
"arch-index": "../../ingglish-hyperdope-gematria/ingglish-aq-archive/00-index-and-methodology.md",
|
||||
"schemas-v1": "../schemas/v1/encyclopedia-graph.schema.json",
|
||||
"dep-html": "../../encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html",
|
||||
"dep-pdf": "../../encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf",
|
||||
"vps-guide": "../../encyclopedia-knowledge-graph/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf"
|
||||
"learn-track": "./learn/index.html",
|
||||
"quant-app": "./quant/index.html",
|
||||
"eng-hub": "./engineering/index.html",
|
||||
"math-hub": "./math/index.html",
|
||||
"donate-page": "./donate/index.html",
|
||||
"meme-gallery": "./gallery/index.html",
|
||||
"graph-index": "../../encyclopedia-knowledge-graph/index.html",
|
||||
"graph-manual": "../../encyclopedia-knowledge-graph/OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.pdf",
|
||||
"graph-json": "../../encyclopedia-knowledge-graph/encyclopedia-graph.json",
|
||||
"enc-vol00": "../../technocapital-singularity-zoology/encyclopedia/00-index-and-ontological-atlas/00-master-encyclopedia-index-a-to-z.pdf",
|
||||
"enc-overview": "../../technocapital-singularity-zoology/encyclopedia-of-technocapital-singularity-zoology-overview-and-manifest.pdf",
|
||||
"glossary-pdf": "../../technocapital-singularity-zoology/technocapital-singularity-zoology-comprehensive-glossary.pdf",
|
||||
"tier-png": "../../technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.png",
|
||||
"tier-pdf": "../../technocapital-singularity-zoology/tier-list-technocapital-assemblage-builds.pdf",
|
||||
"radar-spec": "../../encyclopedia-knowledge-graph/docs/specification-concentric-eti-tier-ring-radar-d-periphery.pdf",
|
||||
"prop-fund": "../../technocapital-singularity-zoology/proposal-fund-manager-novel-investment-discovery.pdf",
|
||||
"prop-board": "../../technocapital-singularity-zoology/proposal-corporate-board-technocapital-allocation.pdf",
|
||||
"m7-pdf": "../../technocapital-singularity-zoology/m7-emergent-subclass-bidirectional-aq-nucleation.pdf",
|
||||
"calc-app": "../../haiperdohp-jemaytreeah/index.html",
|
||||
"ci-onboarding": "../../hyperdope-ci-build/ONBOARDING-INGGLISH-AQ.pdf",
|
||||
"ci-audit": "../../hyperdope-ci-build/ci-audit-report.json",
|
||||
"arch-index": "../../ingglish-hyperdope-gematria/ingglish-aq-archive/00-index-and-methodology.md",
|
||||
"schemas-v1": "../schemas/v1/encyclopedia-graph.schema.json",
|
||||
"dep-html": "../../encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.html",
|
||||
"dep-pdf": "../../encyclopedia-knowledge-graph/docs/cross-repo-dependency-and-audit-flow-diagram.pdf",
|
||||
"harvest-flow-png": "../../encyclopedia-knowledge-graph/docs/periodic-harvest-cicd-to-vps-flow-diagram.png",
|
||||
"vps-guide": "../../encyclopedia-knowledge-graph/docs/VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf"
|
||||
};
|
||||
document.querySelectorAll("[data-route]").forEach(function(a) {
|
||||
const key = a.getAttribute("data-route");
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Self-Paced Learning Track — hyperstitionstud.io (Base-36 AQ, Ingglish & Technocapital Zoology)</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
:root {
|
||||
--bg-canvas: #020617;
|
||||
@@ -251,6 +251,8 @@
|
||||
<nav class="top-nav">
|
||||
<a class="btn" data-learn-route="nav-home" href="../index.html">← Portal Home</a>
|
||||
<a class="btn" data-learn-route="nav-quant" href="/quant/index.html">Time-Series (/quant/)</a>
|
||||
<a class="btn" data-learn-route="nav-eng" href="/engineering/index.html">Engineering (/engineering/)</a>
|
||||
<a class="btn" data-learn-route="nav-math" href="/math/index.html">Applied Math (/math/)</a>
|
||||
<a class="btn" data-learn-route="nav-graph" href="/graph/index.html">Knowledge Graph</a>
|
||||
<a class="btn" data-learn-route="nav-calc" href="/calc/index.html">AQ Calculator</a>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
@@ -451,11 +453,11 @@
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div>hyperstitionstud.io/learn • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.1.1)</div>
|
||||
<div>hyperstitionstud.io/learn • Powered by hyperstitionstudio-core (urn:io:hyperstitionstud:schema:v1:learn-progress-state v2.2.0)</div>
|
||||
<div class="hs-lemur-credit">Made with <span class="hs-heart" role="img" aria-label="love">♥</span> by Lemurs.</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="learn-app.js?v=2.1.1"></script>
|
||||
<script src="learn-app.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -265,7 +265,7 @@
|
||||
const base = {
|
||||
$schema: "../schemas/v1/learn-progress-state.schema.json",
|
||||
$id: SCHEMA_ID,
|
||||
version: "2.1.1",
|
||||
version: "2.2.0",
|
||||
updated_at_utc: new Date().toISOString(),
|
||||
preferred_register: "fund_manager",
|
||||
completed_modules: [],
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n) — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)</h1>
|
||||
<p class="subtitle">Cartridge M1 • Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge M1 • Non-Sequentially Revertible via <code>hs-math-docs --disable base36-algebra-and-primes</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)</li><li>Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)</li><li>Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../../learn/index.html" style="color:var(--cyan);">Internal: /learn/ Module 1 (Base-36 Valuation Table) ↗</a></li><li><a href="https://www.khanacademy.org/computing/computer-science/cryptography" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Cryptography & Modular Arithmetic ↗</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory) ↗</a></li><li><a href="https://www.3blue1brown.com/topics/number-theory" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Prime Numbers & Number Theory Visualized ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M1): Base-36 Semiring Valuation, Mod-9 Root & Prime Factorization via Z</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(prime-factors 666)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">compute_aq('envideea') == 137 # 33rd prime</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(prime-factors 666)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Click 'Send to REPL' and factor 777 or 333, or evaluate (digital-root-mod9 666) => 9.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2).</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Repdigit 37 × 3k Attractors & Prime Index π(n)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193).</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math/base36-algebra-and-primes v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math/base36-algebra-and-primes v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../math-app.js?v=2.1.1"></script>
|
||||
<script src="../math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit M3: Multi-Relational Property Graph Topology G=(V,E,R), Convex ETI Functional & LENS_REGISTRY</h1>
|
||||
<p class="subtitle">Cartridge M3 • Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge M3 • Non-Sequentially Revertible via <code>hs-math-docs --disable graph-topology-and-eti-scoring</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 3: Graph Theory, Convex Linear Combinations & Affine Maps (12-18 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Directed multigraphs G = (V, E), k-partite vertex partitions, and vertex degree deg(v)</li><li>Vectors in R^6, inner products w · s, and convex combinations (∑ w_k = 1, w_k ≥ 0)</li><li>Lexicographic total orderings and invertible affine rescaling maps</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/topics/linear-algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Essence of Linear Algebra (Vectors & Dot Products) ↗</a></li><li><a href="https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 6.042J Mathematics for Computer Science (Ch. 9-11 Graph Theory) ↗</a></li><li><a href="https://diestel-graph-theory.com/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Diestel — Graph Theory (Free Electronic Edition, Ch. 1 Basics) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M3): Exact Rational Convex ETI Functional (∑ w_k = 1)</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(+ 1/5 9/50 9/50 4/25 7/50 7/50)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>ETI = (1/5)CAP + (9/50)COL + (9/50)ARM + (4/25)PRM + (7/50)VEL + (7/50)RES</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">0.20*cap + 0.18*col + 0.18*arm + 0.16*prm + 0.14*vel + 0.14*res</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(+ 1/5 9/50 9/50 4/25 7/50 7/50)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Verify that the exact rational weights sum to 1 (not 0.9999999999999999) and evaluate (eti-score 95 92 94 90 91 96).</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Six-Partite Property Graph G = (V, E, R) & Hub Degree Centrality</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">The vertex set |V| = 388 is partitioned into 6 disjoint classes (9 Divisions, 22 Volumes, 10 Builds, 92 Operators, 190 Bilingual Specimens, 65 AQCoordinateHubs) linked by |E| = 1,282 typed edges across 10 relations. Hub degree deg(aq:N) peaks at repdigit attractors aq:777 (deg=62), aq:666 (deg=62), and aq:333 (deg=52).</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Convex Ecological Trophic Index (ETI) Functional in [0, 100]</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Each specimen i has a 6-dimensional structural vector s_i = (ARM_i, VEL_i, COL_i, CAP_i, PRM_i, RES_i) ∈ [0, 100]^6. The composite score is the convex inner product ETI_i = 0.20·CAP_i + 0.18·COL_i + 0.18·ARM_i + 0.16·PRM_i + 0.14·VEL_i + 0.14·RES_i where ∑_{k=1}^6 w_k = 1.00, guaranteeing ETI_i ∈ [0, 100]. LENS_REGISTRY applies bijective key/scale projections without mutating s_i.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math/graph-topology-and-eti-scoring v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../math-app.js?v=2.1.1"></script>
|
||||
<script src="../math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
+38
-7
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Mathematical Foundations & Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Mathematical Foundations & Quantitative Semiotics Hub — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -25,7 +25,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>HYPERSTITION STUDIO // MATHEMATICAL FOUNDATIONS & QUANTITATIVE SEMIOTICS HUB (UNIT M0)</h1>
|
||||
<p class="subtitle">Zero-CDN Native Unicode Math • Commutative Empirical Introspection • Piecewise & Non-Sequentially Revertible • urn:io:hyperstitionstud:math:v2.1.1</p>
|
||||
<p class="subtitle">Zero-CDN Native Unicode Math • Commutative Empirical Introspection • Piecewise & Non-Sequentially Revertible • urn:io:hyperstitionstud:math:v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../index.html">Portal Home (/)</a>
|
||||
@@ -36,12 +36,15 @@
|
||||
<a class="btn" href="timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Variables, functions f(x), and subscript/index notation x_i</li><li>Summation operator ∑_{i=1}^n x_i and absolute value |x|</li><li>Self-Paced Learning Track (/learn/ Modules 1-2)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-2) ↗</a></li><li><a href="https://www.khanacademy.org/math/algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Algebra & Summation (Σ) Notation ↗</a></li><li><a href="https://openstax.org/details/books/precalculus-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Variables, functions f(x), and subscript/index notation x_i</li><li>Summation operator ∑_{i=1}^n x_i and absolute value |x|</li><li>Self-Paced Learning Track (/learn/ Modules 1-2)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="../learn/index.html" style="color:var(--cyan);">Internal: Self-Paced Learning Track (/learn/ Modules 1-2) ↗</a></li><li><a href="https://www.khanacademy.org/math/algebra" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Khan Academy — Algebra & Summation (Σ) Notation ↗</a></li><li><a href="https://openstax.org/details/books/precalculus-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9) ↗</a></li><li><a href="https://sarabander.github.io/sicp/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Structure and Interpretation of Computer Programs (SICP — Free MIT Text) ↗</a></li><li><a href="https://www.gnu.org/software/guile/manual/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">GNU Guile Scheme Official Reference Manual ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M0): Applicative-Order Z Combinator & Thomas' Calculus Foundation</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="((Z (lambda (recur) (lambda (n acc) (if (<= n 0) acc (recur (- n 1) (+ acc n)))))) 10 0)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v))</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;"># Strict applicative-order fixed-point combinator (z-calculus-scheme)
|
||||
Z = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)))</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">((Z (lambda (recur) (lambda (n acc) (if (<= n 0) acc (recur (- n 1) (+ acc n)))))) 10 0)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Evaluate ∑_{i=1}^{10} i = 55 via pure anonymous Z-recursion in the REPL.</div></section>
|
||||
|
||||
<section class="stats-row">
|
||||
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">ETI Convex Sum (∑w_k)</div><div style="font-size:1.3rem;font-weight:700;color:var(--gold);">1.00</div></div>
|
||||
@@ -56,10 +59,38 @@
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math v2.1.1 • CIDv1: <code>baguqeerabssqobpitl5p5gm3ixxoa6okjjr...</code> • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math v2.2.0 • CIDv1: <code>baguqeeraq4xvyibmtgnvj5f265wvyurn2k6...</code> • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="math-app.js?v=2.1.1"></script>
|
||||
<script src="math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit M5: Macroeconomic Spread/Velocity Identities, Discrete 3-State Bayes' Rule & Multiple-Testing Bounds</h1>
|
||||
<p class="subtitle">Cartridge M5 • Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge M5 • Non-Sequentially Revertible via <code>hs-math-docs --disable macro-spreads-and-bayesian-inference</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 4: Bayesian Inference, Combinatorial Collision Bounds & Macroeconomics (15-25 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Conditional probability P(A | B) and Bayes' Theorem on the 3-state simplex Δ²</li><li>Multiple-hypothesis testing, Birthday Problem collision rates, and degrees of freedom df = n - 2</li><li>Equation of Exchange MV = PQ (V_M2 = GDP / M2), term structure slopes, and real deflation</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://www.3blue1brown.com/lessons/bayes-theorem" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">3Blue1Brown — Bayes' Theorem, The Geometry of Changing Beliefs ↗</a></li><li><a href="https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">MIT 18.05 Introduction to Probability & Statistics (Bayesian Updating) ↗</a></li><li><a href="https://openstax.org/details/books/principles-macroeconomics-3e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Principles of Macroeconomics (Ch. 14-15 Money & Monetary Policy) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M5): Exact Rational 3-State Bayesian Posterior & Adaptive Simpson Quadrature via Z</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>P(R_m | E_t) = L_m P_m / ∑_k L_k P_k, ∫_a^b f(x) dx via Simpson Z-subdivision</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">post = [p * l / z for p, l in zip(priors, likelihoods)]</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Observe the exact rational posterior '(1/10 3/10 3/5) summing to 1, or integrate x^2 from 0 to 3 via (adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6).</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Macroeconomic Spread & Velocity Identities (FRED Native Cadences)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">From real FRED observations: Non-M1 Time-Deposit Spread = M2SL - M1SL = $3,365.9B ($3.37T → 337 [68th Prime]); Liquidity Ratio = M1SL / M2SL = 85.70%; Monetary Velocity V_M2 = GDP / M2SL = 1.405x; Overnight Repo Spread = SOFR - EFFR = +10 bps (EFFR = 388 bps == 388 KG nodes); Term Slope = DGS10 - EFFR = +97 bps ('naintee sevan' = 237); Pipeline Margin = ΔPPI_MoM - ΔCPI_MoM = -54 bps.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Discrete 3-State Bayesian Updating & 'The Room Filter' Collision Bound</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Given extant priors P_{t-1}(R_m) over R = {R1 Bull, R2 Pinned Isometric, R3 Tail Drawdown} with ∑ P_{t-1}(R_m) = 1, the posterior is P_t(R_m | E_t) = L(E_t | R_m)·P_{t-1}(R_m) / ∑_{k=1}^3 L(E_t | R_k)·P_{t-1}(R_k). Testing 6 numerical encodings against 30 S1-S6 ring coordinates yields an uncoupled single-gate hit rate near Dose 1's observed 16.6% ('Grand Central Station' noise), whereas requiring joint intersection with that exact UTC date's 00:00 GMT dossier coordinates ('The Room Filter', Dose 2/3+) squares the filter selectivity.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math/macro-spreads-and-bayesian-inference v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../math-app.js?v=2.1.1"></script>
|
||||
<script src="../math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1 +1 @@
|
||||
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.1.1", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "url": "https://statquest.org/video-index/", "external": true}, {"label": "Book of Proof (Richard Hammack — Free Textbook, Ch. 12 Functions & Fibers)", "url": "https://www.people.vcu.edu/~rhammack/BookOfProof/", "external": true}], "sections": [{"heading": "1. Vector G1 IntergeneratLine truncated
|
||||
window.HYPERSTITION_MATH_MANIFEST = {"$id": "urn:io:hyperstitionstud:math-manifest", "version": "2.2.0", "enabled_subpages": ["base36-algebra-and-primes", "phonemic-projections-and-g-vectors", "graph-topology-and-eti-scoring", "timeseries-moments-and-confluence-dose", "macro-spreads-and-bayesian-inference"], "disabled_subpages": [], "enabled_routes": ["/math/index.html", "/math/base36-algebra-and-primes/index.html", "/math/phonemic-projections-and-g-vectors/index.html", "/math/graph-topology-and-eti-scoring/index.html", "/math/timeseries-moments-and-confluence-dose/index.html", "/math/macro-spreads-and-bayesian-inference/index.html"], "algebraic_invariants": {"eti_weights": [0.2, 0.18, 0.18, 0.16, 0.14, 0.14], "eti_weights_sum": 1.0, "bayesian_posterior_simplex_sum": 1.0, "cluster_292_gen0_variance": 310.22, "cluster_292_gen1_variance": 0.0, "g4_isometric_fixed_point_count": 21, "g3_quantized_steps": [0, 1, 10, 18, 20, 36, 37, 40, 74], "repdigit_37_attractors": [111, 222, 333, 444, 555, 666, 777, 888, 999]}, "empirical_counts": {"glossary_entries": 282, "bilingual_specimens": 190, "kg_nodes": 388, "kg_edges": 1282, "total_real_bars_n": 472, "fred_macro_series_n": 14}, "hub_prereq_ladder": {"unit_id": "M0", "expertise_level": "Level 1-2 (High-School Algebra & Sigma Notation • 3-6 hrs study)", "links": [{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": true}, {"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": true}, {"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": true}, {"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": true}]}, "subpages": {"base36-algebra-and-primes": {"unit_id": "M1", "slug": "base36-algebra-and-primes", "title": "Unit M1: Base-36 Alphanumeric Valuation, Repdigit 37×3k Attractors & Prime Index π(n)", "short_title": "M1: Base-36 & Primes", "pip_class": "plate-lock-gold", "expertise_level": "Level 2: Elementary Number Theory & Base Systems (8-12 hrs study)", "prerequisites": ["Positional numeral systems and non-decimal radices (Base-10 vs. Base-36)", "Fundamental Theorem of Arithmetic (111 = 3 × 37) and prime-counting function π(n)", "Additive string homomorphisms AQ(u · v) = AQ(u) + AQ(v) over character monoids"], "public_resources": [{"label": "Internal: /learn/ Module 1 (Base-36 Valuation Table)", "url": "/learn/index.html", "external": false}, {"label": "Khan Academy — Cryptography & Modular Arithmetic", "url": "https://www.khanacademy.org/computing/computer-science/cryptography", "external": true}, {"label": "MIT 6.042J Mathematics for Computer Science (Ch. 8 Number Theory)", "url": "https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/", "external": true}, {"label": "3Blue1Brown — Prime Numbers & Number Theory Visualized", "url": "https://www.3blue1brown.com/topics/number-theory", "external": true}], "sections": [{"heading": "1. The Base-36 Alphanumeric Homomorphism v: {0..9, A..Z} → {0..35}", "body": "For any character c, v(c) = ord(c) - 48 for digits '0'..'9' (0..9), v(c) = ord(lower(c)) - 87 for ASCII letters 'A'..'Z' (10..35), and v(c) = 0 otherwise. Extended over a string w = c_1...c_k, AQ(w) = ∑_{i=1}^k v(c_i). Under concatenation, AQ(w_1 · w_2) = AQ(w_1) + AQ(w_2)."}, {"heading": "2. Repdigit 37 × 3k Attractors & Prime Index π(n)", "body": "Three-digit repdigits R_k = 111 · k = 3 · 37 · k ∈ {111, 222, 333, 444, 555, 666, 777, 888, 999} factor through the prime 37 (12th prime) and 3. For prime coordinates p ∈ P, prime_rank(p) = π(p) = |{q ∈ P : q ≤ p}| (e.g., π(137) = 33 for 'envideea' = 137; π(193) = 44 for 'anthropik' = 'flash krash' = 193)."}]}, "phonemic-projections-and-g-vectors": {"unit_id": "M2", "slug": "phonemic-projections-and-g-vectors", "title": "Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6", "short_title": "M2: Phonemic Φ & G1-G6", "pip_class": "plate-lock-emerald", "expertise_level": "Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)", "prerequisites": ["Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w", "Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²", "How non-injective projection onto shared phonemic attractors collapses set variance"], "public_resources": [{"label": "OpenStax Introductory Statistics (Ch. 2 Mean & Variance)", "url": "https://openstax.org/details/books/introductory-statistics-2e", "external": true}, {"label": "StatQuest with Josh Starmer — Variance & Standard Deviation", "url"Line truncated
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$id": "urn:io:hyperstitionstud:math-manifest",
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.0",
|
||||
"enabled_subpages": [
|
||||
"base36-algebra-and-primes",
|
||||
"phonemic-projections-and-g-vectors",
|
||||
@@ -80,6 +80,16 @@
|
||||
"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)",
|
||||
"url": "https://openstax.org/details/books/precalculus-2e",
|
||||
"external": true
|
||||
},
|
||||
{
|
||||
"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)",
|
||||
"url": "https://sarabander.github.io/sicp/",
|
||||
"external": true
|
||||
},
|
||||
{
|
||||
"label": "GNU Guile Scheme Official Reference Manual",
|
||||
"url": "https://www.gnu.org/software/guile/manual/",
|
||||
"external": true
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -291,6 +301,6 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeerabssqobpitl5p5gm3ixxoa6okjjrthx6ru5kjdtap2al7qmtjsedq"
|
||||
"/": "baguqeeraq4xvyibmtgnvj5f265wvyurn2k6eyyx5lml7rt4tjivcwyqm3ydq"
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6 — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit M2: Phonemic Projection Φ: Σ_eng* → Σ_ing* & Genealogical Vectors G1–G6</h1>
|
||||
<p class="subtitle">Cartridge M2 • Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge M2 • Non-Sequentially Revertible via <code>hs-math-docs --disable phonemic-projections-and-g-vectors</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="../timeseries-moments-and-confluence-dose/index.html" style="">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 2-3: Set Mappings, Equivalence Fibers & Descriptive Statistics (8-12 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Surjective mappings Φ: A → B, equivalence kernels ker(AQ ∘ Φ), and fixed points Φ(w) = w</li><li>Population mean μ = (1/N)∑ x_i and population variance σ²(X) = (1/N)∑(x_i - μ)²</li><li>How non-injective projection onto shared phonemic attractors collapses set variance</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://openstax.org/details/books/introductory-statistics-2e" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">OpenStax Introductory Statistics (Ch. 2 Mean & Variance) ↗</a></li><li><a href="https://statquest.org/video-index/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">StatQuest with Josh Starmer — Variance & Standard Deviation ↗</a></li><li><a href="https://www.people.vcu.edu/~rhammack/BookOfProof/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Book of Proof (Richard Hammack — Free Textbook, Ch. 12 Functions & Fibers) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M2): Exact Rational Population Variance Collapse on Cluster 292 via Z</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="(variance-pop *cluster-292-gen0*)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>σ²_0({264, 317, 276}) = 4634/9 ≈ 514.89 → σ²_1({292, 292, 292}) = 0</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">compute_variance([264, 317, 276]) # 514.89 -> 0.0</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">(variance-pop *cluster-292-gen0*)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Evaluate (variance-pop *cluster-292-gen1*) => 0 in the REPL and compare exact rational 4634/9 vs float.</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Vector G1 Intergenerational Variance Collapse (Δσ²_G1)</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Given a lexical cluster S = {w_1, ..., w_N}, define Gen 0 variance σ²_0(S) = σ²({AQ(w) : w ∈ S}) and Gen 1 phonemic variance σ²_1(S) = σ²({AQ(Φ(w)) : w ∈ S}). Vector G1 measures Δσ²_G1(S) = σ²_0(S) - σ²_1(S). For S_292 = {'schizoanalysis' (264), 'abstract machine' (317), 'synthetic data' (276)}, Φ maps all three to 292 ('shizohnalizis'=292, 'abstrakt masheen'=292, 'sinthetik dayta'=292), collapsing σ²_0 = 514.89 to σ²_1 = 0.00 (Δσ²_G1 = +514.89).</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Vector G3 Quantized Steps, Vector G4 Isometric Fixed Points (Δ = 0) & Vector G5 Twin Primes</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Define phonemic drift Δ(w) = AQ(Φ(w)) - AQ(w). Vector G4 consists of isometric fixed points where Δ(w) = 0 (21 canonical specimens including 'ASML'=81, 'capital'→'kapatal'=125, 'palantir'→'palanter'=159, 'nineteen'→'nainteen'=137). Vector G3 captures quantized step magnitudes |Δ(w)| ∈ {0, 1, 10, 18, 20, 36, 37, 40, 74}, and Vector G5 captures twin-prime mutations where both AQ(w) ∈ P and AQ(Φ(w)) ∈ P with Δ(w) ≠ 0.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math/phonemic-projections-and-g-vectors v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../math-app.js?v=2.1.1"></script>
|
||||
<script src="../math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.1.1)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<title>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4} — hyperstitionstud.io/math (v2.2.0)</title>
|
||||
<link rel="stylesheet" href="../../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: 'DejaVu Sans Mono', ui-monospace, monospace; padding: 1.25rem; line-height: 1.5; }
|
||||
@@ -22,7 +22,7 @@
|
||||
<header>
|
||||
<div>
|
||||
<h1>Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}</h1>
|
||||
<p class="subtitle">Cartridge M4 • Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> • v2.1.1</p>
|
||||
<p class="subtitle">Cartridge M4 • Non-Sequentially Revertible via <code>hs-math-docs --disable timeseries-moments-and-confluence-dose</code> • v2.2.0</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" href="../../index.html">Portal Home (/)</a>
|
||||
@@ -33,12 +33,14 @@
|
||||
<a class="btn" href="index.html" style="border-color:var(--gold);color:var(--gold);">M4: Time-Series & Dose Math</a>
|
||||
<a class="btn" href="../macro-spreads-and-bayesian-inference/index.html" style="">M5: Macro & Bayesian Math</a>
|
||||
<a class="btn" href="../../engineering/index.html">Engineering Hub (/engineering/)</a>
|
||||
<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)"><span class="hs-guile-lambda-badge">λ</span><span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>
|
||||
<span class="nav-donate-sep" aria-hidden="true"></span>
|
||||
<a class="btn-donate-pill" href="../../donate/index.html"><span class="donate-pill-emblem" aria-hidden="true">♥</span><span>DONATE</span></a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="panel hs-plate-g3 plate-lock-emerald hs-prereq-ladder" style="margin-bottom:0.9rem;padding:1rem 1.2rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--emerald);text-transform:uppercase;letter-spacing:0.06em;">Prerequisite Track for Novices • Required Expertise: Level 3-4: Nonparametric Order Statistics & Time-Series Correlation (15-20 hrs study)</div><p style="font-size:0.76rem;color:var(--text-secondary);margin:0.35rem 0;">If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:</p><div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0.8rem;margin-top:0.4rem;"><div><strong style="font-size:0.73rem;color:var(--gold);">Core Mathematical Prerequisites:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li>Basis-point return arithmetic Δbps_{i,t} = round(((P_t - P_{t-1}) / P_{t-1}) × 10^4)</li><li>Nonparametric order statistics (Median P50, 90th percentile P90) vs. outlier-sensitive means</li><li>Pearson linear correlation r(τ) across lags τ ∈ [-5..+5] and indicator sums ∑ I(A_s)</li></ul></div><div><strong style="font-size:0.73rem;color:var(--cyan);">Curated Free Public Study Resources:</strong><ul style="font-size:0.72rem;color:var(--text-main);margin:0.25rem 0 0 1.1rem;line-height:1.5;"><li><a href="https://seeing-theory.brown.edu/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Seeing Theory (Brown University Visual Intro to Probability & Statistics) ↗</a></li><li><a href="https://online.stat.psu.edu/stat510/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">Penn State STAT 510 Applied Time Series Analysis (Cross-Correlation) ↗</a></li><li><a href="https://www.itl.nist.gov/div898/handbook/" target="_blank" rel="noopener noreferrer" style="color:var(--cyan);">NIST/SEMATECH e-Handbook of Statistical Methods (Order Statistics) ↗</a></li></ul></div></div></section>
|
||||
<section class="panel hs-plate-g3 hs-guile-cartridge"><div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;"><div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ Guile Scheme Foil (M4): Confluence Dose D ∈ {0..4} & Thomas' Calculus Central Derivative via Z</div><button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button></div><div class="hs-guile-triview"><div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>f'(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)</code></div><div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">confluence_dose = sum(1 for x in species_hits if x)</pre></div><div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">((derivative (lambda (x) (* x x x)) 1e-5) 2.0)</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div></div><div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> Compute the derivative of x^3 at x=2.0 (=> 12.0) or the 2nd derivative via ((nth-derivative (lambda (x) (* x x x)) 2 1e-3) 2.0).</div></section>
|
||||
<article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">1. Four-Species Confluence Dose Indicator Sum D_{i,t} ∈ {0, 1, 2, 3, 4}</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">For ticker i on trading session t, D_{i,t} = I(Scope1_{i,t}) + I(Scope2Ring_{i,t}) + I(SharedDossier_{i,t}) + I(WireEntity_{i,t}). Whenever a session is closed or private (data_available = False), D_{i,t} = null rather than 0, preventing missing-data bias.</p></article><article class="panel hs-plate-g3" style="padding:1rem 1.2rem;margin-bottom:0.85rem;"><h2 style="font-size:0.92rem;color:var(--gold);margin-bottom:0.4rem;">2. Nonparametric Order Statistics (P50, P90) & the Empirical Two-Regime Split</h2><p style="font-size:0.76rem;color:var(--text-main);line-height:1.6;">Because cross-asset returns |Δbps| are heavy-tailed, Median P50 and P90 are the robust estimators: across the 440 real November 2026 bars, Dose 2 (Market Ring × Same-Day Dossier without headline shock, n=34) compresses median displacement by -58% (P50 = 101.0 bps vs. 240.5 bps at Dose 0; P90 = 292 bps vs. 665 bps), whereas Dose 3+ (n=4) triggers a 1.98x volume surge and 377.5 bps next-day continuation.</p></article>
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -47,10 +49,38 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.1.1 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/math/timeseries-moments-and-confluence-dose v2.2.0 • Made with <span class="hs-heart" style="color:var(--rose);">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v=2.1.1"></script>
|
||||
<script src="../math-app.js?v=2.1.1"></script>
|
||||
<script src="../math-manifest-data.js?v=2.2.0"></script>
|
||||
<script src="../math-app.js?v=2.2.0"></script>
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="../../assets/hs-guile-scheme-repl.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,2 +1,2 @@
|
||||
// Auto-generated by hyperstitionstud_io.quant.daily_brief — DO NOT EDIT MANUALLY
|
||||
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.1.1", "run_number": 11, "generated_at_utc": "2026-12-01T00:34:19Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=39) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 8 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 23.81, "us10y_yield_pct": 4.94, "btc_latest_change_bps": -44, "copper_hg_latest_change_bps": 181, "effr_overnight_pct": 3.88, "sofr_overnight_pct": 3.98, "sofr_minus_effr_spread_bps": 10, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.6354, "R2_PINNED_ISOMETRIC": 0.805, "R3_TAIL_DRAWDOWN_RISK_OFF": 3.5063}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125, "volume_ratio_20d": 0.73, "shared_dossier_coordinates": [71, 125], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59321.42, "change_bps": -91, "volume_ratio_20d": 0.38, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "ETH-USD", "entity_ing": "edheroom", "close_usd": 1645.99, "change_bps": -91, "volume_ratio_20d": 0.52, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 70.46,Line truncated
|
||||
window.HYPERSTITION_DAILY_BRIEF = {"$schema": "./schemas/v1/daily-portfolio-brief.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief", "version": "2.2.0", "run_number": 12, "generated_at_utc": "2026-12-01T01:01:54Z", "synthetic_data_eliminated": true, "agenda_1_executive_summary": {"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.", "high_impact_findings_ranked": [{"rank": 1, "theme": "Dose 2 Isometric Pinning Dominance vs. Dose 3+ Tail Exhaustion", "durability_score": 0.84, "severity_score": 0.78, "portfolio_impact_probability": 0.81, "evidence": "Across 440 real Nov 2026 bars, Dose 2 (n=39) cut median moves to 101.0 bps (P90=292 bps, 60.6% next-day continuation), while all 8 Dose 3+ triple-confluence events were 100% downside selloffs averaging 1.98x volume and 377.5 bps next-day moves."}, {"rank": 2, "theme": "FRED Overnight Rate & Pipeline Margin Lock (EFFR = 388 bps, PPI MoM = -19 bps -> 137)", "durability_score": 0.88, "severity_score": 0.72, "portfolio_impact_probability": 0.79, "evidence": "EFFR holds at 3.88% (388 bps == 388 Knowledge Graph nodes) with SOFR at 3.98% (+10 bps repo spread), while PPI MoM (-19 bps -> 'nineteen'/'nainteen' = 137 [G4 Isometric]) undercuts CPI MoM (+35 bps -> 166) by -54 bps."}, {"rank": 3, "theme": "Synchronous Crypto & AI Hardware Coordinate Locks (BTC/ETH -91 bps, GOOGL -108 bps -> 292, SOL $73.07 == 73)", "durability_score": 0.76, "severity_score": 0.74, "portfolio_impact_probability": 0.75, "evidence": "SOL-USD locked onto its own ticker AQ ($73.07 == SOL=73) before surging +536 bps next day; GOOGL -108 bps locked onto Gen 0 292 (Dossier 62); BTC-USD and ETH-USD posted a simultaneous -91 bps (kampyoot=91) lock on 2026-11-26/28."}], "risk_on_off_barometers": {"vix_close": 23.81, "us10y_yield_pct": 4.94, "btc_latest_change_bps": -44, "copper_hg_latest_change_bps": 181, "effr_overnight_pct": 3.88, "sofr_overnight_pct": 3.98, "sofr_minus_effr_spread_bps": 10, "real_m2_mom_growth_bps": 16}, "bayesian_regime_inference": {"extant_priors": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "likelihood_factors": {"R1_BULL_RISK_ON": 0.6354, "R2_PINNED_ISOMETRIC": 0.805, "R3_TAIL_DRAWDOWN_RISK_OFF": 3.5063}, "posterior_probabilities": {"R1_BULL_RISK_ON": 0.0, "R2_PINNED_ISOMETRIC": 0.0, "R3_TAIL_DRAWDOWN_RISK_OFF": 1.0}, "scenarios": {"best_case_r1_bull_risk_on": {"probability": 0.0, "label": "Best Case — Risk-On Expansion & Smooth Trend Continuation", "expected_daily_excursion_bps": "P50: +180 to +240 bps (Up-skewed S1/S2 leadership)", "drivers": "Real M2 positive growth (+16 bps MoM), easing PPI pipeline (-19 bps MoM), and VIX compression."}, "base_case_r2_pinned_isometric": {"probability": 0.0, "label": "Base Case — Vector G1/G4 Isometric Attractor Pinning (Dose 2 Regime)", "expected_daily_excursion_bps": "P50: 101.0 bps | P90 Tail: 292.0 bps (-58% variance compression vs. Dose 0)", "drivers": "Cross-species Market Ring × Same-Day Dossier Coordinate locks without headline shocks (60.6% next-day continuation)."}, "worst_case_r3_tail_drawdown": {"probability": 1.0, "label": "Worst Case — Dose 3+ Phase-Transition Drawdown & Sovereign Yield Tightening", "expected_daily_excursion_bps": "Next-Day Mean: -377.5 bps | 3-Day Cumulative Excursion: 1,395.0 bps (~13.95%)", "drivers": "US10Y near 4.85%-4.94% + triple-species Dose 3+ collisions (100% downside skew & 1.98x mean volume in Nov 2026)."}}}}, "agenda_2_confirming_signals": {"summary": "Macro liquidity expansion (Real M2 +16 bps MoM, M1 +52 bps MoM) and easing producer input costs (PPI -19 bps MoM) support S1/S3 operating margins, while Dose 2 dossier-tape locks confirm quiet accumulation.", "active_dose2_confirmations": [{"date_utc": "2026-11-30", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59696.43, "change_bps": -44, "volume_ratio_20d": 0.77, "shared_dossier_coordinates": [189], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-29", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 71.34, "change_bps": 125, "volume_ratio_20d": 0.73, "shared_dossier_coordinates": [71, 125], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "BTC-USD", "entity_ing": "bitkoin", "close_usd": 59321.42, "change_bps": -91, "volume_ratio_20d": 0.38, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "ETH-USD", "entity_ing": "edheroom", "close_usd": 1645.99, "change_bps": -91, "volume_ratio_20d": 0.52, "shared_dossier_coordinates": [91], "dose_taxon_label": "Dose 2: G1/G4 Pinning Well"}, {"date_utc": "2026-11-28", "symbol": "SOL-USD", "entity_ing": "sohlana", "close_usd": 70.46,Line truncated
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"$schema": "./schemas/v1/daily-portfolio-brief.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:daily-portfolio-brief",
|
||||
"version": "2.1.1",
|
||||
"run_number": 11,
|
||||
"generated_at_utc": "2026-12-01T00:34:19Z",
|
||||
"version": "2.2.0",
|
||||
"run_number": 12,
|
||||
"generated_at_utc": "2026-12-01T01:01:54Z",
|
||||
"synthetic_data_eliminated": true,
|
||||
"agenda_1_executive_summary": {
|
||||
"headline_finding": "Late-November tape is governed by Vector G1/G4 Isometric Pinning (Dose 2, Posterior P(R2) = 0.0%), compressing median daily moves by -58% (101.0 bps vs. 240.5 bps baseline), while sovereign rates (US10Y 4.85%-4.94%, EFFR 3.88% == 388 KG nodes) cap long-duration multiple expansion.",
|
||||
@@ -378,8 +378,8 @@
|
||||
]
|
||||
},
|
||||
"agenda_4_delta_since_last_run": {
|
||||
"prior_run_number": 10,
|
||||
"current_run_number": 11,
|
||||
"prior_run_number": 11,
|
||||
"current_run_number": 12,
|
||||
"latest_wire_dossier": {
|
||||
"date_utc": "2026-11-30",
|
||||
"dossier_number": 72,
|
||||
@@ -432,13 +432,13 @@
|
||||
},
|
||||
"agenda_5_daily_key_macro_question_and_rigor": {
|
||||
"prior_question_grading": {
|
||||
"prior_question_id": "Q-RUN-0010",
|
||||
"prior_question_id": "Q-RUN-0011",
|
||||
"prior_question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||
"status": "EVALUATED_ON_REAL_TAPE",
|
||||
"evidence_summary": "Late-November real tape logged 12 Dose 2 isometric pinning sessions (including 2026-11-24 GOOGL -108 bps -> 292 and 2026-11-28 BTC/ETH -91 bps sync wave) with 0 new Dose 3+ drawdown shocks after Nov 19, confirming Base-Case R2 variance compression."
|
||||
},
|
||||
"active_daily_question": {
|
||||
"question_id": "Q-RUN-0011",
|
||||
"question_id": "Q-RUN-0012",
|
||||
"question_text": "Will the synchronous -91 bps (kampyoot / kleenroom) Dose 2 pinning wave across BTC-USD and ETH-USD and NVDA's +80 bps ('eighty' = 128 [S3]) lock hold inside the P50 <= 150 bps isometric corridor, or will US10Y yields near 4.85%-4.94% and SOFR-EFFR (+10 bps) trigger a Dose 3+ high-volume (>1.5x Vol20d) breakout?",
|
||||
"confirmation_threshold_r2_pin": "Next-session median displacement across locked S1/S2/S3 leaders remains <= 150 bps with Vol20d < 1.15x.",
|
||||
"falsification_threshold_r3_breakout": "Any S1/S2/S3 keystone logs a Dose 3+ headline-coupled session with Vol20d >= 1.50x or change_bps <= -300 bps."
|
||||
@@ -477,6 +477,6 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeral24w6gneqk7n4ule4pu2kknmdxrja46iz5dujnbabjv6cng6ttua"
|
||||
"/": "baguqeeratalw7a3v4wps5vffanzkikbrk32tgjlrkyx3d64jfivp3raku4oq"
|
||||
}
|
||||
}
|
||||
+10
-8
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Quantitative Finance & Memetic Gematria Time-Series Workbench — hyperstitionstud.io/quant</title>
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.1.1" />
|
||||
<link rel="stylesheet" href="../assets/hs-group3-basalt-chamfer.css?v=2.2.0" />
|
||||
<style>
|
||||
:root {
|
||||
--bg-canvas: #020617;
|
||||
@@ -329,17 +329,19 @@
|
||||
padding-top: 1rem;
|
||||
}
|
||||
</style>
|
||||
<script src="quant-timeseries-data.js?v=2.1.1"></script>
|
||||
<script src="quant-timeseries-data.js?v=2.2.0"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div>
|
||||
<h1>hyperstitionstud.io/quant — Quantitative Finance & Memetic Gematria Time-Series Workbench</h1>
|
||||
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.1.1)</p>
|
||||
<p class="subtitle">Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.2.0)</p>
|
||||
</div>
|
||||
<nav class="top-nav">
|
||||
<a class="btn" id="navHome" href="/">Portal Home (/)</a>
|
||||
<a class="btn" id="navEng" href="/engineering/index.html">Engineering (/engineering/)</a>
|
||||
<a class="btn" id="navMath" href="/math/index.html">Applied Math (/math/)</a>
|
||||
<a class="btn" id="navGraph" href="/graph/index.html">Knowledge Graph (/graph/)</a>
|
||||
<a class="btn" id="navLearn" href="/learn/index.html">Learning Track (/learn/)</a>
|
||||
<a class="btn" id="navCalc" href="/calc/index.html">AQ Calculator (/calc/)</a>
|
||||
@@ -475,12 +477,12 @@
|
||||
<div id="quantInfoPopover" role="dialog" aria-hidden="true"></div>
|
||||
|
||||
<footer>
|
||||
hyperstitionstud.io/quant v2.1.1 • Made with <span class="hs-heart" style="color:#ff4d4d;">♥</span> by Lemurs.
|
||||
hyperstitionstud.io/quant v2.2.0 • Made with <span class="hs-heart" style="color:#ff4d4d;">♥</span> by Lemurs.
|
||||
</footer>
|
||||
</div>
|
||||
<script src="real-macro-indicators-data.js?v=2.1.1"></script>
|
||||
<script src="daily-brief-data.js?v=2.1.1"></script>
|
||||
<script src="quant-app.js?v=2.1.1"></script>
|
||||
<script src="quant-tutorials.js?v=2.1.1"></script>
|
||||
<script src="real-macro-indicators-data.js?v=2.2.0"></script>
|
||||
<script src="daily-brief-data.js?v=2.2.0"></script>
|
||||
<script src="quant-app.js?v=2.2.0"></script>
|
||||
<script src="quant-tutorials.js?v=2.2.0"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
// /workspace/hyperstitionstudio-core/site/quant/quant-app.js
|
||||
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.1.1)
|
||||
// Interactive Quantitative Finance & Memetic Gematria Time-Series Workbench (v2.2.0)
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// Auto-generated synchronous time-series bundle for file:// and https:// portability
|
||||
window.HyperstitionStudio = window.HyperstitionStudio || {};
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.1.1", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.1.1", "generated_at_utc": "2026-12-01T00:34:16Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 22, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_veLine truncated
|
||||
window.HyperstitionStudio.QuantTimeSeries = {"$schema": "./schemas/v1/quant-timeseries.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:quant-timeseries", "version": "2.2.0", "namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.2.0", "generated_at_utc": "2026-12-01T01:01:50Z", "synthetic_data_eliminated": true, "periodicity_gate": {"enforced": true, "allowed_cadences": ["1d-us-closing-bell-2130-utc", "24h-news-wire-rollover-0000-utc"], "dated_news_dossiers_ingested": 22, "excluded_non_periodic_sources": ["01-ingglish-aq-lexicon.md", "10-19-ledger-*.md", "20-24-dossier-*.md", "26-45-dossier-*.md", "65-69-dossier-technocapital-singularity-*.md", "technocapital-singularity-zoology/encyclopedia/*", "proposal-*.md", "lecture-*.md", "podcast-ep*.md", "haiperdohp-jemaytreeah/db.json"], "non_periodic_records_ingested": 0, "missing_data_policy": "No data available (never synthesized or interpolated)"}, "enabled_lenses": ["fund_manager", "neutral_math", "corporate_board", "tierzoo_ecology", "fantasy_sabermetrics", "pokedex_scanner"], "default_lens": "fund_manager", "lens_registry_meta": {"fund_manager": {"lens_id": "fund_manager", "title": "Quantitative Hedge Fund & Factor Risk", "short_label": "Quant Factor", "structural_labels": {"struct_isometric_armor": "Chokepoint Moat", "struct_drift_velocity": "Signal Velocity", "struct_variance_collapse": "Convergence Power", "struct_trophic_capture": "Institutional Coupling", "struct_prime_density": "Idiosyncratic Asymmetry", "struct_repricing_resilience": "Regime Robustness"}, "timeseries_labels": {"ts_duty_cycle_pct": "Signal Duty Cycle / Hit Rate (%)", "ts_weighted_resonance": "Conviction-Weighted Exposure (0-100)", "ts_excess_over_replacement": "Information Ratio / Alpha Over Benchmark", "ts_quantile_profile": "Downside VaR_20 / Upside P90 / Convexity CV", "ts_optimal_lag_days": "Granger Lead-Lag Horizon τ* (Days)", "ts_regime_splits": "Regime-Conditional Beta Split (M1/M2/M3)"}}, "neutral_math": {"lens_id": "neutral_math", "title": "Neutral Mathematical & Statistical Invariants", "short_label": "Neutral Math", "structural_labels": {"struct_isometric_armor": "G4 Isometric Ratio (Δ=0)", "struct_drift_velocity": "G3 Inverse Phonemic Drift", "struct_variance_collapse": "G1 Log Variance Collapse", "struct_trophic_capture": "Bipartite S×S6 Coupling Degree", "struct_prime_density": "G5 Prime & Twin-Prime Density", "struct_repricing_resilience": "Repricing Counter-Swap Closure"}, "timeseries_labels": {"ts_duty_cycle_pct": "Active Duty Cycle Pr[X_t > 0] (%)", "ts_weighted_resonance": "Weighted Resonance Index (0-100)", "ts_excess_over_replacement": "Excess Value Over Baseline (σ-Units)", "ts_quantile_profile": "Quantile Spread (P20 / P90 / CV)", "ts_optimal_lag_days": "Peak Cross-Correlation Lag τ* (Days)", "ts_regime_splits": "Conditional Regime Delta E[X|S_t] - μ"}}, "corporate_board": {"lens_id": "corporate_board", "title": "Corporate Strategy & Balance-Sheet Governance", "short_label": "Corporate Board", "structural_labels": {"struct_isometric_armor": "Supply-Chain Moat", "struct_drift_velocity": "Execution Agility", "struct_variance_collapse": "Cross-Unit Synergy", "struct_trophic_capture": "Governance & Balance-Sheet Integration", "struct_prime_density": "Proprietary IP Density", "struct_repricing_resilience": "Stress-Test Resilience"}, "timeseries_labels": {"ts_duty_cycle_pct": "Operational Utilization Cadence (%)", "ts_weighted_resonance": "Strategic Capital Share (0-100)", "ts_excess_over_replacement": "Net Economic Value Added (EVA)", "ts_quantile_profile": "Base-Case Floor / Upside Case / Variance", "ts_optimal_lag_days": "Guidance-to-Market Lead Time τ* (Days)", "ts_regime_splits": "Macro Stress-Scenario Delta (Halt/Surge/Cap)"}}, "tierzoo_ecology": {"lens_id": "tierzoo_ecology", "title": "TierZoo Ecological Trophic Index (ETI)", "short_label": "TierZoo (ETI)", "structural_labels": {"struct_isometric_armor": "ARM (G4 Isometric Chokepoint Armor)", "struct_drift_velocity": "VEL (Teleoplexic Escape Velocity)", "struct_variance_collapse": "COL (G1 Variance-Collapse Compression)", "struct_trophic_capture": "CAP (S×S6 Double-Articulation & Capture)", "struct_prime_density": "PRM (Prime & G5 Twin-Prime Mutation IQ)", "struct_repricing_resilience": "RES (Tri-Modal Repricing & State Resilience)"}, "timeseries_labels": {"ts_duty_cycle_pct": "Foraging Activity Duty Cycle (%)", "ts_weighted_resonance": "Trophic Dominance Rating (0-100)", "ts_excess_over_replacement": "Apex Surplus Over Extinction Floor", "ts_quantile_profile": "Metabolic Floor / Burst Ceiling / Niche CV", "ts_optimal_lag_days": "Predator-Prey Phase Lead τ* (Days)", "ts_regime_splits": "Biome Weather Adaptation Split (M1/M2/M3)"}}, "fantasy_sabermetrics": {"lens_id": "fantasy_sabermetrics", "title": "Fantasy Football & Sabermetric Roster Engine", "short_label": "Fantasy Sabermetrics", "structural_labels": {"struct_isometric_armor": "Pass Protection (OL Chokepoint Block)", "struct_drift_veLine truncated
|
||||
@@ -7034,7 +7034,7 @@
|
||||
"fantasy_sabermetrics",
|
||||
"pokedex_scanner"
|
||||
],
|
||||
"generated_at_utc": "2026-12-01T00:34:16Z",
|
||||
"generated_at_utc": "2026-12-01T01:01:50Z",
|
||||
"instruments": [
|
||||
{
|
||||
"available_trading_days": 19,
|
||||
@@ -38684,7 +38684,7 @@
|
||||
}
|
||||
],
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeraf3t4wmg77cmr7zkxkhnzz5how7qjahqei5mxn46g75vt62yjni4a"
|
||||
"/": "baguqeeraquxzowbglqtcjr5b7aov5vwnhtkpqq3ewgs7jxtt6x7gwcwrmk3q"
|
||||
},
|
||||
"isolation_receipt": {
|
||||
"all_unchanged": true,
|
||||
@@ -38830,7 +38830,7 @@
|
||||
"title": "TierZoo Ecological Trophic Index (ETI)"
|
||||
}
|
||||
},
|
||||
"namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.1.1",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:quant-timeseries:2.2.0",
|
||||
"periodicity_gate": {
|
||||
"allowed_cadences": [
|
||||
"1d-us-closing-bell-2130-utc",
|
||||
@@ -38854,5 +38854,5 @@
|
||||
"non_periodic_records_ingested": 0
|
||||
},
|
||||
"synthetic_data_eliminated": true,
|
||||
"version": "2.1.1"
|
||||
"version": "2.2.0"
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// /workspace/hyperstitionstudio-core/site/quant/quant-tutorials.js
|
||||
// Option B Zero-MP4 Interactive HTML5 Canvas Tutorial Player & Deep-Link Choreographer (v2.1.1)
|
||||
// Option B Zero-MP4 Interactive HTML5 Canvas Tutorial Player & Deep-Link Choreographer (v2.2.0)
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
@@ -633,7 +633,7 @@
|
||||
}
|
||||
|
||||
window.HyperstitionStudio.QuantTutorials = {
|
||||
version: "2.1.1",
|
||||
version: "2.2.0",
|
||||
episodes: EPISODES,
|
||||
adaptHrefForFileProtocol: adaptHrefForFileProtocol,
|
||||
init: initTutorials
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// Auto-generated by hyperstitionstud_io.quant.macro — DO NOT EDIT MANUALLY
|
||||
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.1.1", "generated_at_utc": "2026-12-01T00:34:17Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-25", "latest_value": 4.85, "prior_date_utc": "2026-11-24", "prior_value": 4.91, "period_change_bps": -6, "period_change_pct": -0.06, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 485, "digit_aq": 17, "spoken_eng": "four hundred eighty five", "spoken_eng_aq": 439, "spoken_ing": "for huhndrad aytee faiv", "spoken_ing_aq": 391, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 6, "digit_aq": 6, "spoken_eng": "six", "spoken_eng_aq": 79, "spoken_ing": "siks", "spoken_ing_aq": 94, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2026-11-26"], "recent_observations": [{"date_utc": "2026-11-24", "data_available": true, "status": "ok", "value": 4.91}, {"date_utc": "2026-11-25", "data_available": true, "status": "ok", "value": 4.85}, {"date_utc": "2026-11-26", "data_available": false, "status": "No data available", "value": null}]}, "effr": {"series_id": "EFFR", "slug": "effr", "label": "EFFR (Effective Federal Funds Overnight Lending Rate)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-27", "latest_value": 3.88, "prior_date_utc": "2026-11-25", "prior_value": 3.88, "period_change_bps": 0, "period_change_pct": 0.0, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 388, "digit_aq": 19, "spoken_eng": "three hundred eighty eight", "spoken_eng_aq": 460, "spoken_ing": "three huhndrad aytee ayt", "spoken_ing_aq": 425, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 0, "digit_aq": 0, "spoken_eng": "zero", "spoken_eng_aq": 100, "spoken_ing": "zeeroh", "spoken_ing_aq": 131, "prime_rank_face": null, "prime_rank_spoken_ing": 32, "Line truncated
|
||||
window.HYPERSTITION_MACRO_DATA = {"$schema": "./schemas/v1/macro-indicators.schema.json", "$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators", "version": "2.2.0", "generated_at_utc": "2026-12-01T01:01:52Z", "synthetic_data_eliminated": true, "cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable", "source": "fred_stlouisfed_keyless_csv", "series_count": 14, "series": {"cpi": {"series_id": "CPIAUCSL", "slug": "cpi", "label": "CPI (Consumer Price Index: All Urban Consumers)", "cadence": "1mo", "unit": "Index (1982-84=100)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 337.476, "prior_date_utc": "2026-09-01", "prior_value": 336.298, "period_change_bps": 35, "period_change_pct": 0.35, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 337, "digit_aq": 13, "spoken_eng": "three hundred thirty seven", "spoken_eng_aq": 502, "spoken_ing": "three huhndrad therdee sevan", "spoken_ing_aq": 485, "prime_rank_face": 68, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 35, "digit_aq": 8, "spoken_eng": "thirty five", "spoken_eng_aq": 232, "spoken_ing": "therdee faiv", "spoken_ing_aq": 202, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 336.298}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 337.476}]}, "ppi": {"series_id": "PPIACO", "slug": "ppi", "label": "PPI (Producer Price Index: All Commodities)", "cadence": "1mo", "unit": "Index (1982=100)", "guilds": ["S3", "S6"], "data_available": true, "status": "ok", "latest_date_utc": "2026-10-01", "latest_value": 293.921, "prior_date_utc": "2026-09-01", "prior_value": 294.473, "period_change_bps": -19, "period_change_pct": -0.19, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 294, "digit_aq": 15, "spoken_eng": "two hundred ninety four", "spoken_eng_aq": 459, "spoken_ing": "too huhndrad naintee for", "spoken_ing_aq": 424, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 19, "digit_aq": 10, "spoken_eng": "nineteen", "spoken_eng_aq": 158, "spoken_ing": "nainteen", "spoken_ing_aq": 154, "prime_rank_face": 8, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": [], "recent_observations": [{"date_utc": "2026-09-01", "data_available": true, "status": "ok", "value": 294.473}, {"date_utc": "2026-10-01", "data_available": true, "status": "ok", "value": 293.921}]}, "us10y": {"series_id": "DGS10", "slug": "us10y", "label": "US10Y (10-Year US Treasury Constant Maturity Yield)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S1"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-25", "latest_value": 4.85, "prior_date_utc": "2026-11-24", "prior_value": 4.91, "period_change_bps": -6, "period_change_pct": -0.06, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 485, "digit_aq": 17, "spoken_eng": "four hundred eighty five", "spoken_eng_aq": 439, "spoken_ing": "for huhndrad aytee faiv", "spoken_ing_aq": 391, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 6, "digit_aq": 6, "spoken_eng": "six", "spoken_eng_aq": 79, "spoken_ing": "siks", "spoken_ing_aq": 94, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "missing_observation_dates": ["2026-11-26"], "recent_observations": [{"date_utc": "2026-11-24", "data_available": true, "status": "ok", "value": 4.91}, {"date_utc": "2026-11-25", "data_available": true, "status": "ok", "value": 4.85}, {"date_utc": "2026-11-26", "data_available": false, "status": "No data available", "value": null}]}, "effr": {"series_id": "EFFR", "slug": "effr", "label": "EFFR (Effective Federal Funds Overnight Lending Rate)", "cadence": "1d", "unit": "Percent (%)", "guilds": ["S6", "S2"], "data_available": true, "status": "ok", "latest_date_utc": "2026-11-27", "latest_value": 3.88, "prior_date_utc": "2026-11-25", "prior_value": 3.88, "period_change_bps": 0, "period_change_pct": 0.0, "yoy_change_pct": null, "yoy_change_bps": null, "aq_evaluation": {"face_int": 388, "digit_aq": 19, "spoken_eng": "three hundred eighty eight", "spoken_eng_aq": 460, "spoken_ing": "three huhndrad aytee ayt", "spoken_ing_aq": 425, "prime_rank_face": null, "prime_rank_spoken_ing": null, "ring_coordinates": [], "ring_partners": {}}, "change_aq_evaluation": {"face_int": 0, "digit_aq": 0, "spoken_eng": "zero", "spoken_eng_aq": 100, "spoken_ing": "zeeroh", "spoken_ing_aq": 131, "prime_rank_face": null, "prime_rank_spoken_ing": 32, "Line truncated
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "./schemas/v1/macro-indicators.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:macro-indicators",
|
||||
"version": "2.1.1",
|
||||
"generated_at_utc": "2026-12-01T00:34:17Z",
|
||||
"version": "2.2.0",
|
||||
"generated_at_utc": "2026-12-01T01:01:52Z",
|
||||
"synthetic_data_eliminated": true,
|
||||
"cadence_policy": "native_cadence_preserved_no_interpolation_null_when_unavailable",
|
||||
"source": "fred_stlouisfed_keyless_csv",
|
||||
@@ -1189,6 +1189,6 @@
|
||||
}
|
||||
},
|
||||
"ipld_dag_json_cidv1": {
|
||||
"/": "baguqeeras3z4ee3gjzkjilhcq7hxscafyjclkqxmdpqjw3u5x3rfcrs2ah3a"
|
||||
"/": "baguqeera45ggvwsz3pu54xm4jclg67uibe6ga32526jyedeykm3tlnvtgwga"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.1.1)."""
|
||||
__version__ = "2.1.1"
|
||||
"""hyperstitionstud_io — Shared Common Library for the hyperstitionstud.io workspace (v2.2.0)."""
|
||||
__version__ = "2.2.0"
|
||||
NAMESPACE_URN = "urn:io:hyperstitionstud"
|
||||
@@ -0,0 +1,304 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
hyperstitionstud_io.ci.erofs_harness
|
||||
Single Introspective `ProtectSystem=strict` (`EROFS`) Read-Only Filesystem Test Harness (`v2.2.0`).
|
||||
|
||||
Simulates Linux `systemd` `ProtectSystem=strict` in-process (< 1 us overhead, 0 root privileges)
|
||||
by intercepting all filesystem-mutating stdlib primitives (`pathlib.Path.{mkdir,write_bytes,write_text,unlink,rename,replace}`,
|
||||
`builtins.open`, `io.open`, `os.{makedirs,mkdir,replace,rename,remove,unlink}`, and `sqlite3.connect`)
|
||||
and raising `OSError(errno.EROFS, "Read-only file system")` whenever any path outside `allowed_write_prefixes` is mutated.
|
||||
|
||||
Verifies two architectural contracts:
|
||||
- Contract A (Stateless Runtime API & Telemetry Surface): All `N` tools in `MCP_TOOLS_SCHEMA`,
|
||||
key `dispatch_rest_v1` routes (`/api/v1/*`), and `sqlite_meta.record_api_telemetry()` must succeed
|
||||
and return valid in-memory payloads (`HTTP 200 OK` / `persisted_to_disk: False`) even when 100% of
|
||||
the filesystem is `EROFS` read-only.
|
||||
- Contract B (Offline Build & Publishing CLI Compilers): Explicit file compilers (`pdf_compiler`,
|
||||
`engineering_docs`, `math_docs`, `flow_diagram`) must fail atomically with `OSError(errno.EROFS)`
|
||||
before `os.replace` while keeping `ReadOnlyIsolationGuard` SHA-256 locks 100% unchanged.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
import builtins
|
||||
import contextlib
|
||||
import errno
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import sqlite3
|
||||
import time
|
||||
from typing import Any, Iterator
|
||||
|
||||
from hyperstitionstud_io.config import load_workspace_config
|
||||
from hyperstitionstud_io.glossary import ReadOnlyIsolationGuard
|
||||
from hyperstitionstud_io.mcp.rest import dispatch_rest_v1
|
||||
from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def simulate_protect_system_strict(allowed_write_prefixes: tuple[str, ...] = ()) -> Iterator[None]:
|
||||
"""
|
||||
Context manager simulating `ProtectSystem=strict` (`EROFS`) across all filesystem write operations
|
||||
outside `allowed_write_prefixes`.
|
||||
"""
|
||||
norm_prefixes = tuple(str(pathlib.Path(p).resolve()) for p in allowed_write_prefixes)
|
||||
|
||||
def _is_writable(target: Any) -> bool:
|
||||
if not norm_prefixes:
|
||||
return False
|
||||
try:
|
||||
s = str(pathlib.Path(str(target)).resolve())
|
||||
except Exception:
|
||||
return False
|
||||
return any(s == pref or s.startswith(pref + "/") for pref in norm_prefixes)
|
||||
|
||||
def _raise_erofs(target: Any) -> None:
|
||||
raise OSError(errno.EROFS, "Read-only file system", str(target))
|
||||
|
||||
orig_path_mkdir = pathlib.Path.mkdir
|
||||
orig_path_wb = pathlib.Path.write_bytes
|
||||
orig_path_wt = pathlib.Path.write_text
|
||||
orig_path_unlink = pathlib.Path.unlink
|
||||
orig_path_replace = pathlib.Path.replace
|
||||
orig_path_rename = pathlib.Path.rename
|
||||
orig_builtins_open = builtins.open
|
||||
orig_io_open = io.open
|
||||
orig_os_makedirs = os.makedirs
|
||||
orig_os_mkdir = os.mkdir
|
||||
orig_os_replace = os.replace
|
||||
orig_os_rename = os.rename
|
||||
orig_os_remove = os.remove
|
||||
orig_os_unlink = os.unlink
|
||||
orig_sqlite_connect = sqlite3.connect
|
||||
|
||||
def _ro_path_mkdir(self: pathlib.Path, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(self):
|
||||
_raise_erofs(self)
|
||||
return orig_path_mkdir(self, *args, **kwargs)
|
||||
|
||||
def _ro_path_wb(self: pathlib.Path, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(self):
|
||||
_raise_erofs(self)
|
||||
return orig_path_wb(self, *args, **kwargs)
|
||||
|
||||
def _ro_path_wt(self: pathlib.Path, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(self):
|
||||
_raise_erofs(self)
|
||||
return orig_path_wt(self, *args, **kwargs)
|
||||
|
||||
def _ro_path_unlink(self: pathlib.Path, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(self):
|
||||
_raise_erofs(self)
|
||||
return orig_path_unlink(self, *args, **kwargs)
|
||||
|
||||
def _ro_path_replace(self: pathlib.Path, target: Any) -> Any:
|
||||
if not _is_writable(self) or not _is_writable(target):
|
||||
_raise_erofs(target)
|
||||
return orig_path_replace(self, target)
|
||||
|
||||
def _ro_path_rename(self: pathlib.Path, target: Any) -> Any:
|
||||
if not _is_writable(self) or not _is_writable(target):
|
||||
_raise_erofs(target)
|
||||
return orig_path_rename(self, target)
|
||||
|
||||
def _ro_open(file: Any, mode: str = "r", *args: Any, **kwargs: Any) -> Any:
|
||||
if any(m in mode for m in ("w", "a", "+", "x")) and not _is_writable(file):
|
||||
_raise_erofs(file)
|
||||
return orig_builtins_open(file, mode, *args, **kwargs)
|
||||
|
||||
def _ro_io_open(file: Any, mode: str = "r", *args: Any, **kwargs: Any) -> Any:
|
||||
if any(m in mode for m in ("w", "a", "+", "x")) and not _is_writable(file):
|
||||
_raise_erofs(file)
|
||||
return orig_io_open(file, mode, *args, **kwargs)
|
||||
|
||||
def _ro_os_makedirs(name: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(name):
|
||||
_raise_erofs(name)
|
||||
return orig_os_makedirs(name, *args, **kwargs)
|
||||
|
||||
def _ro_os_mkdir(path: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(path):
|
||||
_raise_erofs(path)
|
||||
return orig_os_mkdir(path, *args, **kwargs)
|
||||
|
||||
def _ro_os_replace(src: Any, dst: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(src) or not _is_writable(dst):
|
||||
_raise_erofs(dst)
|
||||
return orig_os_replace(src, dst, *args, **kwargs)
|
||||
|
||||
def _ro_os_rename(src: Any, dst: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(src) or not _is_writable(dst):
|
||||
_raise_erofs(dst)
|
||||
return orig_os_rename(src, dst, *args, **kwargs)
|
||||
|
||||
def _ro_os_remove(path: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
if not _is_writable(path):
|
||||
_raise_erofs(path)
|
||||
return orig_os_remove(path, *args, **kwargs)
|
||||
|
||||
def _ro_sqlite_connect(database: Any, *args: Any, **kwargs: Any) -> Any:
|
||||
db_str = str(database)
|
||||
if db_str != ":memory:" and "mode=ro" not in db_str and not _is_writable(db_str):
|
||||
_raise_erofs(db_str)
|
||||
return orig_sqlite_connect(database, *args, **kwargs)
|
||||
|
||||
pathlib.Path.mkdir = _ro_path_mkdir # type: ignore[method-assign]
|
||||
pathlib.Path.write_bytes = _ro_path_wb # type: ignore[method-assign]
|
||||
pathlib.Path.write_text = _ro_path_wt # type: ignore[method-assign]
|
||||
pathlib.Path.unlink = _ro_path_unlink # type: ignore[method-assign]
|
||||
pathlib.Path.replace = _ro_path_replace # type: ignore[method-assign]
|
||||
pathlib.Path.rename = _ro_path_rename # type: ignore[method-assign]
|
||||
builtins.open = _ro_open # type: ignore[assignment]
|
||||
io.open = _ro_io_open # type: ignore[assignment]
|
||||
os.makedirs = _ro_os_makedirs # type: ignore[assignment]
|
||||
os.mkdir = _ro_os_mkdir # type: ignore[assignment]
|
||||
os.replace = _ro_os_replace # type: ignore[assignment]
|
||||
os.rename = _ro_os_rename # type: ignore[assignment]
|
||||
os.remove = _ro_os_remove # type: ignore[assignment]
|
||||
os.unlink = _ro_os_remove # type: ignore[assignment]
|
||||
sqlite3.connect = _ro_sqlite_connect # type: ignore[assignment]
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
pathlib.Path.mkdir = orig_path_mkdir # type: ignore[method-assign]
|
||||
pathlib.Path.write_bytes = orig_path_wb # type: ignore[method-assign]
|
||||
pathlib.Path.write_text = orig_path_wt # type: ignore[method-assign]
|
||||
pathlib.Path.unlink = orig_path_unlink # type: ignore[method-assign]
|
||||
pathlib.Path.replace = orig_path_replace # type: ignore[method-assign]
|
||||
pathlib.Path.rename = orig_path_rename # type: ignore[method-assign]
|
||||
builtins.open = orig_builtins_open # type: ignore[assignment]
|
||||
io.open = orig_io_open # type: ignore[assignment]
|
||||
os.makedirs = orig_os_makedirs # type: ignore[assignment]
|
||||
os.mkdir = orig_os_mkdir # type: ignore[assignment]
|
||||
os.replace = orig_os_replace # type: ignore[assignment]
|
||||
os.rename = orig_os_rename # type: ignore[assignment]
|
||||
os.remove = orig_os_remove # type: ignore[assignment]
|
||||
os.unlink = orig_os_unlink # type: ignore[assignment]
|
||||
sqlite3.connect = orig_sqlite_connect # type: ignore[assignment]
|
||||
|
||||
|
||||
DEFAULT_MCP_TOOL_SAMPLE_ARGS: dict[str, dict[str, Any]] = {
|
||||
"hs_evaluate_aq_and_ingglish": {"texts": ["LEMUR"]},
|
||||
"hs_search_glossary_encyclopedia": {"query": "lemur"},
|
||||
"hs_query_knowledge_graph": {"query": "aq:333"},
|
||||
"hs_classify_singularity": {"terms": ["NVIDIA"]},
|
||||
"hs_inspect_eti_tier_list": {"register": "technical"},
|
||||
"hs_simulate_anchor_revision": {"anchor_id": "Q1", "q_new": "150"},
|
||||
"hs_search_archive_equations": {"target_aq": 333},
|
||||
"hs_verify_grounded_citations": {"draft_path": "proposal-fund-manager-novel-investment-discovery.md"},
|
||||
"hs_compute_ipld_dag_json_cid": {"registry_name": "glossary-registry"},
|
||||
"hs_run_doctor_and_audit": {},
|
||||
"hs_scan_financial_quant_harvest": {"symbol_filter": "NVDA"},
|
||||
"hs_inspect_quant_timeseries": {"symbol": "NVDA", "include_card": True},
|
||||
"hs_generate_ticker_stats_card": {"symbol": "NVDA"},
|
||||
"hs_inspect_macro_indicators": {"indicator_slug": "effr"},
|
||||
"hs_generate_daily_portfolio_brief": {},
|
||||
}
|
||||
|
||||
|
||||
def _default_args_from_schema(tool_def: dict[str, Any]) -> dict[str, Any]:
|
||||
name = tool_def["name"]
|
||||
if name in DEFAULT_MCP_TOOL_SAMPLE_ARGS:
|
||||
return dict(DEFAULT_MCP_TOOL_SAMPLE_ARGS[name])
|
||||
in_sch = tool_def.get("inputSchema") or {}
|
||||
props = in_sch.get("properties") or {}
|
||||
reqs = in_sch.get("required") or []
|
||||
out: dict[str, Any] = {}
|
||||
for k in reqs:
|
||||
p_def = props.get(k) or {}
|
||||
if "default" in p_def:
|
||||
out[k] = p_def["default"]
|
||||
elif p_def.get("type") == "array":
|
||||
out[k] = ["LEMUR"]
|
||||
elif p_def.get("type") == "integer":
|
||||
out[k] = 333
|
||||
else:
|
||||
out[k] = "NVDA"
|
||||
return out
|
||||
|
||||
|
||||
def run_introspective_erofs_suite() -> dict[str, Any]:
|
||||
"""
|
||||
Execute the full Contract A (Stateless MCP/REST/Telemetry under EROFS) and
|
||||
Contract B (Offline CLI Compilers failing atomically before os.replace under EROFS)
|
||||
verification suite in-process.
|
||||
"""
|
||||
cfg = load_workspace_config()
|
||||
t0 = time.perf_counter()
|
||||
|
||||
with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:
|
||||
with simulate_protect_system_strict(allowed_write_prefixes=()):
|
||||
# 1. Contract A: Sweep all tools in MCP_TOOLS_SCHEMA
|
||||
swept_tools: list[str] = []
|
||||
for tool_def in MCP_TOOLS_SCHEMA:
|
||||
t_name = tool_def["name"]
|
||||
t_args = _default_args_from_schema(tool_def)
|
||||
res = call_mcp_tool(t_name, t_args)
|
||||
assert isinstance(res, dict), f"MCP tool {t_name} did not return a dict under EROFS"
|
||||
if t_name == "hs_generate_ticker_stats_card":
|
||||
assert res["artifacts"]["persisted_to_disk"] is False
|
||||
b64 = res["artifacts"]["png_base64"]
|
||||
assert base64.b64decode(b64)[:8] == b"\x89PNG\r\n\x1a\n"
|
||||
swept_tools.append(t_name)
|
||||
|
||||
# Also verify hs_verify_grounded_citations with omitted/empty draft_path under EROFS
|
||||
cit_empty_res = call_mcp_tool("hs_verify_grounded_citations", {})
|
||||
assert isinstance(cit_empty_res, dict) and "passed" in cit_empty_res
|
||||
|
||||
# 2. Contract A: Sweep key REST API v1 routes under 100% EROFS (including unwritable telemetry DB)
|
||||
rest_routes = (
|
||||
"/api/v1/status",
|
||||
"/api/v1/openapi.json",
|
||||
"/api/v1/quant/timeseries?symbol=NVDA",
|
||||
"/api/v1/zoology/pokedex/NVDA?include_card=true",
|
||||
"/api/v1/zoology/pokedex/ANTHR-PVT?include_card=true",
|
||||
"/api/v1/tools/hs_generate_ticker_stats_card?symbol=NVDA",
|
||||
"/api/v1/dossiers/71?highlight=envideea",
|
||||
)
|
||||
for route in rest_routes:
|
||||
code, _, body = dispatch_rest_v1("GET", route)
|
||||
assert code == 200, f"REST route {route} failed under EROFS with HTTP {code}: {body}"
|
||||
|
||||
# 3. Contract B: Verify offline CLI compilers raise EROFS cleanly before mutating any target file
|
||||
from hyperstitionstud_io.publishing.engineering_docs import build_engineering_site
|
||||
from hyperstitionstud_io.publishing.flow_diagram import render_periodic_harvest_cicd_flow_diagram_png
|
||||
from hyperstitionstud_io.publishing.math_docs import build_math_site
|
||||
from hyperstitionstud_io.publishing.pdf_compiler import compile_markdown_to_pdf
|
||||
|
||||
contract_b_checks = [
|
||||
("engineering_docs", lambda: build_engineering_site(out_dir="/proc/erofs-eng")),
|
||||
("math_docs", lambda: build_math_site(out_dir="/proc/erofs-math")),
|
||||
("flow_diagram", lambda: render_periodic_harvest_cicd_flow_diagram_png(output_path="/proc/erofs-flow.png")),
|
||||
(
|
||||
"pdf_compiler",
|
||||
lambda: compile_markdown_to_pdf(
|
||||
cfg.knowledge_graph_dir / "OPERATORS-MANUAL-ENCYCLOPEDIA-KNOWLEDGE-GRAPH.md",
|
||||
"/proc/erofs-out.pdf",
|
||||
),
|
||||
),
|
||||
]
|
||||
for b_name, fn in contract_b_checks:
|
||||
caught_erofs = False
|
||||
try:
|
||||
fn()
|
||||
except OSError as exc:
|
||||
if exc.errno == errno.EROFS:
|
||||
caught_erofs = True
|
||||
assert caught_erofs, f"Contract B builder {b_name} did not raise EROFS on read-only out_dir"
|
||||
|
||||
elapsed_ms = round((time.perf_counter() - t0) * 1000.0, 2)
|
||||
return {
|
||||
"verified": True,
|
||||
"mcp_tools_swept": len(swept_tools),
|
||||
"rest_routes_swept": len(rest_routes),
|
||||
"contract_b_builders_swept": len(contract_b_checks),
|
||||
"elapsed_ms": elapsed_ms,
|
||||
"isolation_receipt": guard.audit_receipt(),
|
||||
}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(json.dumps(run_introspective_erofs_suite(), indent=2))
|
||||
@@ -118,10 +118,12 @@ def build_internal_test_baseline_snapshot(workspace_root: str | Path | None = No
|
||||
|
||||
html_surfaces: dict[str, dict[str, Any]] = {}
|
||||
for h_route, req_markers, bad_markers in (
|
||||
("/", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "btn-donate-pill"], []),
|
||||
("/quant/index.html", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "macroIndicatorsPanel", "dailyBriefPanel"], []),
|
||||
("/learn/index.html", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "btn-donate-pill"], []),
|
||||
("/", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "btn-donate-pill", "/engineering/index.html", "/math/index.html"], []),
|
||||
("/quant/index.html", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "macroIndicatorsPanel", "dailyBriefPanel", "/engineering/index.html", "/math/index.html"], []),
|
||||
("/learn/index.html", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "btn-donate-pill", "/engineering/index.html", "/math/index.html"], []),
|
||||
("/donate/index.html", [f"hs-group3-basalt-chamfer.css?v={CURRENT_VERSION}", "primaryDonateActionBtn"], ["curiosityPills", "expInputA"]),
|
||||
("/engineering/index.html", ["guileSchemeModeToggle", "hs-guile-cartridge", "hs-guile-scheme-repl.js"], []),
|
||||
("/math/index.html", ["guileSchemeModeToggle", "hs-guile-cartridge", "hs-guile-scheme-repl.js"], []),
|
||||
("/graph/index.html", [f"v{CURRENT_VERSION}"], []),
|
||||
("/assets/hs-group3-basalt-chamfer.css", [".btn-donate-pill", "border-radius: 999px !important;"], []),
|
||||
):
|
||||
@@ -162,10 +164,13 @@ def build_internal_test_baseline_snapshot(workspace_root: str | Path | None = No
|
||||
def write_internal_test_baseline_cache(
|
||||
cache_path: str | Path | None = None,
|
||||
workspace_root: str | Path | None = None,
|
||||
erofs_audit_receipt: dict[str, Any] | None = None,
|
||||
) -> Path:
|
||||
out_p = Path(cache_path) if cache_path else get_default_baseline_cache_path(workspace_root=workspace_root)
|
||||
out_p.parent.mkdir(parents=True, exist_ok=True)
|
||||
snap = build_internal_test_baseline_snapshot(workspace_root=workspace_root)
|
||||
if erofs_audit_receipt is not None:
|
||||
snap["erofs_protect_system_strict_audit"] = erofs_audit_receipt
|
||||
out_p.write_text(json.dumps(snap, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
return out_p
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ from hyperstitionstud_io.mcp.tools import MCP_TOOLS_SCHEMA, call_mcp_tool # noq
|
||||
|
||||
SERVER_INFO = {
|
||||
"name": "hyperstitionstudio-mcp",
|
||||
"version": "2.1.1",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.1.1",
|
||||
"version": "2.2.0",
|
||||
"namespace_urn": "urn:io:hyperstitionstud:mcp:2.2.0",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -462,9 +462,12 @@ def call_mcp_tool(name: str, arguments: dict[str, Any]) -> dict[str, Any]:
|
||||
return {"match_count": len(eqs), "equations": eqs[:limit]}
|
||||
|
||||
if name == "hs_verify_grounded_citations":
|
||||
dp = Path(str(arguments.get("draft_path", "")))
|
||||
raw_dp = str(arguments.get("draft_path", "")).strip() or "proposal-fund-manager-novel-investment-discovery.md"
|
||||
dp = Path(raw_dp)
|
||||
if not dp.is_absolute():
|
||||
dp = cfg.zoology_dir / dp
|
||||
if dp.is_dir():
|
||||
dp = cfg.zoology_dir / "proposal-fund-manager-novel-investment-discovery.md"
|
||||
variant = str(arguments.get("ledger_variant", "common"))
|
||||
req_ev = bool(arguments.get("require_evidence", True))
|
||||
l_name = "citations-ledger-english-aq.json" if variant == "english_aq" else "citations-ledger-common.json"
|
||||
|
||||
@@ -38,6 +38,103 @@ ALL_ENGINEERING_SUBPAGES: tuple[str, ...] = (
|
||||
)
|
||||
|
||||
ENABLED_ENGINEERING_SUBPAGES: tuple[str, ...] = ALL_ENGINEERING_SUBPAGES
|
||||
ENABLE_GUILE_SCHEME_LENS: bool = True
|
||||
|
||||
ENGINEERING_GUILE_CARTRIDGES: dict[str, dict[str, str]] = {
|
||||
"E0": {
|
||||
"title": "Guile Scheme Foil (E0): Homoiconic S-Expression Manifest & Z-Combinator Fixed-Point Closure",
|
||||
"math_view": "Manifest M = (version, repos=6, tools=15, cidv1=H(M))",
|
||||
"py_view": "manifest = introspect_engineering_manifest()\ncid = compute_dag_json_cidv1(manifest)",
|
||||
"scm_expr": "(assoc-ref '((repositories 6) (mcp-tools 15) (lenses 4)) 'mcp-tools)",
|
||||
"challenge": "Click 'Send to REPL' and change 'mcp-tools to 'repositories or evaluate (aq-base36 \"HYPERSTITION\").",
|
||||
},
|
||||
"ciphers-and-phonetics": {
|
||||
"title": "Guile Scheme Foil (E1): Pure Z-Combinator Base-36 Alphanumeric Homomorphism",
|
||||
"math_view": "AQ(w) = ∑_{i=1}^k v(c_i), v('0'..'9')=0..9, v('a'..'z')=10..35",
|
||||
"py_view": "sum(char_value_aq(ch) for ch in text)",
|
||||
"scm_expr": "(aq-base36 \"LEMUR\")",
|
||||
"challenge": "Verify AQ(\"LEMUR\") = 114 and test homomorphic concatenation (+ (aq-base36 \"LE\") (aq-base36 \"MUR\")).",
|
||||
},
|
||||
"knowledge-graph-and-sqlite": {
|
||||
"title": "Guile Scheme Foil (E2): Functional Pre/Post SHA-256 Read-Only Isolation Guard",
|
||||
"math_view": "Guard(f): H_pre == H_expected ∧ H_post == H_pre",
|
||||
"py_view": "with ReadOnlyIsolationGuard(cfg.read_only_files) as guard:\n run_pipeline()",
|
||||
"scm_expr": "((lambda (pre post) (and (= pre 282) (= pre post))) 282 282)",
|
||||
"challenge": "Test what happens in the REPL when post-state mutates from 282 to 283.",
|
||||
},
|
||||
"quant-macro-and-bayesian-brief": {
|
||||
"title": "Guile Scheme Foil (E3): Zero-Synthetic #f Option Semantics & 4-Species Confluence Dose via Z",
|
||||
"math_view": "D_{i,t} = ∑_{s=1}^4 I(Species_s) ∈ {0..4}, Closed/Private = #f",
|
||||
"py_view": "dose = sum(1 for flag in (s1, s2, s3, s4) if flag)",
|
||||
"scm_expr": "(confluence-dose '(#t #t #t #f))",
|
||||
"challenge": "Toggle the 4 species flags (#t / #f) in the REPL to observe Dose 0..4.",
|
||||
},
|
||||
"mcp-chatbot-rest-and-ipld": {
|
||||
"title": "Guile Scheme Foil (E4): Homoiconic S-Expression JSON-RPC Tool Dispatcher",
|
||||
"math_view": "Dispatch(name, args) → ToolTable[name](args)",
|
||||
"py_view": "res = call_mcp_tool(target_tool, t_args)",
|
||||
"scm_expr": "(list 'jsonrpc-2.0 'tool \"hs_evaluate_aq_and_ingglish\" (aq-base36 \"envideea\"))",
|
||||
"challenge": "Evaluate (aq-base36 \"envideea\") => 137 (33rd prime) inside the S-expression.",
|
||||
},
|
||||
"cicd-vps-tmpfs-and-regression": {
|
||||
"title": "Guile Scheme Foil (E5): 4-Tier Programmatic Semantic Version Bump Heuristic in Scheme",
|
||||
"math_view": "Bump(dirty, ahead, plans, tools, brk) ∈ {noop, patch, minor, major}",
|
||||
"py_view": "evaluate_change_scope_heuristics(signals)['recommended_bump_level']",
|
||||
"scm_expr": "(evaluate-bump-scope 2 0 1 0 #f)",
|
||||
"challenge": "Set archived-plans to 0 => 'patch, or dirty=0 ahead=0 => 'noop in the REPL.",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def _render_guile_cartridge_html(key: str) -> str:
|
||||
c = ENGINEERING_GUILE_CARTRIDGES[key]
|
||||
esc_expr = c["scm_expr"].replace('"', """)
|
||||
return (
|
||||
'<section class="panel hs-plate-g3 hs-guile-cartridge">'
|
||||
f'<div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;">'
|
||||
f'<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ {c["title"]}</div>'
|
||||
f'<button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="{esc_expr}" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button>'
|
||||
'</div>'
|
||||
'<div class="hs-guile-triview">'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Formal Specification:</strong><code>{c["math_view"]}</code></div>'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">{c["py_view"]}</pre></div>'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">{c["scm_expr"]}</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div>'
|
||||
'</div>'
|
||||
f'<div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> {c["challenge"]}</div>'
|
||||
'</section>'
|
||||
)
|
||||
|
||||
|
||||
def _render_guile_repl_drawer_html(rel_prefix: str) -> str:
|
||||
return f"""
|
||||
<aside id="hsGuileReplDrawer" class="hs-plate-g3" aria-label="In-Browser Guile Scheme and Z-Combinator REPL">
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-bottom:0.45rem;">
|
||||
<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);">λ IN-BROWSER GUILE SCHEME & Z-COMBINATOR REPL (OFFLINE • ZERO CDN)</div>
|
||||
<div style="display:flex;gap:0.4rem;align-items:center;">
|
||||
<label style="font-size:0.68rem;color:var(--text-secondary);cursor:pointer;"><input type="checkbox" id="hsGuilePreferFloat" /> Float view</label>
|
||||
<button type="button" id="hsGuileReplCloseBtn" class="btn" style="padding:0.15rem 0.45rem;font-size:0.68rem;">Minimize / Expand</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hs-repl-body">
|
||||
<div style="display:flex;gap:0.4rem;margin-bottom:0.4rem;flex-wrap:wrap;">
|
||||
<select id="hsGuileReplPreset" style="flex:1;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.28rem;font-family:inherit;font-size:0.7rem;">
|
||||
<option value="">-- Load Preset Z-Combinator / Domain Expression --</option>
|
||||
<option value='(aq-base36 "LEMUR")'>Base-36 AQ: (aq-base36 "LEMUR") => 114</option>
|
||||
<option value="(prime-factors 666)">Prime Factors via Z: (prime-factors 666) => (2 3 3 37)</option>
|
||||
<option value="(variance-pop *cluster-292-gen0*)">Exact Rational Variance (Cluster 292 Gen 0): (variance-pop *cluster-292-gen0*)</option>
|
||||
<option value="(eti-score 95 92 94 90 91 96)">Exact Rational Convex ETI Score: (eti-score 95 92 94 90 91 96)</option>
|
||||
<option value="((derivative (lambda (x) (* x x x)) 1e-5) 2.0)">Thomas' Calculus Derivative d/dx(x^3) at x=2 via Z</option>
|
||||
<option value="(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)">Adaptive Simpson Integral int_0^3 x^2 dx = 9.0 via Z</option>
|
||||
<option value="(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))">Exact Rational 3-State Bayes Update via Z</option>
|
||||
</select>
|
||||
<button type="button" id="hsGuileReplEvalBtn" class="btn" style="border-color:var(--emerald);color:var(--emerald);">Evaluate (λ)</button>
|
||||
<button type="button" id="hsGuileReplStepBtn" class="btn" style="border-color:var(--gold);color:var(--gold);">Step β-Reduction</button>
|
||||
</div>
|
||||
<textarea id="hsGuileReplInput" rows="2" style="width:100%;background:var(--bg-void);color:var(--text-main);border:1px solid var(--border);padding:0.45rem;font-family:inherit;font-size:0.73rem;">(aq-base36 "LEMUR")</textarea>
|
||||
<pre id="hsGuileReplOutput" style="margin-top:0.4rem;background:var(--bg-void);border:1px solid var(--border);padding:0.5rem;font-size:0.71rem;color:var(--emerald);max-height:150px;overflow-y:auto;white-space:pre-wrap;">guile> Ready. Toggle [λ GUILE SCHEME LENS: ON] or click Evaluate (λ).</pre>
|
||||
</div>
|
||||
</aside>
|
||||
<script src="{rel_prefix}../assets/hs-guile-scheme-repl.js?v={CURRENT_VERSION}"></script>"""
|
||||
|
||||
HUB_PREREQ_LADDER: dict[str, Any] = {
|
||||
"unit_id": "E0",
|
||||
@@ -267,6 +364,11 @@ def _render_nav_html(active_slug: str | None, enabled_subpages: list[str], rel_p
|
||||
style = "border-color:var(--gold);color:var(--gold);" if is_act else ""
|
||||
links.append(f'<a class="btn" href="{href}" style="{style}">{spec["short_title"]}</a>')
|
||||
links.append(f'<a class="btn" href="{rel_prefix}../math/index.html">Math Hub (/math/)</a>')
|
||||
links.append(
|
||||
'<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)">'
|
||||
'<span class="hs-guile-lambda-badge">λ</span>'
|
||||
'<span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>'
|
||||
)
|
||||
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
|
||||
links.append(
|
||||
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html">'
|
||||
@@ -295,7 +397,7 @@ def _render_prereq_box_html(level_str: str, prereqs: list[str], resources: list[
|
||||
)
|
||||
|
||||
|
||||
def _render_hub_html(manifest: dict[str, Any]) -> str:
|
||||
def _render_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
|
||||
enabled = manifest["enabled_subpages"]
|
||||
counts = manifest["introspected_counts"]
|
||||
nav_html = _render_nav_html(None, enabled, "")
|
||||
@@ -309,6 +411,8 @@ def _render_hub_html(manifest: dict[str, Any]) -> str:
|
||||
HUB_PREREQ_LADDER["links"],
|
||||
"",
|
||||
)
|
||||
guile_hub_html = _render_guile_cartridge_html("E0") if include_guile_lens else ""
|
||||
guile_drawer_html = _render_guile_repl_drawer_html("") if include_guile_lens else ""
|
||||
|
||||
cards_html = ""
|
||||
for s in enabled:
|
||||
@@ -363,6 +467,7 @@ def _render_hub_html(manifest: dict[str, Any]) -> str:
|
||||
</header>
|
||||
|
||||
{prereq_html}
|
||||
{guile_hub_html}
|
||||
|
||||
<section class="stats-row">
|
||||
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">Repositories</div><div style="font-size:1.35rem;font-weight:700;color:var(--gold);">{counts["repositories"]}</div></div>
|
||||
@@ -398,17 +503,19 @@ def _render_hub_html(manifest: dict[str, Any]) -> str:
|
||||
</footer>
|
||||
</div>
|
||||
<script src="engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="engineering-app.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
|
||||
|
||||
def _render_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
def _render_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
|
||||
enabled = manifest["enabled_subpages"]
|
||||
spec = ENGINEERING_SUBPAGE_SPECS[slug]
|
||||
nav_html = _render_nav_html(slug, enabled, "../")
|
||||
prereq_html = _render_prereq_box_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
|
||||
guile_sub_html = _render_guile_cartridge_html(slug) if include_guile_lens else ""
|
||||
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
|
||||
|
||||
idx = enabled.index(slug)
|
||||
prev_link = f'<a class="btn" href="../{enabled[idx - 1]}/index.html">← Prev: {ENGINEERING_SUBPAGE_SPECS[enabled[idx - 1]]["short_title"]}</a>' if idx > 0 else '<a class="btn" href="../index.html">← Back to Engineering Hub (E0)</a>'
|
||||
@@ -455,6 +562,7 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
</header>
|
||||
|
||||
{prereq_html}
|
||||
{guile_sub_html}
|
||||
{secs_html}
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -467,7 +575,7 @@ def _render_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../engineering-manifest-data.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="../engineering-app.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="../engineering-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
@@ -477,6 +585,7 @@ def build_engineering_site(
|
||||
out_dir: str | Path | None = None,
|
||||
enabled_subpages: tuple[str, ...] | list[str] = ENABLED_ENGINEERING_SUBPAGES,
|
||||
disable_all: bool = False,
|
||||
include_guile_lens: bool = ENABLE_GUILE_SCHEME_LENS,
|
||||
workspace_root: str | Path | None = None,
|
||||
) -> dict[str, Any]:
|
||||
cfg = load_workspace_config(workspace_root=workspace_root)
|
||||
@@ -504,14 +613,14 @@ def build_engineering_site(
|
||||
)
|
||||
|
||||
# Write Hub E0
|
||||
(target_dir / "index.html").write_text(_render_hub_html(manifest), encoding="utf-8")
|
||||
(target_dir / "index.html").write_text(_render_hub_html(manifest, include_guile_lens=include_guile_lens), encoding="utf-8")
|
||||
|
||||
# Write enabled subpages and remove any disabled subpage directories
|
||||
for s in ALL_ENGINEERING_SUBPAGES:
|
||||
sub_d = target_dir / s
|
||||
if s in active_tuple:
|
||||
sub_d.mkdir(parents=True, exist_ok=True)
|
||||
(sub_d / "index.html").write_text(_render_subpage_html(s, manifest), encoding="utf-8")
|
||||
(sub_d / "index.html").write_text(_render_subpage_html(s, manifest, include_guile_lens=include_guile_lens), encoding="utf-8")
|
||||
elif sub_d.is_dir():
|
||||
shutil.rmtree(sub_d)
|
||||
|
||||
@@ -519,6 +628,7 @@ def build_engineering_site(
|
||||
"ok": True,
|
||||
"version": CURRENT_VERSION,
|
||||
"output_dir": str(target_dir),
|
||||
"guile_scheme_lens_enabled": include_guile_lens,
|
||||
"enabled_subpages": list(active_tuple),
|
||||
"enabled_routes": manifest["enabled_routes"],
|
||||
"cidv1": manifest["ipld_dag_json_cidv1"]["/"],
|
||||
@@ -532,6 +642,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
ap.add_argument("--disable", default="", help="Comma-separated subpage slugs or unit IDs (e.g. quant-macro-and-bayesian-brief or E3) to disable.")
|
||||
ap.add_argument("--only", default="", help="Comma-separated subpage slugs or unit IDs (e.g. E1,E4) to enable exclusively.")
|
||||
ap.add_argument("--disable-all", action="store_true", help="Unmount all /engineering/ pages.")
|
||||
ap.add_argument("--disable-guile-lens", action="store_true", help="Omit additive Guile Scheme cartridges without touching E0-E5 content.")
|
||||
ap.add_argument("--out-dir", default=None)
|
||||
args = ap.parse_args(argv)
|
||||
|
||||
@@ -544,7 +655,12 @@ def main(argv: list[str] | None = None) -> int:
|
||||
dis = {unit_map.get(x.strip().upper(), x.strip()) for x in args.disable.split(",") if x.strip()}
|
||||
enabled = [s for s in enabled if s not in dis]
|
||||
|
||||
res = build_engineering_site(out_dir=args.out_dir, enabled_subpages=tuple(enabled), disable_all=args.disable_all)
|
||||
res = build_engineering_site(
|
||||
out_dir=args.out_dir,
|
||||
enabled_subpages=tuple(enabled),
|
||||
disable_all=args.disable_all,
|
||||
include_guile_lens=not args.disable_guile_lens,
|
||||
)
|
||||
print(json.dumps(res, indent=2))
|
||||
return 0
|
||||
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
;;; /workspace/hyperstitionstudio-core/src/hyperstitionstud_io/publishing/guile_prelude.scm
|
||||
;;; Canonical GNU Guile Scheme & Z-Combinator Prelude for hyperstitionstud.io (/engineering/ & /math/)
|
||||
;;; Grounded in `z-calculus-scheme`: all recursion & iteration enacted via the applicative-order Z combinator.
|
||||
|
||||
(define Z
|
||||
(lambda (f)
|
||||
((lambda (x) (f (lambda args (apply (x x) args))))
|
||||
(lambda (x) (f (lambda args (apply (x x) args)))))))
|
||||
|
||||
;; 1. Thomas' Calculus Primitives (Limits, Derivatives, Riemann & Adaptive Simpson Quadrature)
|
||||
(define limit
|
||||
(Z (lambda (recur)
|
||||
(lambda (f a h eps)
|
||||
(let ((v1 (f (+ a h)))
|
||||
(v2 (f (+ a (/ h 2.0)))))
|
||||
(if (< (abs (- v1 v2)) eps)
|
||||
v2
|
||||
(recur f a (/ h 2.0) eps)))))))
|
||||
|
||||
(define derivative
|
||||
(lambda (f eps)
|
||||
(lambda (x)
|
||||
(limit (lambda (h) (/ (- (f (+ x h)) (f (- x h))) (* 2.0 h)))
|
||||
0.0 0.1 eps))))
|
||||
|
||||
(define nth-derivative
|
||||
(Z (lambda (recur)
|
||||
(lambda (f n eps)
|
||||
(if (<= n 0)
|
||||
f
|
||||
(recur (derivative f eps) (- n 1) eps))))))
|
||||
|
||||
(define riemann-integral
|
||||
(lambda (f a b n)
|
||||
(let ((dx (/ (- b a) n)))
|
||||
(* dx
|
||||
((Z (lambda (recur)
|
||||
(lambda (i acc)
|
||||
(if (>= i n)
|
||||
acc
|
||||
(recur (+ i 1) (+ acc (f (+ a (* (+ i 0.5) dx)))))))))
|
||||
0 0.0)))))
|
||||
|
||||
(define adaptive-simpson
|
||||
(lambda (f a b eps)
|
||||
(let ((simpson-step
|
||||
(lambda (a b)
|
||||
(* (/ (- b a) 6.0)
|
||||
(+ (f a) (* 4.0 (f (/ (+ a b) 2.0))) (f b))))))
|
||||
((Z (lambda (recur)
|
||||
(lambda (a b eps whole)
|
||||
(let* ((mid (/ (+ a b) 2.0))
|
||||
(left (simpson-step a mid))
|
||||
(right (simpson-step mid b))
|
||||
(delta (- (+ left right) whole)))
|
||||
(if (<= (abs delta) (* 15.0 eps))
|
||||
(+ left right (/ delta 15.0))
|
||||
(+ (recur a mid (/ eps 2.0) left)
|
||||
(recur mid b (/ eps 2.0) right)))))))
|
||||
a b eps (simpson-step a b)))))
|
||||
|
||||
;; 2. Base-36 Alphanumeric Qabbala (AQ), Mod-9 Digital Root & Prime Factorization via Z
|
||||
(define aq-base36
|
||||
(lambda (s)
|
||||
((Z (lambda (recur)
|
||||
(lambda (chars acc)
|
||||
(if (null? chars)
|
||||
acc
|
||||
(recur (cdr chars) (+ acc (char-aq (car chars))))))))
|
||||
(string->list s) 0)))
|
||||
|
||||
(define digital-root-mod9
|
||||
(lambda (n)
|
||||
(if (<= n 0)
|
||||
0
|
||||
(+ 1 (modulo (- n 1) 9)))))
|
||||
|
||||
(define prime-factors
|
||||
(lambda (n)
|
||||
((Z (lambda (recur)
|
||||
(lambda (m d acc)
|
||||
(if (< m (* d d))
|
||||
(if (> m 1) (reverse (cons m acc)) (reverse acc))
|
||||
(if (= (modulo m d) 0)
|
||||
(recur (/ m d) d (cons d acc))
|
||||
(recur m (+ d 1) acc))))))
|
||||
n 2 '())))
|
||||
|
||||
;; 3. Exact Rational Population Variance, Convex ETI Score & 3-State Bayesian Update via Z
|
||||
(define list-sum
|
||||
(Z (lambda (recur)
|
||||
(lambda (xs acc)
|
||||
(if (null? xs)
|
||||
acc
|
||||
(recur (cdr xs) (+ acc (car xs))))))))
|
||||
|
||||
(define variance-pop
|
||||
(lambda (xs)
|
||||
(let* ((n (length xs))
|
||||
(mu (/ (list-sum xs 0) n))
|
||||
(sq-diffs
|
||||
((Z (lambda (recur)
|
||||
(lambda (rem acc)
|
||||
(if (null? rem)
|
||||
acc
|
||||
(let ((d (- (car rem) mu)))
|
||||
(recur (cdr rem) (+ acc (* d d))))))))
|
||||
xs 0)))
|
||||
(/ sq-diffs n))))
|
||||
|
||||
(define eti-score
|
||||
(lambda (cap col arm prm vel res)
|
||||
(+ (* 1/5 cap)
|
||||
(* 9/50 col)
|
||||
(* 9/50 arm)
|
||||
(* 4/25 prm)
|
||||
(* 7/50 vel)
|
||||
(* 7/50 res))))
|
||||
|
||||
(define confluence-dose
|
||||
(lambda (flags)
|
||||
((Z (lambda (recur)
|
||||
(lambda (rem acc)
|
||||
(if (null? rem)
|
||||
acc
|
||||
(recur (cdr rem) (+ acc (if (car rem) 1 0)))))))
|
||||
flags 0)))
|
||||
|
||||
(define bayes-update
|
||||
(lambda (priors likelihoods)
|
||||
(let* ((unnorm
|
||||
((Z (lambda (recur)
|
||||
(lambda (ps ls)
|
||||
(if (null? ps)
|
||||
'()
|
||||
(cons (* (car ps) (car ls))
|
||||
(recur (cdr ps) (cdr ls)))))))
|
||||
priors likelihoods))
|
||||
(z-norm (list-sum unnorm 0)))
|
||||
((Z (lambda (recur)
|
||||
(lambda (us)
|
||||
(if (null? us)
|
||||
'()
|
||||
(cons (/ (car us) z-norm) (recur (cdr us)))))))
|
||||
unnorm))))
|
||||
|
||||
(define evaluate-bump-scope
|
||||
(lambda (dirty ahead archived-plans new-tools breaking?)
|
||||
(cond
|
||||
(breaking? 'major)
|
||||
((or (> archived-plans 0) (> new-tools 0)) 'minor)
|
||||
((or (> dirty 0) (> ahead 0)) 'patch)
|
||||
(else 'noop))))
|
||||
@@ -38,6 +38,71 @@ ALL_MATH_SUBPAGES: tuple[str, ...] = (
|
||||
)
|
||||
|
||||
ENABLED_MATH_SUBPAGES: tuple[str, ...] = ALL_MATH_SUBPAGES
|
||||
ENABLE_GUILE_SCHEME_LENS: bool = True
|
||||
|
||||
MATH_GUILE_CARTRIDGES: dict[str, dict[str, str]] = {
|
||||
"M0": {
|
||||
"title": "Guile Scheme Foil (M0): Applicative-Order Z Combinator & Thomas' Calculus Foundation",
|
||||
"math_view": "Z = λf. (λx. f (λv. (x x) v)) (λx. f (λv. (x x) v))",
|
||||
"py_view": "# Strict applicative-order fixed-point combinator (z-calculus-scheme)\nZ = lambda f: (lambda x: f(lambda *a: x(x)(*a)))(lambda x: f(lambda *a: x(x)(*a)))",
|
||||
"scm_expr": "((Z (lambda (recur) (lambda (n acc) (if (<= n 0) acc (recur (- n 1) (+ acc n)))))) 10 0)",
|
||||
"challenge": "Evaluate ∑_{i=1}^{10} i = 55 via pure anonymous Z-recursion in the REPL.",
|
||||
},
|
||||
"base36-algebra-and-primes": {
|
||||
"title": "Guile Scheme Foil (M1): Base-36 Semiring Valuation, Mod-9 Root & Prime Factorization via Z",
|
||||
"math_view": "666 = 2 × 3² × 37, 777 = 3 × 7 × 37, dr_9(n) = 1 + ((n - 1) mod 9)",
|
||||
"py_view": "compute_aq('envideea') == 137 # 33rd prime",
|
||||
"scm_expr": "(prime-factors 666)",
|
||||
"challenge": "Click 'Send to REPL' and factor 777 or 333, or evaluate (digital-root-mod9 666) => 9.",
|
||||
},
|
||||
"phonemic-projections-and-g-vectors": {
|
||||
"title": "Guile Scheme Foil (M2): Exact Rational Population Variance Collapse on Cluster 292 via Z",
|
||||
"math_view": "σ²_0({264, 317, 276}) = 4634/9 ≈ 514.89 → σ²_1({292, 292, 292}) = 0",
|
||||
"py_view": "compute_variance([264, 317, 276]) # 514.89 -> 0.0",
|
||||
"scm_expr": "(variance-pop *cluster-292-gen0*)",
|
||||
"challenge": "Evaluate (variance-pop *cluster-292-gen1*) => 0 in the REPL and compare exact rational 4634/9 vs float.",
|
||||
},
|
||||
"graph-topology-and-eti-scoring": {
|
||||
"title": "Guile Scheme Foil (M3): Exact Rational Convex ETI Functional (∑ w_k = 1)",
|
||||
"math_view": "ETI = (1/5)CAP + (9/50)COL + (9/50)ARM + (4/25)PRM + (7/50)VEL + (7/50)RES",
|
||||
"py_view": "0.20*cap + 0.18*col + 0.18*arm + 0.16*prm + 0.14*vel + 0.14*res",
|
||||
"scm_expr": "(+ 1/5 9/50 9/50 4/25 7/50 7/50)",
|
||||
"challenge": "Verify that the exact rational weights sum to 1 (not 0.9999999999999999) and evaluate (eti-score 95 92 94 90 91 96).",
|
||||
},
|
||||
"timeseries-moments-and-confluence-dose": {
|
||||
"title": "Guile Scheme Foil (M4): Confluence Dose D ∈ {0..4} & Thomas' Calculus Central Derivative via Z",
|
||||
"math_view": "f'(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)",
|
||||
"py_view": "confluence_dose = sum(1 for x in species_hits if x)",
|
||||
"scm_expr": "((derivative (lambda (x) (* x x x)) 1e-5) 2.0)",
|
||||
"challenge": "Compute the derivative of x^3 at x=2.0 (=> 12.0) or the 2nd derivative via ((nth-derivative (lambda (x) (* x x x)) 2 1e-3) 2.0).",
|
||||
},
|
||||
"macro-spreads-and-bayesian-inference": {
|
||||
"title": "Guile Scheme Foil (M5): Exact Rational 3-State Bayesian Posterior & Adaptive Simpson Quadrature via Z",
|
||||
"math_view": "P(R_m | E_t) = L_m P_m / ∑_k L_k P_k, ∫_a^b f(x) dx via Simpson Z-subdivision",
|
||||
"py_view": "post = [p * l / z for p, l in zip(priors, likelihoods)]",
|
||||
"scm_expr": "(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))",
|
||||
"challenge": "Observe the exact rational posterior '(1/10 3/10 3/5) summing to 1, or integrate x^2 from 0 to 3 via (adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6).",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def _render_math_guile_cartridge_html(key: str) -> str:
|
||||
c = MATH_GUILE_CARTRIDGES[key]
|
||||
esc_expr = c["scm_expr"].replace('"', """)
|
||||
return (
|
||||
'<section class="panel hs-plate-g3 hs-guile-cartridge">'
|
||||
f'<div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;">'
|
||||
f'<div style="font-size:0.74rem;font-weight:700;color:var(--cyan);text-transform:uppercase;letter-spacing:0.05em;">λ {c["title"]}</div>'
|
||||
f'<button type="button" class="btn hs-load-in-repl-btn" data-scheme-expr="{esc_expr}" style="border-color:var(--cyan);color:var(--cyan);">Send to In-Browser Guile REPL →</button>'
|
||||
'</div>'
|
||||
'<div class="hs-guile-triview">'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--gold);display:block;margin-bottom:0.2rem;">1. Mathematical Identity:</strong><code>{c["math_view"]}</code></div>'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--text-secondary);display:block;margin-bottom:0.2rem;">2. Production Python:</strong><pre style="white-space:pre-wrap;">{c["py_view"]}</pre></div>'
|
||||
f'<div class="hs-guile-box"><strong style="color:var(--cyan);display:block;margin-bottom:0.2rem;">3. Guile Scheme (Z-Combinator):</strong><code class="hs-guile-code-expr">{c["scm_expr"]}</code><div class="hs-guile-eval-result" style="margin-top:0.3rem;font-weight:700;color:var(--emerald);">=> [Toggle Guile Lens ON to evaluate]</div></div>'
|
||||
'</div>'
|
||||
f'<div style="font-size:0.71rem;color:var(--text-secondary);"><strong>Guided Micro-Challenge:</strong> {c["challenge"]}</div>'
|
||||
'</section>'
|
||||
)
|
||||
|
||||
MATH_HUB_PREREQ_LADDER: dict[str, Any] = {
|
||||
"unit_id": "M0",
|
||||
@@ -46,6 +111,8 @@ MATH_HUB_PREREQ_LADDER: dict[str, Any] = {
|
||||
{"label": "Internal: Self-Paced Learning Track (/learn/ Modules 1-2)", "url": "/learn/index.html", "external": False},
|
||||
{"label": "Khan Academy — Algebra & Summation (Σ) Notation", "url": "https://www.khanacademy.org/math/algebra", "external": True},
|
||||
{"label": "OpenStax Precalculus (Free Peer-Reviewed Textbook, Ch. 1 & 9)", "url": "https://openstax.org/details/books/precalculus-2e", "external": True},
|
||||
{"label": "Structure and Interpretation of Computer Programs (SICP — Free MIT Text)", "url": "https://sarabander.github.io/sicp/", "external": True},
|
||||
{"label": "GNU Guile Scheme Official Reference Manual", "url": "https://www.gnu.org/software/guile/manual/", "external": True},
|
||||
],
|
||||
}
|
||||
|
||||
@@ -270,6 +337,11 @@ def _render_math_nav_html(active_slug: str | None, enabled_subpages: list[str],
|
||||
style = "border-color:var(--gold);color:var(--gold);" if is_act else ""
|
||||
links.append(f'<a class="btn" href="{href}" style="{style}">{spec["short_title"]}</a>')
|
||||
links.append(f'<a class="btn" href="{rel_prefix}../engineering/index.html">Engineering Hub (/engineering/)</a>')
|
||||
links.append(
|
||||
'<button id="guileSchemeModeToggle" class="btn hs-guile-toggle" type="button" aria-pressed="false" title="Toggle additive Guile Scheme & Z-Combinator teaching cartridges and in-browser REPL (Alt+S)">'
|
||||
'<span class="hs-guile-lambda-badge">λ</span>'
|
||||
'<span>GUILE SCHEME LENS: <strong id="guileSchemeModeState">OFF</strong></span></button>'
|
||||
)
|
||||
links.append('<span class="nav-donate-sep" aria-hidden="true"></span>')
|
||||
links.append(
|
||||
f'<a class="btn-donate-pill" href="{rel_prefix}../donate/index.html">'
|
||||
@@ -298,7 +370,9 @@ def _render_math_prereq_html(level_str: str, prereqs: list[str], resources: list
|
||||
)
|
||||
|
||||
|
||||
def _render_math_hub_html(manifest: dict[str, Any]) -> str:
|
||||
def _render_math_hub_html(manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
|
||||
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html
|
||||
|
||||
enabled = manifest["enabled_subpages"]
|
||||
inv = manifest["algebraic_invariants"]
|
||||
emp = manifest["empirical_counts"]
|
||||
@@ -313,6 +387,8 @@ def _render_math_hub_html(manifest: dict[str, Any]) -> str:
|
||||
MATH_HUB_PREREQ_LADDER["links"],
|
||||
"",
|
||||
)
|
||||
guile_hub_html = _render_math_guile_cartridge_html("M0") if include_guile_lens else ""
|
||||
guile_drawer_html = _render_guile_repl_drawer_html("") if include_guile_lens else ""
|
||||
|
||||
cards_html = ""
|
||||
for s in enabled:
|
||||
@@ -360,6 +436,7 @@ def _render_math_hub_html(manifest: dict[str, Any]) -> str:
|
||||
</header>
|
||||
|
||||
{prereq_html}
|
||||
{guile_hub_html}
|
||||
|
||||
<section class="stats-row">
|
||||
<div class="panel hs-plate-g3 stat-tile"><div style="font-size:0.68rem;color:var(--text-secondary);">ETI Convex Sum (∑w_k)</div><div style="font-size:1.3rem;font-weight:700;color:var(--gold);">{inv["eti_weights_sum"]:.2f}</div></div>
|
||||
@@ -378,17 +455,21 @@ def _render_math_hub_html(manifest: dict[str, Any]) -> str:
|
||||
</footer>
|
||||
</div>
|
||||
<script src="math-manifest-data.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="math-app.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
|
||||
|
||||
def _render_math_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
def _render_math_subpage_html(slug: str, manifest: dict[str, Any], include_guile_lens: bool = True) -> str:
|
||||
from hyperstitionstud_io.publishing.engineering_docs import _render_guile_repl_drawer_html
|
||||
|
||||
enabled = manifest["enabled_subpages"]
|
||||
spec = MATH_SUBPAGE_SPECS[slug]
|
||||
nav_html = _render_math_nav_html(slug, enabled, "../")
|
||||
prereq_html = _render_math_prereq_html(spec["expertise_level"], spec["prerequisites"], spec["public_resources"], "../")
|
||||
guile_sub_html = _render_math_guile_cartridge_html(slug) if include_guile_lens else ""
|
||||
guile_drawer_html = _render_guile_repl_drawer_html("../") if include_guile_lens else ""
|
||||
|
||||
idx = enabled.index(slug)
|
||||
prev_link = f'<a class="btn" href="../{enabled[idx - 1]}/index.html">← Prev: {MATH_SUBPAGE_SPECS[enabled[idx - 1]]["short_title"]}</a>' if idx > 0 else '<a class="btn" href="../index.html">← Back to Math Hub (M0)</a>'
|
||||
@@ -435,6 +516,7 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
</header>
|
||||
|
||||
{prereq_html}
|
||||
{guile_sub_html}
|
||||
{secs_html}
|
||||
|
||||
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:0.8rem;">
|
||||
@@ -447,7 +529,7 @@ def _render_math_subpage_html(slug: str, manifest: dict[str, Any]) -> str:
|
||||
</footer>
|
||||
</div>
|
||||
<script src="../math-manifest-data.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="../math-app.js?v={CURRENT_VERSION}"></script>
|
||||
<script src="../math-app.js?v={CURRENT_VERSION}"></script>{guile_drawer_html}
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
@@ -457,6 +539,7 @@ def build_math_site(
|
||||
out_dir: str | Path | None = None,
|
||||
enabled_subpages: tuple[str, ...] | list[str] = ENABLED_MATH_SUBPAGES,
|
||||
disable_all: bool = False,
|
||||
include_guile_lens: bool = ENABLE_GUILE_SCHEME_LENS,
|
||||
workspace_root: str | Path | None = None,
|
||||
) -> dict[str, Any]:
|
||||
cfg = load_workspace_config(workspace_root=workspace_root)
|
||||
@@ -478,13 +561,13 @@ def build_math_site(
|
||||
encoding="utf-8",
|
||||
)
|
||||
(target_dir / "math-app.js").write_text("(function(){ 'use strict'; })();\n", encoding="utf-8")
|
||||
(target_dir / "index.html").write_text(_render_math_hub_html(manifest), encoding="utf-8")
|
||||
(target_dir / "index.html").write_text(_render_math_hub_html(manifest, include_guile_lens=include_guile_lens), encoding="utf-8")
|
||||
|
||||
for s in ALL_MATH_SUBPAGES:
|
||||
sub_d = target_dir / s
|
||||
if s in active_tuple:
|
||||
sub_d.mkdir(parents=True, exist_ok=True)
|
||||
(sub_d / "index.html").write_text(_render_math_subpage_html(s, manifest), encoding="utf-8")
|
||||
(sub_d / "index.html").write_text(_render_math_subpage_html(s, manifest, include_guile_lens=include_guile_lens), encoding="utf-8")
|
||||
elif sub_d.is_dir():
|
||||
shutil.rmtree(sub_d)
|
||||
|
||||
@@ -492,6 +575,7 @@ def build_math_site(
|
||||
"ok": True,
|
||||
"version": CURRENT_VERSION,
|
||||
"output_dir": str(target_dir),
|
||||
"guile_scheme_lens_enabled": include_guile_lens,
|
||||
"enabled_subpages": list(active_tuple),
|
||||
"enabled_routes": manifest["enabled_routes"],
|
||||
"cidv1": manifest["ipld_dag_json_cidv1"]["/"],
|
||||
@@ -505,6 +589,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
ap.add_argument("--disable", default="", help="Comma-separated subpage slugs or unit IDs (e.g. M3) to disable.")
|
||||
ap.add_argument("--only", default="", help="Comma-separated subpage slugs or unit IDs (e.g. M1,M4) to enable exclusively.")
|
||||
ap.add_argument("--disable-all", action="store_true")
|
||||
ap.add_argument("--disable-guile-lens", action="store_true", help="Omit additive Guile Scheme cartridges without touching M0-M5 content.")
|
||||
ap.add_argument("--out-dir", default=None)
|
||||
args = ap.parse_args(argv)
|
||||
|
||||
@@ -517,7 +602,12 @@ def main(argv: list[str] | None = None) -> int:
|
||||
dis = {unit_map.get(x.strip().upper(), x.strip()) for x in args.disable.split(",") if x.strip()}
|
||||
enabled = [s for s in enabled if s not in dis]
|
||||
|
||||
res = build_math_site(out_dir=args.out_dir, enabled_subpages=tuple(enabled), disable_all=args.disable_all)
|
||||
res = build_math_site(
|
||||
out_dir=args.out_dir,
|
||||
enabled_subpages=tuple(enabled),
|
||||
disable_all=args.disable_all,
|
||||
include_guile_lens=not args.disable_guile_lens,
|
||||
)
|
||||
print(json.dumps(res, indent=2))
|
||||
return 0
|
||||
|
||||
|
||||
@@ -143,7 +143,11 @@ def build_ticker_stats_card_json(
|
||||
and dated 00:00 UTC news dossiers (`None` / `null` when unavailable).
|
||||
"""
|
||||
cfg = load_workspace_config()
|
||||
ts_bundle = build_quant_timeseries_bundle(write_files=False)
|
||||
ts_json_path = cfg.core_dir / "site" / "quant" / "quant-timeseries.json"
|
||||
if ts_json_path.is_file():
|
||||
ts_bundle = json.loads(ts_json_path.read_text(encoding="utf-8"))
|
||||
else:
|
||||
ts_bundle = build_quant_timeseries_bundle(write_files=False)
|
||||
|
||||
q_up = symbol.strip().upper()
|
||||
q_digits = q_up.replace("DEX", "").replace("#", "").strip()
|
||||
|
||||
@@ -678,7 +678,7 @@ def build_financial_quant_harvest(
|
||||
payload: dict[str, Any] = {
|
||||
"$schema": "./schemas/v1/financial-aq-harvest.schema.json",
|
||||
"$id": "urn:io:hyperstitionstud:schema:v1:financial-aq-harvest",
|
||||
"version": "2.1.1",
|
||||
"version": "2.2.0",
|
||||
"target_date_utc": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
|
||||
"harvest_mode": harvest_mode,
|
||||
"synthetic_data_eliminated": True,
|
||||
|
||||
@@ -802,10 +802,56 @@ def test_ipld_quant_and_mcp_server() -> None:
|
||||
assert "20 0 * * * root" in cron_rot.read_text(encoding="utf-8")
|
||||
assert "OnCalendar=*-*-* 00:20:00 UTC" in timer_rot.read_text(encoding="utf-8")
|
||||
|
||||
# Verify PLAN-HOMEPAGE-ENGINEERING-AND-MATH-NAVIGATION-WIRING
|
||||
home_html = (cfg.core_dir / "site" / "index.html").read_text(encoding="utf-8")
|
||||
assert 'data-route="eng-hub"' in home_html and 'href="/engineering/index.html"' in home_html
|
||||
assert 'data-route="math-hub"' in home_html and 'href="/math/index.html"' in home_html
|
||||
assert '"./engineering/index.html"' in home_html and '"./math/index.html"' in home_html
|
||||
|
||||
# Verify PLAN-GUILE-SCHEME-PEDAGOGICAL-TOGGLE-AND-IN-BROWSER-REPL
|
||||
guile_scm_p = cfg.core_dir / "src" / "hyperstitionstud_io" / "publishing" / "guile_prelude.scm"
|
||||
guile_js_p = cfg.core_dir / "site" / "assets" / "hs-guile-scheme-repl.js"
|
||||
assert guile_scm_p.is_file() and "(define Z" in guile_scm_p.read_text(encoding="utf-8")
|
||||
assert guile_js_p.is_file() and "hs:guile-scheme-mode:v1" in guile_js_p.read_text(encoding="utf-8")
|
||||
|
||||
eng_no_guile = build_engineering_site(out_dir=tmp_path / "eng_no_guile", include_guile_lens=False)
|
||||
assert eng_no_guile["guile_scheme_lens_enabled"] is False
|
||||
assert "hs-guile-cartridge" not in (tmp_path / "eng_no_guile" / "index.html").read_text(encoding="utf-8")
|
||||
|
||||
import subprocess
|
||||
|
||||
node_guile_test = subprocess.run(
|
||||
[
|
||||
"node",
|
||||
"-e",
|
||||
f"const R = require({json.dumps(str(guile_js_p))});"
|
||||
"const s = R.createSession();"
|
||||
"if (s.evaluate('(aq-base36 \"LEMUR\")').formatted !== '114') process.exit(1);"
|
||||
"if (s.evaluate('(prime-factors 666)').formatted !== '(2 3 3 37)') process.exit(2);"
|
||||
"if (s.evaluate('(+ 1/5 9/50 9/50 4/25 7/50 7/50)').formatted !== '1') process.exit(3);"
|
||||
"if (s.evaluate('(variance-pop *cluster-292-gen0*)').formatted !== '4634/9') process.exit(4);"
|
||||
"if (s.evaluate('(variance-pop *cluster-292-gen1*)').formatted !== '0') process.exit(5);"
|
||||
"if (Math.abs(s.evaluate('((derivative (lambda (x) (* x x x)) 1e-5) 2.0)').floatValue - 12.0) > 1e-3) process.exit(6);"
|
||||
"if (Math.abs(s.evaluate('(adaptive-simpson (lambda (x) (* x x)) 0.0 3.0 1e-6)').floatValue - 9.0) > 1e-4) process.exit(7);"
|
||||
"if (s.evaluate(\"(bayes-update '(1/3 1/3 1/3) '(1/10 3/10 6/10))\").formatted !== '(1/10 3/10 3/5)') process.exit(8);",
|
||||
],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
assert node_guile_test.returncode == 0, f"Node Guile REPL check failed: {node_guile_test.stderr}"
|
||||
|
||||
# Verify PLAN-INTROSPECTIVE-PROTECT-SYSTEM-STRICT-EROFS-TEST-HARNESS
|
||||
from hyperstitionstud_io.ci.erofs_harness import run_introspective_erofs_suite
|
||||
|
||||
erofs_res = run_introspective_erofs_suite()
|
||||
assert erofs_res["verified"] is True
|
||||
assert erofs_res["mcp_tools_swept"] >= 15
|
||||
|
||||
# Write cached internal test baseline (.cache/internal-test-baseline-latest.json) for hs-public-smoke
|
||||
from hyperstitionstud_io.ci.public_regression import write_internal_test_baseline_cache
|
||||
|
||||
base_cache_p = write_internal_test_baseline_cache()
|
||||
base_cache_p = write_internal_test_baseline_cache(erofs_audit_receipt=erofs_res)
|
||||
assert base_cache_p.is_file()
|
||||
finally:
|
||||
if prev_tel_env is None:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# workspace.example.toml — Location-Independent Workspace Configuration Template (v1.2.0)
|
||||
# Copy to your parent workspace folder: cp hyperstitionstudio-core/workspace.example.toml ./workspace.toml
|
||||
schema_version = "2.1.1"
|
||||
schema_version = "2.2.0"
|
||||
namespace_urn = "urn:io:hyperstitionstud"
|
||||
|
||||
[paths]
|
||||
|
||||
Reference in new issue
Block a user