From asi
Implements ordered locales with bridge types, way-below relations, and GF(3) conservation for MCP servers in Narya proof assistant. Supports triadic decisions in Python, Julia, Modelica.
npx claudepluginhub plurigrid/asi --plugin asiThis skill uses the workspace's default tool permissions.
**Trit**: +1 (PLUS/GENERATOR)
DIAGRAMS.mdGENESIS.mdbridge_types_design.mdgeodesics/home.geodesic.pygeodesics/mcp_locale.geodesic.pygeodesics/monoidal_interleave.geodesic.pygeodesics/ordered_locale.geodesic.pygeodesics/sheaves.geodesic.pygeodesics/verify_cones.geodesic.jlhome.orghome.pymcp_locale.momcp_locale.orgmcp_locale.pymonoidal_interleave.orgmonoidal_interleave.pynarya/VALIDATION_STATUS.mdnarya/bridge_sheaf.nynarya/gf3.nynarya/narya-ordered-locale.elDispatches tasks to three parallel agents for validation (German voice), coordination (French), and generation (Italian) using ordered locale fanout cocone, deterministic seeds, and optional MLX LLM inference on Apple Silicon macOS.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Trit: +1 (PLUS/GENERATOR) GF(3): ฮฃ(-1,0,+1) = 0 (conserved)
Point-free topology with direction. MCP servers indexed by creation-time color via SplitMix64. Every decision trifurcates into MINUS/ERGODIC/PLUS parallel paths. GF(3) conservation guaranteed on every substrate in every interaction.
Implements Heunen-style ordered locales with observational bridge types in Narya proof assistant. Bridge types model the "way below" relation U โช V in ordered locales, providing a foundation for:
| File | Description |
|---|---|
mcp_locale.py | Python: MCP ordered locale with triadic decisions |
mcp_locale.mo | Modelica: Acausal model (replaces Wolfram) |
narya/ordered_locale.ny | Core definitions: ๐, Bridge, WayBelow, frame ops |
narya/gf3.ny | GF(3) arithmetic and conservation |
narya/bridge_sheaf.ny | Sheaves respecting bridge structure |
narya/narya-ordered-locale.el | Emacs/Proof General integration |
ordered_locale.jl | Julia: Frame operations, cones/cocones |
Every MCP server is an open set in the locale, indexed by creation-time color:
from mcp_locale import create_mcp_locale, trifurcate_decision
locale = create_mcp_locale(seed=0x42D)
# Each MCP gets deterministic color: seed โ SplitMix64 โ RGB โ hue โ trit
Every decision trifurcates into parallel paths:
| Path | Trit | Role | Action |
|---|---|---|---|
| MINUS | -1 | Validator | Check constraints |
| ERGODIC | 0 | Coordinator | Find optimal route |
| PLUS | +1 | Executor | Generate result |
decision = trifurcate_decision(
"swap 10 APT",
seed=0x42D,
minus_fn=validate,
ergodic_fn=coordinate,
plus_fn=execute,
aggregate_fn=aggregate
)
# GF(3): -1 + 0 + 1 = 0 โ
def splitmix_ternary(seed):
"""Fork into 3 independent streams."""
s1 = splitmix64(seed)
s2 = splitmix64(s1)
s3 = splitmix64(s2)
return (s1, s2, s3) # MINUS, ERGODIC, PLUS
Each substrate (Python, Julia, Babashka, Modelica) uses identical SplitMix64, ensuring reproducible parallel execution.
A bridge from A to B is a directed path through the directed interval ๐:
def Bridge (A B : Type) : Type := sig (
path : ๐ โ Type,
start : path zero. โ A,
end : B โ path one.
)
The way-below relation U โช V captures "U is compact relative to V":
def WayBelow (U V : Open) : Type := sig (
bridge : (t : ๐) โ Open,
at_zero : ... โ U,
at_one : V โ ...,
directed : ...
)
All triadic structures conserve sum โก 0 (mod 3):
def GF3Conserved (a b c : Trit) : Type :=
Id Trit (trit_sum3 a b c) ergodic.
# Verify all files
~/.agents/skills/ordered-locale/narya/run_narya.sh
# Check GF(3) only
~/.agents/skills/ordered-locale/narya/run_narya.sh --gf3
# Run via headless Emacs
~/.agents/skills/ordered-locale/narya/run_narya.sh --emacs
;; Load the mode
(load "~/.agents/skills/ordered-locale/narya/narya-ordered-locale.el")
;; Key bindings
;; C-c C-n Step forward
;; C-c C-u Step backward
;; C-c C-v Verify all
;; C-c C-g Check GF(3)
proofgeneral-narya - Proof General + Narya integrationgf3 / gay-mcp - Triadic color systemssegal-types - Synthetic โ-categoriesunworld - Derivational chainstriad-interleave - Parallel triadic schedulingcoequalizers (0) - Sheaf gluing as dual of coequalizer~/worlds/ordered-locales/heunen_orderedlocales.pdf)Ordered locales extend frame theory with a compatible partial order on opens. The key axiom is:
Every open V is the join of opens U with U โช V
This approximation property connects point-free topology to domain theory and provides a constructive foundation for causal structure.
The bridge type formalization captures โช as a directed homotopy: paths that flow from U toward V through the directed interval ๐ = {0 โ 1}.
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
general: 734 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: โ
Kan Role: Adj
Color: #26D826
The skill participates in triads satisfying:
(-1) + (0) + (+1) โก 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.