@@ -16,10 +16,9 @@ type ty_params = ty_param list
1616type ty_pctor = [ `Int of int | `Named of ty_params ]
1717
1818type 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 ;
2322}
2423
2524and ty_body = [
@@ -48,7 +47,7 @@ let tydecl_as_record (td : tydecl) =
4847 match td.tyd_type with `Record x -> Some x | _ -> None
4948
5049(* -------------------------------------------------------------------- *)
51- let abs_tydecl ?(resolve = true ) ?( tc = Sp. empty) ?(params = `Int 0 ) lc =
50+ let abs_tydecl ?(tc = Sp. empty) ?(params = `Int 0 ) lc =
5251 let params =
5352 match params with
5453 | `Named params ->
@@ -60,7 +59,7 @@ let abs_tydecl ?(resolve = true) ?(tc = Sp.empty) ?(params = `Int 0) lc =
6059 (EcUid.NameGen. bulk ~fmt n)
6160 in
6261
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; }
6463
6564(* -------------------------------------------------------------------- *)
6665let ty_instanciate (params : ty_params ) (args : ty list ) (ty : ty ) =
@@ -137,13 +136,11 @@ and opopaque = { smt: bool; reduction: bool; }
137136type axiom_kind = [`Axiom of (Ssym .t * bool ) | `Lemma ]
138137
139138type 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 ; }
147144
148145let is_axiom (x : axiom_kind ) = match x with `Axiom _ -> true | _ -> false
149146let 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 =
272269 let op = f_app op opargs axbd.f_ty in
273270 let axspec = f_forall args (f_eq op axbd) in
274271
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 ; }
280277
281278(* -------------------------------------------------------------------- *)
282279type typeclass = {
0 commit comments