in
aux term
+(*
let pack terms =
List.fold_right
(fun term acc -> Cic.Prod (Cic.Anonymous, term, acc))
| Cic.Prod (Cic.Anonymous, term, Cic.Sort (Cic.Type _)) -> [term]
| Cic.Prod (Cic.Anonymous, term, tgt) -> term :: unpack tgt
| _ -> assert false
+*)
let rec strip_prods n = function
| t when n = 0 -> t