package tezos-protocol-015-PtLimaPt

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Dependent_bool/index.html

Module Tezos_raw_protocol_015_PtLimaPt.Dependent_boolSource

Dependent booleans

Sourcetype no = private
  1. | DNo
Sourcetype yes = private
  1. | DYes
Sourcetype _ dbool =
  1. | No : no dbool
  2. | Yes : yes dbool

'b dbool is a boolean whose value depends on its type parameter 'b. yes dbool can only be Yes. no dbool can only be No.

Sourcetype ('a, 'b, 'r) dand =
  1. | NoNo : (no, no, no) dand
  2. | NoYes : (no, yes, no) dand
  3. | YesNo : (yes, no, no) dand
  4. | YesYes : (yes, yes, yes) dand

('a, 'b, 'r) dand is a witness of the logical conjunction of dependent booleans. 'r is the result of 'a and 'b.

Sourcetype ('a, 'b) ex_dand =
  1. | Ex_dand : ('a, 'b, _) dand -> ('a, 'b) ex_dand
Sourceval dand : 'a dbool -> 'b dbool -> ('a, 'b) ex_dand

Logical conjunction of dependent booleans.

Sourceval dbool_of_dand : ('a, 'b, 'r) dand -> 'r dbool

Result of the logical conjunction of dependent booleans.

Sourcetype (_, _) eq =
  1. | Eq : ('a, 'a) eq

Type equality witness.

Sourceval merge_dand : ('a, 'b, 'c1) dand -> ('a, 'b, 'c2) dand -> ('c1, 'c2) eq

merge_dand proves that the type dand represents a function, i.e. that there is a unique 'r such that ('a, 'b, 'r) dand is inhabited for a given 'a and a given 'b.

OCaml

Innovation. Community. Security.