Idris2Doc : Algebra.Solver.Prod

Algebra.Solver.Prod

(source)

Reexports

importpublic Data.List.Elem

Definitions

dataProd : (a : Type) ->Lista->Type
  A product of variables each represented by the exponent,
to which it is raised.

When normalizing arithmetic expressions, they often
get converted to (sums of) products of variables
(listed in index `as`), each raised to a certain
exponent. This is the case for commutative monoids
(a single product) as well as commutative (semi)rings
(a sum of products).

Totality: total
Visibility: public export
Constructors:
Nil : Proda []
(::) : Nat->Prodaxs->Proda (x::xs)
mult : Prodaas->Prodaas->Prodaas
  Multiplying two products means adding all
expontents pairwise.

Totality: total
Visibility: public export
compProd : Prodaas->Prodaas->Ordering
  We sort products by lexicographically comparing
the exponents.

Totality: total
Visibility: public export
one : Prodaas
  The neutral product where all exponents are zero.

Totality: total
Visibility: public export
fromVar : Elemxas->Prodaas
  Convert a single variable to a product of variables.

Totality: total
Visibility: public export
0pcompNat : (x : Nat) -> (y : Nat) ->comparexy=EQ->x=y
Totality: total
Visibility: export
0pcompProd : (x : Prodaas) -> (y : Prodaas) ->compProdxy=EQ->x=y
Totality: total
Visibility: export