File: finite_field.rst

package info (click to toggle)
cvc5 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 87,260 kB
  • sloc: cpp: 383,850; java: 12,207; python: 12,090; sh: 5,679; ansic: 4,729; lisp: 763; perl: 208; makefile: 38
file content (58 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Finite Fields
=============


Basic FiniteField Term Builders
-------------------------------
.. autofunction:: cvc5.pythonic.FiniteFieldElem
.. autofunction:: cvc5.pythonic.FiniteFieldVal
.. autofunction:: cvc5.pythonic.FiniteFieldSort
.. autofunction:: cvc5.pythonic.FiniteFieldElems


Arithmetic Overloads
--------------------

See the following operator overloads for building finite field terms. These
terms can also be built with builder functions listed below.

addition (``+``)
  :py:meth:`cvc5.pythonic.FiniteFieldRef.__add__`

subtraction (``-``)
  :py:meth:`cvc5.pythonic.FiniteFieldRef.__sub__`

negation (``-``)
  :py:meth:`cvc5.pythonic.FiniteFieldRef.__neg__`

multiplication (``*``)
  :py:meth:`cvc5.pythonic.FiniteFieldRef.__mul__`

equality (``==``)
  :py:meth:`cvc5.pythonic.ExprRef.__eq__`

.. autofunction:: cvc5.pythonic.FFAdd
.. autofunction:: cvc5.pythonic.FFSub
.. autofunction:: cvc5.pythonic.FFNeg
.. autofunction:: cvc5.pythonic.FFMult


Testers
-------------------
.. autofunction:: cvc5.pythonic.is_ff_sort
.. autofunction:: cvc5.pythonic.is_ff
.. autofunction:: cvc5.pythonic.is_ff_value

Classes (with overloads)
-------------------------

.. autoclass:: cvc5.pythonic.FiniteFieldSortRef
   :members:
   :special-members:
.. autoclass:: cvc5.pythonic.FiniteFieldRef
   :members:
   :special-members:
.. autoclass:: cvc5.pythonic.FiniteFieldNumRef
   :members:
   :special-members: