package lambdapi

  1. Overview
  2. Docs
Proof assistant for the λΠ-calculus modulo rewriting

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-2.4.0.tbz
sha256=739cab9a0a6c3ab0e7df210fb6fdcdb749a6fa70aa7ca59145da177c25428cb6
sha512=f1413e65259d1587d57d656a5153890c355fa339d981c0b038736bcaf53c698cc10466fbc77444d103c7b6ccb8d63290ff80a506d057bc199a29d53947e898c9

doc/lambdapi.common/Common/Escape/index.html

Module Common.EscapeSource

Escaped identifiers "{|...|}".

Sourceval is_escaped : string -> bool

is_escaped s tells if s begins with "{|" and ends with "|}" without overlapping. For efficiency, we just test that it starts with '{'.

Sourceval unescape : string -> string

unescape s removes "{|" and "|}" if s is an escaped identifier.

Sourceval add_prefix : string -> string -> string

p is assumed to be a regular identifier. If n is a regular identifier too, then add_prefix p n is just p ^ n. Otherwise, it is "{|" ^ p ^ unescape n ^ "|}".

Sourceval add_suffix : string -> string -> string

s is assumed to be a regular identifier. If n is a regular identifier too, then add_suffix n s is just n ^ s. Otherwise, it is "{" ^ unescape n ^ s ^ "|}".