package coq-core

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.0.tar.gz
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b

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.