Skip to content

Commit c2a3f9b

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 da908c2 commit c2a3f9b

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
@@ -63,7 +63,7 @@ let abs_tydecl ?(tc = Sp.empty) ?(params = `Int 0) lc =
6363
{ tyd_params = params; tyd_type = Abstract tc; tyd_loca = lc; }
6464

6565
(* -------------------------------------------------------------------- *)
66-
let ty_instanciate (params : ty_params) (args : ty list) (ty : ty) =
66+
let ty_instantiate (params : ty_params) (args : ty list) (ty : ty) =
6767
let subst = CS.Tvar.init (List.map fst params) args in
6868
CS.Tvar.subst subst ty
6969

src/ecDecl.mli

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

3939
val abs_tydecl : ?tc:Sp.t -> ?params:ty_pctor -> locality -> tydecl
4040

41-
val ty_instanciate : ty_params -> ty list -> ty -> ty
41+
val ty_instantiate : ty_params -> ty list -> ty -> ty
4242

4343
(* -------------------------------------------------------------------- *)
4444
type locals = EcIdent.t list

src/ecEnv.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ module Ax = struct
27842784
let rebind name ax env =
27852785
MC.bind_axiom name ax env
27862786
2787-
let instanciate p tys env =
2787+
let instantiate p tys env =
27882788
match by_path_opt p env with
27892789
| Some ({ ax_spec = f } as ax) ->
27902790
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
@@ -166,7 +166,7 @@ module Ax : sig
166166
val iter : ?name:qsymbol -> (path -> t -> unit) -> env -> unit
167167
val all : ?check:(path -> t -> bool) -> ?name:qsymbol -> env -> (path * t) list
168168

169-
val instanciate : path -> EcTypes.ty list -> env -> form
169+
val instantiate : path -> EcTypes.ty list -> env -> form
170170
end
171171

172172
(* -------------------------------------------------------------------- *)

src/ecFol.mli

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

103103
(* -------------------------------------------------------------------- *)
104104
(* WARNING : this function should be use only in a context ensuring
105-
* that the quantified variables can be instanciated *)
105+
* that the quantified variables can be instantiated *)
106106

107107
val f_betared : form -> form
108108

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
@@ -138,7 +138,7 @@ module LowApply = struct
138138
| PTGlobal (p, tys) ->
139139
(* FIXME: poor API ==> poor error recovery *)
140140
let env = LDecl.toenv (hyps_of_ckenv tc) in
141-
(pt, EcEnv.Ax.instanciate p tys env, subgoals)
141+
(pt, EcEnv.Ax.instantiate p tys env, subgoals)
142142

143143
| PTTerm pt ->
144144
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
@@ -879,7 +879,7 @@ let f_match opts hyps (ue, ev) f1 f2 =
879879
raise MatchFailure;
880880
let clue =
881881
try EcUnify.UniEnv.close ue
882-
with EcUnify.UninstanciateUni -> raise MatchFailure
882+
with EcUnify.UninstantiateUni -> raise MatchFailure
883883
in
884884
(ue, clue, ev)
885885

0 commit comments

Comments
 (0)