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/micromega_plugin/Micromega_plugin/Polynomial/Poly/index.html

Module Polynomial.PolySource

Representation of polonomial with rational coefficient. a1.m1 + ... + c where

  • ai are rational constants (num type)
  • mi are monomials
  • c is a rational constant
Sourcetype t

constant c

  • returns

    the constant polynomial c

Sourceval variable : var -> t

variable x

  • returns

    the polynomial 1.x^1

Sourceval addition : t -> t -> t

addition p1 p2

  • returns

    the polynomial p1+p2

Sourceval product : t -> t -> t

product p1 p2

  • returns

    the polynomial p1*p2

Sourceval uminus : t -> t

uminus p

  • returns

    the polynomial -p i.e product by -1

get mi p

  • returns

    the coefficient ai of the monomial mi.

Sourceval fold : (Monomial.t -> Micromega_core_plugin.NumCompat.Q.t -> 'a -> 'a) -> t -> 'a -> 'a

fold f p a folds f over the monomials of p with non-zero coefficient

add m n p

  • returns

    the polynomial n*m + p

OCaml

Innovation. Community. Security.