diff options
Diffstat (limited to 'plugins/cc/cctac.ml')
-rw-r--r-- | plugins/cc/cctac.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/cc/cctac.ml b/plugins/cc/cctac.ml index 45d6a9393..364a71d28 100644 --- a/plugins/cc/cctac.ml +++ b/plugins/cc/cctac.ml @@ -78,8 +78,9 @@ let rec decompose_term env sigma t= let canon_const = constant_of_kn (canonical_con c) in (Symb (mkConstU (canon_const,u))) | Proj (p, c) -> - let canon_const = constant_of_kn (canonical_con p) in - (Appli (Symb (mkConst canon_const), decompose_term env sigma c)) + let canon_const kn = constant_of_kn (canonical_con kn) in + let p' = Projection.map canon_const p in + (Appli (Symb (mkConst (Projection.constant p')), decompose_term env sigma c)) | _ ->if closed0 t then (Symb t) else raise Not_found (* decompose equality in members and type *) |