X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicSubstitution.ml;h=4a938acb9c209be1cbbab3e338f35c6bbf19538e;hb=a9e833b37216b225262450fd4e3fa5bf79ae4c3a;hp=002ea28df102ecf9c849306017d20d4ef19a37fb;hpb=08a2b1a3f1a1e9af07850089f0e0838eb052223d;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicSubstitution.ml b/helm/ocaml/cic_proof_checking/cicSubstitution.ml index 002ea28df..4a938acb9 100644 --- a/helm/ocaml/cic_proof_checking/cicSubstitution.ml +++ b/helm/ocaml/cic_proof_checking/cicSubstitution.ml @@ -202,7 +202,7 @@ prerr_endline ("@@@POSSIBLE BUG: SUBSTITUTION IS NOT SIMULTANEOUS") ; with Not_found -> let params = - (match CicEnvironment.get_cooked_obj uri with + (match CicEnvironment.get_cooked_obj ~trust:true uri with C.Constant _ -> raise ReferenceToConstant | C.Variable (_,_,_,params) -> params | C.CurrentProof _ -> raise ReferenceToCurrentProof @@ -250,7 +250,7 @@ prerr_endline "---- END\n\n " ; | C.Appl _ -> assert false | C.Const (uri,exp_named_subst') -> let params = - (match CicEnvironment.get_cooked_obj uri with + (match CicEnvironment.get_cooked_obj ~trust:true uri with C.Constant (_,_,_,params) -> params | C.Variable _ -> raise ReferenceToVariable | C.CurrentProof (_,_,_,_,params) -> params @@ -263,7 +263,7 @@ prerr_endline "---- END\n\n " ; C.Const (uri,exp_named_subst'') | C.MutInd (uri,typeno,exp_named_subst') -> let params = - (match CicEnvironment.get_cooked_obj uri with + (match CicEnvironment.get_cooked_obj ~trust:true uri with C.Constant _ -> raise ReferenceToConstant | C.Variable _ -> raise ReferenceToVariable | C.CurrentProof _ -> raise ReferenceToCurrentProof @@ -276,7 +276,7 @@ prerr_endline "---- END\n\n " ; C.MutInd (uri,typeno,exp_named_subst'') | C.MutConstruct (uri,typeno,consno,exp_named_subst') -> let params = - (match CicEnvironment.get_cooked_obj uri with + (match CicEnvironment.get_cooked_obj ~trust:true uri with C.Constant _ -> raise ReferenceToConstant | C.Variable _ -> raise ReferenceToVariable | C.CurrentProof _ -> raise ReferenceToCurrentProof