package lambdapi

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lambdapi-2.2.1.tbz
sha256=ba73f288e435130293408bd44732f1dfc5ec8a8db91c7453c9baf9c740095829
sha512=f88bb92fdb8aee8add60588673040fac012b2eab17c2a1d529c4b7c795cf0e1a9168122dc19889f04a31bda2bb2cf820237cbbe7e319121618aba3d134381756

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 ^ "|}".