Revision 99156b6b5d8271ddc8f5ce650237a41ea0ce3f8d authored by Benjamin Gregoire on 02 December 2015, 08:18:55 UTC, committed by Benjamin Gregoire on 02 December 2015, 08:18:55 UTC
1 parent 0b16322
Raw File
IRing.ec
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2015 - IMDEA Software Institute
 * Copyright (c) - 2012--2015 - Inria
 * 
 * Distributed under the terms of the CeCILL-B-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
require export Int.
require import Ring AlgTactic.

(* -------------------------------------------------------------------- *)
instance ring with int
  op rzero = zero
  op rone  = one
  op add   = (+)
  op opp   = [-]
  op mul   = ( * )
  op expr  = ( ^ )
  op sub   = (-)

  proof oner_neq0 by smt
  proof addr0     by smt
  proof addrA     by smt
  proof addrC     by smt
  proof addrN     by smt
  proof mulr1     by smt
  proof mulrA     by smt
  proof mulrC     by smt
  proof mulrDl    by smt
  proof expr0     by smt
  proof exprS     by smt
  proof subrE     by smt.

back to top