Idris2Doc : Algebra.Solver.Ring.Prod

Algebra.Solver.Ring.Prod

(source)

Reexports

importpublic Algebra.Solver.Prod

Definitions

eprod : Ringa=>Prodaas->a
  Evaluate products of variables each raised to
given exponent.

Every arithmetic expression in a commutative ring
can be represented as a sum of products of the variables
each raised by an exponent and multiplied by a constant
factor. For instance, expression `x + x * (y + z + z)`
gets normalized to `x + x * y + 2 * x * z`.

Totality: total
Visibility: public export
0pone : {auto{conArg:856} : Ringa} -> (as : Lista) ->eprodone=1
  Proof that `one` evaluates to 1.

Totality: total
Visibility: export
0pvar : {auto{conArg:983} : Ringa} -> (as : Lista) -> (e : Elemxas) ->eprod (fromVare) =x
  Proof that `fromVar x` evaluates to `x`.

Totality: total
Visibility: export
0pmult : {auto{conArg:1241} : Ringa} -> (p : Prodaas) -> (q : Prodaas) ->eprod (multpq) =eprodp*eprodq
  Proof that evaluation of a multiplication of products
is the same as multiplying the results of evaluating each
of them.

Totality: total
Visibility: export