rezk-types
Rezk types (complete Segal spaces). Local univalence: categorical isomorphisms ≃ type-theoretic identities.
Best use case
rezk-types is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Rezk types (complete Segal spaces). Local univalence: categorical isomorphisms ≃ type-theoretic identities.
Teams using rezk-types should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/rezk-types/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How rezk-types Compares
| Feature / Agent | rezk-types | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Rezk types (complete Segal spaces). Local univalence: categorical isomorphisms ≃ type-theoretic identities.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Rezk Types Skill
> *"In a Rezk type, isomorphisms are equivalent to identities — local univalence."*
> — Emily Riehl & Michael Shulman
## Overview
Rezk types are Segal types with an additional **local univalence** condition: categorical isomorphisms are equivalent to type-theoretic identities. This is the ∞-categorical analogue of the univalence axiom.
## Core Definitions (Rzk)
```rzk
#lang rzk-1
-- Isomorphism in a Segal type
#define is-iso (A : Segal) (x y : A) (f : hom A x y) : U
:= Σ (g : hom A y x),
(hom2 A x y x f g (id x)) × (hom2 A y x y g f (id y))
-- The type of isomorphisms
#define Iso (A : Segal) (x y : A) : U
:= Σ (f : hom A x y), is-iso A x y f
-- Identity-to-isomorphism map
#define id-to-iso (A : Segal) (x y : A) : (x = y) → Iso A x y
:= λ p. transport (λ z. Iso A x z) p (id x, refl-iso)
-- Rezk condition (local univalence)
#define is-rezk (A : Segal) : U
:= (x y : A) → is-equiv (id-to-iso A x y)
-- Rezk type (complete Segal space)
#define Rezk : U
:= Σ (A : Segal), is-rezk A
```
## Chemputer Semantics
| ∞-Category Concept | Chemical Interpretation |
|--------------------|------------------------|
| Isomorphism | Reversible reaction (equilibrium) |
| Local univalence | "Isomers at equilibrium are the same species" |
| Rezk completion | Finding thermodynamic fixed points |
| Identity = Iso | Chemical identity = equilibrium class |
## GF(3) Triad
```
segal-types (-1) ⊗ directed-interval (0) ⊗ rezk-types (+1) = 0 ✓
```
As a **Generator (+1)**, rezk-types creates:
- Complete categorical structure
- Univalent foundations for chemistry
- Equilibrium-respecting species identification
## The Local Univalence Principle
In a Rezk type:
```
(A ≅ B) ≃ (A = B)
```
**Chemical interpretation**: Two species at mutual equilibrium can be identified. The equilibrium constant K = 1 means "same species up to naming."
## Lean4 Integration
```lean
import InfinityCosmos.ForMathlib.AlgebraicTopology.Quasicategory
-- Rezk completion functor
def RezkCompletion : SegalSpace → RezkSpace := sorry
-- Local univalence
theorem local_univalence (R : RezkSpace) (x y : R.X 0) :
(x = y) ≃ Iso R x y := by
exact R.rezk x y
```
## Integration with Interaction Entropy
```ruby
# Rezk completion for interaction sequences
module RezkCompletion
# Two interaction sequences are "Rezk-equivalent" if
# they produce the same observable effect
def self.equivalent?(seq1, seq2)
# Check if there's an isomorphism between outcomes
# Isomorphism = both directions have GF(3) = 0
forward_trit_sum = seq1.zip(seq2).map { |a, b| a.trit - b.trit }.sum
backward_trit_sum = seq2.zip(seq1).map { |a, b| a.trit - b.trit }.sum
(forward_trit_sum % 3 == 0) && (backward_trit_sum % 3 == 0)
end
end
```
## Key Theorems
1. **Rezk completion exists**: Every Segal type has a universal Rezk completion.
2. **Functors preserve Rezk**: A functor F : A → B between Rezk types preserves isomorphisms.
3. **Adjoint is property**: For a functor between Rezk types, having an adjoint is a **mere proposition** (at most one adjoint up to iso).
## References
- Rezk, C. (2001). "A model for the homotopy theory of homotopy theory." *Trans. AMS*.
- Riehl, E. & Shulman, M. (2017). "A type theory for synthetic ∞-categories."
- [sHoTT library](https://rzk-lang.github.io/sHoTT/)Related Skills
javascript-typescript
JavaScript and TypeScript development with ES6+, Node.js, React, and
segal-types
Segal types for synthetic ∞-categories. Binary composites exist uniquely up to homotopy. Foundation for topological chemputer.
zx-calculus
Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)
zulip-cogen
Zulip Cogen Skill 🐸⚡
zls-integration
zls-integration skill
zig
zig skill
zig-syrup-bci
Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation
zig-programming
zig-programming skill
zeroth-bot
Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support
wycheproof
Google's Wycheproof test vectors for cryptographic implementation testing.
Writing Hookify Rules
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.