package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

rocq-9.0.0.tar.gz
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be

doc/rocq-runtime.interp/NumTok/Signed/index.html

Module NumTok.SignedSource

Sourceval equal : t -> t -> bool
Sourceval is_zero : t -> bool
Sourceval of_nat : UnsignedNat.t -> t
Sourceval of_int : SignedNat.t -> t
Sourceval to_int : t -> SignedNat.t option
Sourceval is_int : t -> bool
Sourceval sprint : t -> string
Sourceval print : t -> Pp.t

sprint and print returns the number as it was parsed, for printing

Sourceval parse_string : string -> t option

Parse the string as a signed Rocq number, if possible

Sourceval of_int_string : string -> t

Convert from a string in the syntax of OCaml's int/int64

Sourceval of_string : string -> t

Convert from a string in the syntax of OCaml's string_of_float

Sourceval to_string : t -> string

Returns a string in the syntax of OCaml's float_of_string

Sourceval of_bigint : num_class -> Z.t -> t
Sourceval to_bigint : t -> Z.t option

Convert from and to bigint when the denotation of a bigint

Sourceval of_int_frac_and_exponent : SignedNat.t -> UnsignedNat.t option -> SignedNat.t option -> t
Sourceval to_int_frac_and_exponent : t -> SignedNat.t * UnsignedNat.t option * SignedNat.t option

n, p and q such that the number is n.p*10^q or n.p*2^q pre/postcondition: classify n = classify p, classify q = CDec

Sourceval of_bigint_and_exponent : Z.t -> Z.t exp -> t
Sourceval to_bigint_and_exponent : t -> Z.t * Z.t exp

n and p such that the number is n*10^p or n*2^p

Sourceval classify : t -> num_class
Sourceval is_bigger_int_than : t -> UnsignedNat.t -> bool

Test if an integer whose absolute value is bounded

OCaml

Innovation. Community. Security.