/asi:topos-generatefrom asi
Generates sheaf-theoretic models using Kripke-Joyal forcing in a topos. Uses subobject classifier and internal language to produce models from formulas. Integrates with Clojure/Cider.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Sheaf-theoretic model generation via forcing
Trit: +1 (PLUS)
Color: #D82626 (Red)
Role: Generator/Creator
A topos E generates models via:
E^op
↓ yoneda
[E^op, Set]
↓ sheafification
Sh(E, J) ← topos!
In Set: Ω = {0, 1} = Bool In Sh(X): Ω = {open subsets of X} In Sh(C,J): Ω = sieves
For any mono m: A ↣ B
∃! χ_m: B → Ω such that:
A ───→ 1
↓ ↓ true
B ──→ Ω
χ_m
Every topos has an internal type theory:
Types ↔ Objects
Terms ↔ Morphisms
Predicates ↔ Subobjects
∧, ∨, → ↔ Ω operations
∀, ∃ ↔ Quantifiers via adjoints
⟦A ∧ B⟧ = ⟦A⟧ ×_Ω ⟦B⟧
⟦A → B⟧ = Ω^{⟦A⟧ → ⟦B⟧}
⟦∀x:X. φ(x)⟧ = ∏_{x:X} ⟦φ(x)⟧
Stage-wise truth at object U:
U ⊩ φ ∧ ψ ⟺ U ⊩ φ and U ⊩ ψ
U ⊩ φ → ψ ⟺ ∀f:V→U. V ⊩ φ ⟹ V ⊩ ψ
U ⊩ ∀x:X.φ ⟺ ∀f:V→U, ∀a:X(V). V ⊩ φ[a/x]
U ⊩ ∃x:X.φ ⟺ ∃ cover {Uᵢ→U}, ∃aᵢ:X(Uᵢ). Uᵢ ⊩ φ[aᵢ/x]
(ns topos.generate
(:require [acsets.core :as acs]))
;; Subobject classifier for finite topos
(defn omega [topos]
(let [sieves (all-sieves (:site topos))]
{:object sieves
:true (maximal-sieve topos)
:false (empty-sieve)}))
;; Force a proposition at stage
(defn force [stage prop env]
(case (:type prop)
:and (and (force stage (:left prop) env)
(force stage (:right prop) env))
:implies (every? (fn [morphism]
(let [stage' (compose stage morphism)]
(if (force stage' (:antecedent prop) env)
(force stage' (:consequent prop) env)
true)))
(covers stage))
:forall (every? (fn [[morphism witness]]
(force (compose stage morphism)
(:body prop)
(assoc env (:var prop) witness)))
(all-witnesses stage (:type prop)))
:exists (some (fn [[cover witnesses]]
(every? (fn [[morph wit]]
(force (compose stage morph)
(:body prop)
(assoc env (:var prop) wit)))
(zip cover witnesses)))
(all-covers-with-witnesses stage (:type prop)))))
;; Generate model satisfying formula
(defn generate-model [topos formula]
(let [stages (objects topos)]
(for [stage stages
:when (force stage formula {})]
{:stage stage
:witnesses (collect-witnesses stage formula)})))
Cohen forcing generates new sets:
P = partial functions ω → 2 (finite approximations)
G = generic filter (added by forcing)
M[G] = { interpretation of names under G }
sheaf-cohomology (-1) ⊗ dialectica (0) ⊗ topos-generate (+1) = 0 ✓
temporal-coalgebra (-1) ⊗ open-games (0) ⊗ topos-generate (+1) = 0 ✓
three-match (-1) ⊗ kan-extensions (0) ⊗ topos-generate (+1) = 0 ✓
# Generate subobject classifier
just topos-omega site
# Force proposition at stage
just topos-force stage "∀x. φ(x)"
# Generate satisfying model
just topos-model formula
# Internal language translation
just topos-internal formula
| Topos | Generates | Application |
|---|---|---|
| Set | Classical sets | Standard math |
| Sh(X) | Varying sets over X | Geometry |
| Sh(G) | G-sets | Symmetry |
| Eff | Computable functions | Computability |
| Dialectica | Proof-relevant math | Type theory |
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
category-theory: 139 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 1 (PLUS)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #4ECDC4
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
topos-theory, sheaf-theory, forcing, model-generation, clojure
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job