package universo

  1. Overview
  2. Docs
A tool for Dedukti to play with universes

Install

Dune Dependency

Authors

Maintainers

Sources

v2.7.tar.gz
sha512=97171b48dd96043d84587581d72edb442f63e7b5ac1695771aa1c3c9074739e15bc7d17678fedb7062acbf403a0bf323d97485c31b92376b80c63b5c2300ee3c
sha256=5e1b6a859dfa1eb2098947a99c7d11ee450f750d96da1720f4834e1505d1096c

doc/universo.elaboration/Elaboration/Var/index.html

Module Elaboration.VarSource

module B = Kernel.Basic
module T = Kernel.Term
Sourceexception Not_uvar
Sourceval basename : string

prefix for all the universe variables.

Sourceval is_pre_var : T.term -> bool

Check if a term should be elaborated by a fresh variable

Sourceval is_uvar : T.term -> bool

Check if a term is universe variable, i.e. its ident should be ?11, ?43...

Sourceval name_of_uvar : T.term -> Kernel.Basic.name

name_of_uvar t returns the name of universe variable if t is a universe variable, raise Not_uvar otherwise

Sourceval counter : int ref

Internal counter use by this module to generate fresh variables

Sourceval fresh : unit -> B.ident

Generate a fresh name for a universe variable

Sourceval fresh_uvar : F.cout F.t -> unit -> T.term

fresh_uvar env () returns a fresh term representing a universe variable. Add a new declaration into the module env.md

OCaml

Innovation. Community. Security.