exception ReferenceToConstant;;
exception ReferenceToCurrentProof;;
exception ReferenceToInductiveDefinition;;
+exception DeliftingWouldCaptureAFreeVariable;;
let debug_print = fun _ -> ()
if m < k then
C.Rel m
else if m < k + n then
- (failwith "delifting this term whould capture free variables")
+ raise DeliftingWouldCaptureAFreeVariable
else
C.Rel (m - n)
| C.Var (uri,exp_named_subst) ->