aboutsummaryrefslogtreecommitdiff
path: root/engine/eConstr.ml
diff options
context:
space:
mode:
authorHugo Herbelin2018-11-02 21:40:18 +0100
committerHugo Herbelin2018-11-02 21:40:18 +0100
commit4ffb04be9b8829abb0f869fb4fd68156f4a01f95 (patch)
tree3a56067bd3f6961e82f3fa98173294da4910c220 /engine/eConstr.ml
parent2a5b7091ce0748de4b61f196657a1332fe5023b3 (diff)
parent38a2e8c383228e9cb3a3437d981d30a488f5a084 (diff)
Merge PR #8834: [error printing] Fix improper grounding of open terms in printing.
Diffstat (limited to 'engine/eConstr.ml')
-rw-r--r--engine/eConstr.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/eConstr.ml b/engine/eConstr.ml
index 3385b78958..cfc4bea85f 100644
--- a/engine/eConstr.ml
+++ b/engine/eConstr.ml
@@ -99,6 +99,14 @@ let isFix sigma c = match kind sigma c with Fix _ -> true | _ -> false
let isCoFix sigma c = match kind sigma c with CoFix _ -> true | _ -> false
let isCase sigma c = match kind sigma c with Case _ -> true | _ -> false
let isProj sigma c = match kind sigma c with Proj _ -> true | _ -> false
+
+let rec isType sigma c = match kind sigma c with
+ | Sort s -> (match ESorts.kind sigma s with
+ | Sorts.Type _ -> true
+ | _ -> false )
+ | Cast (c,_,_) -> isType sigma c
+ | _ -> false
+
let isVarId sigma id c =
match kind sigma c with Var id' -> Id.equal id id' | _ -> false
let isRelN sigma n c =