Skip to content
cccskills
FreePublished on GitHub

catsharp-galois

CatSharp Scale Galois Connections between agent-o-rama and Plurigrid ACT via Mazzola's categorical music theory

The English summary is being prepared. Showing the original description.

plurigrid/asi71 stars(GitHub 71 + cccskills 0)

Run score Not tested

See how to install

Files included (2)

  • SKILL.md4.0 KB
  • CONCOMITANT_SKILLS.md2.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

CatSharp Galois Skill

Trit: 0 (ERGODIC - bridge) Color: Yellow (#D8D826)

Overview

Establishes Galois adjunction α ⊣ γ between conceptual spaces:

           α (abstract)
    HERE ─────────────→ ELSEWHERE
      ↑                    │
      │                    │ γ (concretize)
      │    ┌──────────┐    │
      └────│ CatSharp │────┘
           │  Scale   │
           │ (Bridge) │
           └──────────┘
           
    GF(3): (+1) + (0) + (-1) = 0 ✓
  • HERE: agent-o-rama Topos (local operations)
  • ELSEWHERE: Plurigrid ACT (global cognitive category theory)
  • BRIDGE: CatSharp Scale (Mazzola's categorical music theory)

CatSharp Scale Mapping

Pitch classes ℤ₁₂ map to GF(3) trits:

TritPitch ClassesChord TypeHue Range
+1 (PLUS){0, 4, 8}Augmented triad0-60°, 300-360°
0 (ERGODIC){3, 6, 9}Diminished 7th60-180°
-1 (MINUS){2, 5, 7, 10, 11}Fifths cycle180-300°

Tritone: The Möbius Axis

The tritone (6 semitones) is the unique self-inverse interval:

6 + 6 = 12 ≡ 0 (mod 12)

This mirrors GF(3) Möbius inversion where μ(3)² = 1.

Galois Connection API

(defn α-abstract
  "Abstraction functor: agent-o-rama → Plurigrid ACT"
  [here-concept]
  (let [trit (or (:trit here-concept)
                 (pitch-class->trit (hue->pitch-class (:H here-concept))))]
    {:type :elsewhere
     :hyperedge (case trit
                  1  :generation
                  0  :verification
                  -1 :transformation)
     :source-trit trit}))

(defn γ-concretize
  "Concretization functor: Plurigrid ACT → agent-o-rama"
  [elsewhere-concept]
  (let [trit (case (:hyperedge elsewhere-concept)
               :generation 1
               :verification 0
               :transformation -1)]
    {:type :here
     :trit trit
     :H (pitch-class->hue (first (trit->pitch-classes trit)))}))

;; Adjunction verification
(defn verify-galois [h e]
  (let [αh (α-abstract h)
        γe (γ-concretize e)]
    (= (= (:hyperedge αh) (:hyperedge e))
       (= (:trit h) (:trit γe)))))

Hyperedge Types

HyperedgeTritHERE LayerELSEWHERE Operation
:generation+1α.OperadicACT.cogen.generate
:verification0α.∞-CategoricalACT.cogen.verify
:transformation-1α.CohomologicalACT.cogen.transform

Color ↔ Pitch Conversion

function hue_to_pitch_class(h::Float64)::Int
    mod(round(Int, h / 30.0), 12)
end

function pitch_class_to_hue(pc::Int)::Float64
    mod(pc, 12) * 30.0 + 15.0
end

function pitch_class_to_trit(pc::Int)::Int
    pc = mod(pc, 12)
    if pc ∈ [0, 4, 8]      # Augmented
        return 1
    elseif pc ∈ [3, 6, 9]  # Diminished
        return 0
    else                    # Fifths
        return -1
    end
end

GF(3) Triads

catsharp-galois (0) ⊗ gay-mcp (-1) ⊗ ordered-locale (+1) = 0 ✓
catsharp-galois (0) ⊗ rubato-composer (-1) ⊗ topos-of-music (+1) = 0 ✓

Commands

# Run genesis with CatSharp bridge
just genesis-catsharp seed=0x42D

# Verify Galois adjunction
just galois-verify here=agent-o-rama elsewhere=plurigrid-act

# Sonify CatSharp scale
just catsharp-play pitch-classes="0 4 7"

Related Skills

  • gay-mcp (-1): SplitMix64 color generation
  • ordered-locale (+1): Frame structure
  • rubato-composer (-1): Mazzola's Rubato system
  • topos-of-music (+1): Full Mazzola formalization

References

  • Mazzola, G. The Topos of Music (2002)
  • Noll, T. "Neo-Riemannian Theory and the PLR Group"
  • Heunen & van der Schaaf. "Ordered Locales" (2024)

CT lattice atlas

Part of: para-mensch-commons (CT lattice family).

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Model ElevenLabs voice synthesis as an ACSet schema with Unison ability handlers for typed voice operations. Use when integrating ElevenLabs TTS into category-theoretic pipelines, building typed voice synthesis workflows, or managing multi-voice narration with GF(3) conservation.

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

Systematic process for analyzing and modernizing legacy applications to comply with the 12-Factor App methodology. Covers code analysis, configuration externalization, dependency management, and container/Kubernetes best practices.

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

13c0e3

Free

Gay MCP skill at invocation 26

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

19d57d

Free

Gay MCP skill at invocation 5

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

1ea91a

Free

Gay MCP skill at invocation 27

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

1eab21

Free

Gay MCP skill at invocation 3

The English summary is being prepared. Showing the original description.

plurigrid/asi71Updated Jul 10, 2026

See all skills by plurigrid

Report a problem with this skill