Skip to content

Commit

Permalink
Fix lemma names for ring.
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed Jan 22, 2014
1 parent 2ced384 commit 72cea5a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions src/ecAlgTactic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ module Axioms = struct
let expr = "expr"
let embed = "ofint"

let core_add = ["oner_neq0"; "addr0"; "addrA"; "addrC";]
let core_mul = [ "mulr1"; "mulrA"; "mulrC"; "mulrDl"]
let core = core_add @ "addrN" :: core_mul
let core_bool = core_add @ "addrrN" :: "bmulrI" :: core_mul

let ofoppbool = ["oppE"]
let intpow = ["expr0"; "exprS"]
let ofint = ["ofint0"; "ofint1"; "ofintS"; "ofintN"]
let ofsub = ["subrE"]
let field = ["mulrV"; "exprN"]
let ofdiv = ["divrE"]
let core_add = ["oner_neq0"; "addr0"; "addrA"; "addrC";]
let core_mul = [ "mulr1"; "mulrA"; "mulrC"; "mulrDl"]
let core = core_add @ "addrN" :: core_mul
let core_bool = core_add @ "addrK" :: "mulrK" :: core_mul

let ofoppbool = ["oppr_id"]
let intpow = ["expr0"; "exprS"]
let ofint = ["ofint0"; "ofint1"; "ofintS"; "ofintN"]
let ofsub = ["subrE"]
let field = ["mulrV"; "exprN"]
let ofdiv = ["divrE"]

let ty0 ty = ty
let ty1 ty = tfun ty (ty0 ty)
Expand Down
6 changes: 3 additions & 3 deletions theories/AWord.ec
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ instance boolean_ring with word
proof addr0 by smt
proof addrA by smt
proof addrC by smt
proof addrrN by smt
proof addrK by smt
proof mulr1 by smt
proof mulrA by smt
proof mulrC by smt
proof mulrDl by smt
proof oppE by smt
proof bmulrI by smt.
proof oppr_id by smt
proof mulrK by smt.

require export ABitstring.
op to_bits: word -> bitstring.
Expand Down
6 changes: 3 additions & 3 deletions theories/AlgTactic.ec
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ theory Requires.
forall (x : domain), add x (opp x) = rzero.

(* For boolean ring *)
axiom nosmt addrrN:
axiom nosmt addrK:
forall (x : domain), add x x = rzero.

axiom nosmt oppE:
axiom nosmt oppr_id:
forall (x : domain), opp x = x.

axiom nosmt mulr1:
Expand All @@ -90,7 +90,7 @@ theory Requires.
forall (x y z: domain), mul x (add y z) = add (mul x y) (mul x z).

(* For boolean ring *)
axiom nosmt bmulrI :
axiom nosmt mulrK:
forall (x:domain), mul x x = x.

axiom nosmt expr0:
Expand Down

0 comments on commit 72cea5a

Please sign in to comment.