# biocini/kitcat architecture

> Architecture diagram of the GitHub repository biocini/kitcat, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/biocini/kitcat
- Repository: https://github.com/biocini/kitcat

## Overview

Kitcat is a research library in Cubical Agda for univalent mathematics, homotopy type theory, higher category theory, and programming-language foundations. Researchers use its definitions and machine-checked proofs as a testbed and reference. The tree shows distinct foundations, data-type, homotopy, and categorical-theory areas, but the supplied source excerpt is a peripheral PDF-analysis script, not the library’s Agda modules. Internal call and import relationships therefore cannot be verified; no internal workflow edges are inferred.

Main entry points: [`src/Core`](https://github.com/biocini/kitcat/tree/master/src/Core) (Kitcat Library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Type Foundations"]
  node_kitcat["Kitcat Library"]
  node_core["Core Foundations<br/>[Base.lagda.md]"]
  node_logic["Logic"]
end

subgraph group_homotopy["Homotopy Theory"]
  node_higherdata["Higher Data"]
end

subgraph group_data["Data Structures"]
  node_coredata["Core Data"]
  node_inductive["Inductive Data"]
end

subgraph group_category["Category Theory"]
  node_virtualgraphs["Virtual Graphs"]
  node_weakdeductive["Weak Deduction"]
  node_explicitinterchange["Explicit Interchange"]
  node_unitalmagmoids["Unital Magmoids"]
  node_vgshape["Graph Shapes"]
  node_naivevirtual["Naive Virtual Graphs"]
  node_onetwist["One Twist"]
end

node_researcher(("Researchers"))

node_researcher -->|"consults"| node_kitcat

click node_kitcat "https://github.com/biocini/kitcat/tree/master/src/Core"
click node_core "https://github.com/biocini/kitcat/blob/master/src/Core/Base.lagda.md"
click node_logic "https://github.com/biocini/kitcat/tree/master/src/Cat/Logic"
click node_coredata "https://github.com/biocini/kitcat/tree/master/src/Core/Data"
click node_inductive "https://github.com/biocini/kitcat/tree/master/src/Data"
click node_higherdata "https://github.com/biocini/kitcat/tree/master/src/HData"
click node_virtualgraphs "https://github.com/biocini/kitcat/tree/master/src/Bb/VirtualGraphs"
click node_weakdeductive "https://github.com/biocini/kitcat/tree/master/src/Bb/WeakDeductiveSystem"
click node_explicitinterchange "https://github.com/biocini/kitcat/tree/master/src/Bb/CatsWithExplicitInterchange"
click node_unitalmagmoids "https://github.com/biocini/kitcat/tree/master/src/Bb/UnitalMagmoids"
click node_vgshape "https://github.com/biocini/kitcat/tree/master/src/Bb/VgCategoryShape"
click node_naivevirtual "https://github.com/biocini/kitcat/tree/master/src/Bb/NaiveVirtualGraph"
click node_onetwist "https://github.com/biocini/kitcat/tree/master/src/Bb/OneTwist"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_kitcat,node_core,node_logic toneBlue
class node_higherdata toneAmber
class node_coredata,node_inductive toneMint
class node_virtualgraphs,node_weakdeductive,node_explicitinterchange,node_unitalmagmoids,node_vgshape,node_naivevirtual,node_onetwist toneRose
class node_researcher toneIndigo
```

## Components

### Type Foundations

- [Kitcat Library](https://github.com/biocini/kitcat/tree/master/src/Core): `src/Core`
- [Core Foundations](https://github.com/biocini/kitcat/blob/master/src/Core/Base.lagda.md): `src/Core/Base.lagda.md`
- [Logic](https://github.com/biocini/kitcat/tree/master/src/Cat/Logic): `src/Cat/Logic`

### Homotopy Theory

- [Higher Data](https://github.com/biocini/kitcat/tree/master/src/HData): `src/HData`

### Data Structures

- [Core Data](https://github.com/biocini/kitcat/tree/master/src/Core/Data): `src/Core/Data`
- [Inductive Data](https://github.com/biocini/kitcat/tree/master/src/Data): `src/Data`

### Category Theory

- [Virtual Graphs](https://github.com/biocini/kitcat/tree/master/src/Bb/VirtualGraphs): `src/Bb/VirtualGraphs`
- [Weak Deduction](https://github.com/biocini/kitcat/tree/master/src/Bb/WeakDeductiveSystem): `src/Bb/WeakDeductiveSystem`
- [Explicit Interchange](https://github.com/biocini/kitcat/tree/master/src/Bb/CatsWithExplicitInterchange): `src/Bb/CatsWithExplicitInterchange`
- [Unital Magmoids](https://github.com/biocini/kitcat/tree/master/src/Bb/UnitalMagmoids): `src/Bb/UnitalMagmoids`
- [Graph Shapes](https://github.com/biocini/kitcat/tree/master/src/Bb/VgCategoryShape): `src/Bb/VgCategoryShape`
- [Naive Virtual Graphs](https://github.com/biocini/kitcat/tree/master/src/Bb/NaiveVirtualGraph): `src/Bb/NaiveVirtualGraph`
- [One Twist](https://github.com/biocini/kitcat/tree/master/src/Bb/OneTwist): `src/Bb/OneTwist`

### Other components

- **Researchers**

## Connections

- Researchers → Kitcat Library: consults (evidence: `README.md`)
