Reference. Cubical Agda: A Dependently Typed Programming Language with Univalence and Higher Inductive Types
Cite
Cited by (22)
Intrinsically Correct Algorithms and Recursive Coalgebras alexandruIntrinsicallyCorrectAlgorithms2025-preprint
Reflexive graph lenses in univalent foundations sterling-2026-reflexive
Internalizing Extensions in Lattices of Type Theories chan-2025-internalizing
Proof Repair across Quotient Type Equivalences viola-2025-proof
Frex: Dependently Typed Algebraic Simplification allais-2025-frex
Intrinsic Verification of Parsers and Formal Grammar Theory in Dependent Lambek Calculus intrinsic-verification-of-parsers
We present Dependent Lambek Calculus (Lambek), a domain-specific dependent type theory for verified parsing and formal grammar theory. In Lambek, linear types are used as a syntax for formal grammars, and parsers can be written as linear terms. The linear typing restriction provides a form of intrinsic verification that a parser yields only valid parse trees for the input string. We demonstrate the expressivity of this system by showing that the combination of inductive linear types and dependency on non-linear data can be used to encode commonly used grammar formalisms such as regular and context-free grammars as well as traces of various types of automata. Using these encodings, we define parsers for regular expressions using deterministic automata, as well as examples of verified parsers of context-free grammars.
We present a denotational semantics of our type theory that interprets the linear types as functions from strings to sets of abstract parse trees and terms as parse transformers. Based on this denotational semantics, we have made a prototype implementation of Lambek using a shallow embedding in the Agda proof assistant. All of our examples parsers have been implemented in this prototype implementation.
The Formal Theory of Monads, Univalently vanderweide-2025-thex
Intrinsically Correct Sorting in Cubical Agda alexandruIntrinsicallyCorrectSorting2025
Modelling Recursion and Probabilistic Choice in Guarded Type Theory stassen-2025-modelling
(Co)condition hits the Path zhang-2024-co
Displayed Monoidal Categories for the Semantics of Linear Logic ahrens-2024-displayed
Algebraic Effects Meet Hoare Logic in Cubical Agda kidney-2024-algebraic
Two tricks to trivialize higher-indexed families zhang-2023-two
Free Commutative Monoids in Homotopy Type Theory choudhury-2023-free
Quotients, inductive types, and quotient inductive types fiore-2022-quotients
A Cubical Language for Bishop Sets sterling-2022-a
A simpler encoding of indexed types zhang-2021-a
Syntax and models of Cartesian cubical type theory angiuli-2021-syntax
Internalizing representation independence with univalence angiuli-2021-internalizing
Formalizing category theory in Agda hu-2021-formalizing
Normalization for Cubical Type Theory sterling_angiuli_2021
Constructing Higher Inductive Types as Groupoid Quotients vanderweide-2020-constructing
Cites 42 works (8 here)
With notes (8)
Semantics of higher inductive types lumsdaine-2019-semantics
Cubical Syntax for Reflection-Free Extensional Equality sterling-2019-cubical
Cartesian Cubical Computational Type Theory: Constructive Reasoning with Paths and Equalities angiuli-2018-cartesian
A type theory for synthetic -categories riehl-2017-a
Homotopical patch theory angiuli-2016-homotopical
Calculating the Fundamental Group of the Circle in Homotopy Type Theory licata-2013-calculating
Observational equality, now! altenkirch-2007-observational
External (34)
- Higher inductive types in cubical computational type theory (2019)
- Homotopy Canonicity for Cubical Type Theory (2019)
- Syntax and Models of Cartesian Cubical Type Theory (preprint) (2019)
- The Coq Proof Assistant, version 8.9.0 (2019)
- Formalizing Category Theory and Presheaf Models of Type Theory in Nuprl (2018)
- Elaborating dependent (co)pattern matching (2018)
- Cubical Type Theory: A Constructive Interpretation of the Univalence Axiom (2018)
- On Higher Inductive Types in Cubical Type Theory (2018)
- Canonicity for Cubical Type Theory (2018)
- Internal Universes in Models of Homotopy Type Theory (2018)
- Equivalences for free: univalent parametricity for effective transport (2018)
- Agda 2.5.4.2 documentation (2018)
- The redtt Proof Assistant (2018)
- Decidability of conversion for type theory in type theory (2017)
- Two-Level Type Theory and Applications (2017)
- HoTTSQL: Proving Query Rewrites with Univalent SQL Semantics (2017)
- A Cubical Type Theory for Higher Inductive Types (Huber, note) (2017)
- Streams for Cubical Type Theory (2017)
- Axioms for Modelling Cubical Type Theory in a Topos (2016)
- The Equivalence of the Torus and the Product of Two Circles in Homotopy Type Theory (2016)
- On the homotopy groups of spheres in homotopy type theory (PhD thesis, Brunerie) (2016)
- Non-wellfounded trees in Homotopy Type Theory (2015)
- The Lean Theorem Prover (System Description) (2015)
- A Cubical Approach to Synthetic Homotopy Theory (2015)
- An experimental library of formalized Mathematics based on the univalent foundations (2015)
- Copatterns (2013)
- Idris, a general-purpose dependently typed programming language: Design and implementation (2013)
- Refinements for Free! (2013)
- Isomorphism is equality (2013)
- A simple type system with two identity types (2013)
- The Simplicial Model of Univalent Foundations (after Voevodsky) (2012)
- Let's See How Things Unfold: Reconciling the Infinite with the Intensional (Extended Abstract) (2009)
- Towards Observational Type Theory (unpublished draft) (2006)
- An Intuitionistic Theory of Types: Predicative Part (1975)