@@ -16,10 +16,9 @@ type ty_params = ty_param list
16
16
type ty_pctor = [ `Int of int | `Named of ty_params ]
17
17
18
18
type tydecl = {
19
- tyd_params : ty_params ;
20
- tyd_type : ty_body ;
21
- tyd_loca : locality ;
22
- tyd_resolve : bool ;
19
+ tyd_params : ty_params ;
20
+ tyd_type : ty_body ;
21
+ tyd_loca : locality ;
23
22
}
24
23
25
24
and ty_body = [
@@ -48,7 +47,7 @@ let tydecl_as_record (td : tydecl) =
48
47
match td.tyd_type with `Record x -> Some x | _ -> None
49
48
50
49
(* -------------------------------------------------------------------- *)
51
- let abs_tydecl ?(resolve = true ) ?( tc = Sp. empty) ?(params = `Int 0 ) lc =
50
+ let abs_tydecl ?(tc = Sp. empty) ?(params = `Int 0 ) lc =
52
51
let params =
53
52
match params with
54
53
| `Named params ->
@@ -60,7 +59,7 @@ let abs_tydecl ?(resolve = true) ?(tc = Sp.empty) ?(params = `Int 0) lc =
60
59
(EcUid.NameGen. bulk ~fmt n)
61
60
in
62
61
63
- { tyd_params = params; tyd_type = `Abstract tc; tyd_resolve = resolve; tyd_loca = lc; }
62
+ { tyd_params = params; tyd_type = `Abstract tc; tyd_loca = lc; }
64
63
65
64
(* -------------------------------------------------------------------- *)
66
65
let ty_instanciate (params : ty_params ) (args : ty list ) (ty : ty ) =
@@ -137,13 +136,11 @@ and opopaque = { smt: bool; reduction: bool; }
137
136
type axiom_kind = [`Axiom of (Ssym .t * bool ) | `Lemma ]
138
137
139
138
type axiom = {
140
- ax_tparams : ty_params ;
141
- ax_spec : EcCoreFol .form ;
142
- ax_kind : axiom_kind ;
143
- ax_loca : locality ;
144
- ax_visibility : ax_visibility ; }
145
-
146
- and ax_visibility = [`Visible | `NoSmt | `Hidden ]
139
+ ax_tparams : ty_params ;
140
+ ax_spec : EcCoreFol .form ;
141
+ ax_kind : axiom_kind ;
142
+ ax_loca : locality ;
143
+ ax_smt : bool ; }
147
144
148
145
let is_axiom (x : axiom_kind ) = match x with `Axiom _ -> true | _ -> false
149
146
let is_lemma (x : axiom_kind ) = match x with `Lemma -> true | _ -> false
@@ -272,11 +269,11 @@ let axiomatized_op ?(nargs = 0) ?(nosmt = false) path (tparams, axbd) lc =
272
269
let op = f_app op opargs axbd.f_ty in
273
270
let axspec = f_forall args (f_eq op axbd) in
274
271
275
- { ax_tparams = axpm;
276
- ax_spec = axspec;
277
- ax_kind = `Axiom (Ssym. empty, false );
278
- ax_loca = lc;
279
- ax_visibility = if nosmt then `NoSmt else `Visible ; }
272
+ { ax_tparams = axpm;
273
+ ax_spec = axspec;
274
+ ax_kind = `Axiom (Ssym. empty, false );
275
+ ax_loca = lc;
276
+ ax_smt = not nosmt ; }
280
277
281
278
(* -------------------------------------------------------------------- *)
282
279
type typeclass = {
0 commit comments