package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.17.1.tar.gz
sha512=9a35311acec2a806730b94ac7dceabc88837f235c52a14c026827d9b89433bd7fa9555a9fc6829aa49edfedb24c8bbaf1411ebf463b74a50aeb17cba47745b6b

doc/coq-core.vernac/Attributes/Notations/index.html

Module Attributes.NotationsSource

Notations to combine attributes.

Attributes form a monad. a1 >>= f means f will be run on the flags transformed by a1 and using the value produced by a1. The trivial attribute return x does no action on the flags.

include Monad.Def with type 'a t = 'a attribute
Sourcetype 'a t = 'a attribute
Sourceval return : 'a -> 'a t
Sourceval (>>=) : 'a t -> ('a -> 'b t) -> 'b t
Sourceval (>>) : unit t -> 'a t -> 'a t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t

The monadic laws must hold:

  • (x>>=f)>>=g = x>>=fun x' -> (f x'>>=g)
  • return a >>= f = f a
  • x>>=return = x

As well as the following identities:

  • x >> y = x >>= fun () -> y
  • map f x = x >>= fun x' -> f x'
Sourceval (++) : 'a attribute -> 'b attribute -> ('a * 'b) attribute

Combine 2 attributes. If any keys are in common an error will be raised.

OCaml

Innovation. Community. Security.