) metasenv'
in
let bo' = subst_in bo in
- let newproof = uri,metasenv'',bo',ty in
+ (* Metavariables can appear also in the *statement* of the theorem
+ * since the parser does not reject as statements terms with
+ * metavariable therein *)
+ let ty' = subst_in ty in
+ let newproof = uri,metasenv'',bo',ty' in
(newproof, metasenv'')
(*CSC: commento vecchio *)
let subst_meta_and_metasenv_in_proof proof meta subst_in newmetasenv =
let (uri,_,bo,ty) = proof in
let bo' = subst_in bo in
+ (* Metavariables can appear also in the *statement* of the theorem
+ * since the parser does not reject as statements terms with
+ * metavariable therein *)
+ let ty' = subst_in ty in
let metasenv' =
List.fold_right
(fun metasenv_entry i ->
| _ -> i
) newmetasenv []
in
- let newproof = uri,metasenv',bo',ty in
+ let newproof = uri,metasenv',bo',ty' in
(newproof, metasenv')