Skip to content

Commit fe1bc33

Browse files
committed
fix: correct spelling of 'instantiate'
The spelling 'instanciate' is only acknowledged in the Wiktionary, while all other dictionaries prefer the spelling with a 't'. ex.: https://dictionary.cambridge.org/dictionary/english/instantiate
1 parent 583cdf5 commit fe1bc33

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

src/ecCoreSubst.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type mod_extra = {
1414
mex_glob : memory -> form;
1515
}
1616

17-
type sc_instanciate = {
17+
type sc_instantiate = {
1818
sc_memtype : memtype;
1919
sc_mempred : mem_pr Mid.t;
2020
sc_expr : expr Mid.t;

src/ecCoreSubst.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ open EcCoreModules
88
open EcCoreFol
99

1010
(* -------------------------------------------------------------------- *)
11-
type sc_instanciate = {
11+
type sc_instantiate = {
1212
sc_memtype : memtype;
1313
sc_mempred : mem_pr Mid.t;
1414
sc_expr : expr Mid.t;

src/ecDecl.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ let abs_tydecl ?(tc = Sp.empty) ?(params = `Int 0) lc =
6868
{ tyd_params = params; tyd_type = Abstract tc; tyd_loca = lc; }
6969

7070
(* -------------------------------------------------------------------- *)
71-
let ty_instanciate (params : ty_params) (args : ty list) (ty : ty) =
71+
let ty_instantiate (params : ty_params) (args : ty list) (ty : ty) =
7272
let subst = CS.Tvar.init (List.map fst params) args in
7373
CS.Tvar.subst subst ty
7474

src/ecDecl.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ val tydecl_as_record : tydecl -> (form * (EcSymbols.symbol * EcTypes.ty) list)
4343

4444
val abs_tydecl : ?tc:Sp.t -> ?params:ty_pctor -> locality -> tydecl
4545

46-
val ty_instanciate : ty_params -> ty list -> ty -> ty
46+
val ty_instantiate : ty_params -> ty list -> ty -> ty
4747

4848
(* -------------------------------------------------------------------- *)
4949
type locals = EcIdent.t list

src/ecEnv.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ module Ax = struct
28152815
let rebind name ax env =
28162816
MC.bind_axiom name ax env
28172817
2818-
let instanciate p tys env =
2818+
let instantiate p tys env =
28192819
match by_path_opt p env with
28202820
| Some ({ ax_spec = f } as ax) ->
28212821
Tvar.f_subst ~freshen:true (List.map fst ax.ax_tparams) tys f

src/ecEnv.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module Ax : sig
168168
val iter : ?name:qsymbol -> (path -> t -> unit) -> env -> unit
169169
val all : ?check:(path -> t -> bool) -> ?name:qsymbol -> env -> (path * t) list
170170

171-
val instanciate : path -> EcTypes.ty list -> env -> form
171+
val instantiate : path -> EcTypes.ty list -> env -> form
172172
end
173173

174174
(* -------------------------------------------------------------------- *)

src/ecFol.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ val f_ty_app : EcEnv.env -> form -> form list -> form
116116

117117
(* -------------------------------------------------------------------- *)
118118
(* WARNING : this function should be use only in a context ensuring
119-
* that the quantified variables can be instanciated *)
119+
* that the quantified variables can be instantiated *)
120120

121121
val f_betared : form -> form
122122

src/ecHiInductive.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ let trans_datatype (env : EcEnv.env) (name : ptydname) (dt : pdatatype) =
132132
let tdecl = EcEnv.Ty.by_path_opt tname env0
133133
|> odfl (EcDecl.abs_tydecl ~params:(`Named tparams) lc) in
134134
let tyinst () =
135-
fun ty -> ty_instanciate tdecl.tyd_params targs ty in
135+
fun ty -> ty_instantiate tdecl.tyd_params targs ty in
136136

137137
match tdecl.tyd_type with
138138
| Abstract _ ->

src/ecLowGoal.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module LowApply = struct
168168
| PTGlobal (p, tys) ->
169169
(* FIXME: poor API ==> poor error recovery *)
170170
let env = LDecl.toenv (hyps_of_ckenv tc) in
171-
(pt, EcEnv.Ax.instanciate p tys env, subgoals)
171+
(pt, EcEnv.Ax.instantiate p tys env, subgoals)
172172

173173
| PTTerm pt ->
174174
let pt, ax, subgoals = check_ `Elim pt subgoals tc in

src/ecMatching.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ let f_match opts hyps (ue, ev) f1 f2 =
915915
raise MatchFailure;
916916
let clue =
917917
try EcUnify.UniEnv.close ue
918-
with EcUnify.UninstanciateUni -> raise MatchFailure
918+
with EcUnify.UninstantiateUni -> raise MatchFailure
919919
in
920920
(ue, clue, ev)
921921

0 commit comments

Comments
 (0)