home / skills / plurigrid / asi / covariant-fibrations
This skill helps you validate covariant fibrations and transport along directed intervals, ensuring correct type propagation in dependent type workflows.
npx playbooks add skill plurigrid/asi --skill covariant-fibrationsReview the files below or copy the command above to add this skill to your agents.
---
name: covariant-fibrations
description: Riehl-Shulman covariant fibrations for dependent types over directed
intervals in synthetic ā-categories.
license: UNLICENSED
metadata:
trit: -1
source: local
---
# Covariant Fibrations Skill: Directed Transport
**Status**: ā
Production Ready
**Trit**: -1 (MINUS - validator/constraint)
**Color**: #2626D8 (Blue)
**Principle**: Type families respect directed morphisms
**Frame**: Covariant transport along 2-arrows
---
## Overview
**Covariant Fibrations** are type families B : A ā U where transport goes *with* the direction of morphisms. In directed type theory, this ensures type families correctly propagate along the directed interval š.
1. **Directed interval š**: Type with 0 ā 1 (not invertible)
2. **Covariant transport**: f : a ā a' induces B(a) ā B(a')
3. **Segal condition**: Composition witness for ā-categories
4. **Fibration condition**: Lift existence (not uniqueness)
## Core Formula
```
For P : A ā U covariant fibration:
transport_P : (f : Hom_A(a, a')) ā P(a) ā P(a')
Covariance: transport respects composition
transport_{gāf} = transport_g ā transport_f
```
```haskell
-- Directed type theory (Narya-style)
covariant_fibration : (A : Type) ā (P : A ā Type) ā Type
covariant_fibration A P =
(a a' : A) ā (f : Hom A a a') ā P a ā P a'
```
## Key Concepts
### 1. Covariant Transport
```agda
-- Transport along directed morphisms
cov-transport : {A : Type} {P : A ā Type}
ā is-covariant P
ā {a a' : A} ā Hom A a a' ā P a ā P a'
cov-transport cov f pa = cov.transport f pa
-- Functoriality
cov-comp : cov-transport (g ā f) ā” cov-transport g ā cov-transport f
```
### 2. Cocartesian Lifts
```agda
-- Cocartesian lift characterizes covariant fibrations
is-cocartesian : {E B : Type} (p : E ā B)
ā {e : E} {b' : B} ā Hom B (p e) b' ā Type
is-cocartesian p {e} {b'} f =
Ī£ (e' : E), Ī£ (fĢ : Hom E e e'), (p fĢ ā” f) Ć is-initial(fĢ)
```
### 3. Segal Types with Covariance
```agda
-- Covariant families over Segal types
covariant-segal : (A : Segal) ā (P : A ā Type) ā Type
covariant-segal A P =
(x y z : A) ā (f : Hom x y) ā (g : Hom y z) ā
cov-transport (g ā f) ā” cov-transport g ā cov-transport f
```
## Commands
```bash
# Validate covariance conditions
just covariant-check fibration.rzk
# Compute cocartesian lifts
just cocartesian-lift base-morphism.rzk
# Generate transport terms
just cov-transport source target
```
## Integration with GF(3) Triads
```
covariant-fibrations (-1) ā directed-interval (0) ā synthetic-adjunctions (+1) = 0 ā [Transport]
covariant-fibrations (-1) ā elements-infinity-cats (0) ā rezk-types (+1) = 0 ā [ā-Fibrations]
```
## Related Skills
- **directed-interval** (0): Base directed type š
- **synthetic-adjunctions** (+1): Generate adjunctions from fibrations
- **segal-types** (-1): Validate Segal conditions
---
**Skill Name**: covariant-fibrations
**Type**: Directed Transport Validator
**Trit**: -1 (MINUS)
**Color**: #2626D8 (Blue)
This skill implements covariant fibrations: type families that transport along directed morphisms in synthetic ā-categories. It verifies functorial, cocartesian-lift, and Segal-style conditions so dependent types respect the direction of the interval š. Use it to assert and compute directed transport and cocartesian lifts for dependent families over Segal or ā-type bases.
The tool inspects a family P : A ā Type and checks that for every arrow f : Hom_A(a,a') there is a transport map P(a) ā P(a') that composes correctly. It verifies covariance by checking transport_{gāf} = transport_g ā transport_f and searches for cocartesian lifts witnessing the fibration condition. Commands also produce explicit transport terms and can compute candidate lifts or counterexamples when conditions fail.
Does the skill require uniqueness of lifts?
No. The fibration condition enforces existence of cocartesian lifts, not uniqueness; initiality of the lift is checked when appropriate.
Can it handle noninvertible directed intervals like š?
Yes. The skill is designed for directed intervals with noninvertible arrows and ensures transport follows the forward direction.