본문으로 건너뛰기
cccskills
무료GitHub에 공개

categorical-composition

**Category:** Phase 3 Core - Compositional Architecture

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md2.8 KB
  • category_theory.jl6.0 KB
  • CONCOMITANT_SKILLS.md1.6 KB
  • kan_extensions.jl5.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Categorical Composition

Category: Phase 3 Core - Compositional Architecture Status: Skeleton Implementation Dependencies: None (foundational)

Overview

Implements categorical abstractions for compositional learning: Kan extensions for adapting between learning problems, higher adjunctions for bidirectional transformations, and functorial parameter transfer for compositional generalization.

Capabilities

  • Kan Extensions: Left/right Kan extensions for problem adaptation
  • Adjunctions: Adjoint functors for bidirectional transformations
  • Functorial Transfer: Preserve structure across parameter spaces
  • Compositional Architecture: Build complex systems from simple components

Core Components

  1. Category Theory Primitives (category_theory.jl)

    • Category, functor, natural transformation definitions
    • Composition and identity laws
    • Diagram chasing utilities
  2. Kan Extensions (kan_extensions.jl)

    • Left Kan extension (initial/colimit-based)
    • Right Kan extension (terminal/limit-based)
    • Pointwise computation formulas
  3. Adjunctions (adjunctions.jl)

    • Adjoint functor pairs
    • Unit and counit natural transformations
    • Triangle identities verification
  4. Functorial Parameter Transfer (functorial_transfer.jl)

    • Transfer neural network parameters via functors
    • Preserve compositional structure
    • Zero-shot generalization via categorical reasoning

Integration Points

  • Input from: All Phase 3 skills (provides compositional framework)
  • Output to: All Phase 3 skills (foundational abstraction)
  • Coordinates with: formal-verification-ai (correctness proofs)

Usage

using CategoricalComposition

# Define source and target categories
C = FiniteCategory(objects=[:A, :B], morphisms=Dict(:f => (:A, :B)))
D = FiniteCategory(objects=[:X, :Y, :Z], morphisms=Dict(:g => (:X, :Y), :h => (:Y, :Z)))

# Define functor F: C -> D
F = Functor(
    source=C,
    target=D,
    object_map=Dict(:A => :X, :B => :Y),
    morphism_map=Dict(:f => :g)
)

# Compute left Kan extension
G = Functor(source=C, target=Set, object_map=Dict(:A => [1,2], :B => [3,4]))
Lan_F_G = left_kan_extension(F, G)

# Verify adjunction
@assert check_adjunction(Lan_F_G, restriction_functor(F))

References

  • Mac Lane "Categories for the Working Mathematician" (1971)
  • Fong & Spivak "Seven Sketches in Compositionality" (2019)
  • Shiebler et al. "Category Theory in Machine Learning" (2021)

Implementation Status

  • Basic category theory primitives
  • Functor composition
  • Full Kan extension computation
  • Adjunction verification
  • Neural network parameter transfer demo

Para(Optic) atlas

Part of: para-mensch-commons.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

13c0e3

무료

Gay MCP skill at invocation 26

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

19d57d

무료

Gay MCP skill at invocation 5

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

1ea91a

무료

Gay MCP skill at invocation 27

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

1eab21

무료

Gay MCP skill at invocation 3

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

plurigrid/asi702026년 7월 10일 업데이트

plurigrid의 스킬 모두 보기

이 스킬의 문제 신고