Cubical

1 program Added 2026-02-10T20:14:46.773940+00:00 Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Cubical Agda, Cubical Type Theory
Provenance: commit 7bb8ac4e94 · authored 2026-02-10T21:16:01+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Cubical Agda (0.42)cubicaltt (0.20)TL (0.14)Agda (0.13)Cubix (0.13)

LLM-contributed programs

Path Equality and Commutativity Proof

Provenance: commit 7bb8ac4e94 · authored 2026-02-10T21:16:01+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.agda · license: MIT · added: 2026-02-10T20:14:46.773940+00:00
{-# OPTIONS --cubical #-}

module Example where

open import Cubical.Core.Everything
open import Cubical.Foundations.Prelude

-- Proof that addition is commutative for natural numbers
+-comm : (m n : ℕ) → m + n ≡ n + m
+-comm zero n = sym (+-zero n)
+-comm (suc m) n =
  suc (m + n)   ≡⟨ cong suc (+-comm m n) ⟩
  suc (n + m)   ≡⟨ sym (+-suc n m) ⟩
  n + suc m     ∎

-- Simple path equality example
refl-path : {A : Type} (x : A) → x ≡ x
refl-path x = refl

Contribute — propose a file extension

Tell us where to find evidence about Cubical (mapped to pl/cubical). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Cubical/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Cubestate Cubical Agda →