let constants_no =
MetadataConstraints.StringSet.cardinal (MetadataConstraints.constants_of ty)
in
+ let full_card =
+ if CicUtil.is_meta_closed ty then
+ Some (MetadataConstraints.Eq constants_no)
+ else
+ None (* we already require a set of constants to appear, this additional
+ constraints is useless *)
+(* MetadataConstraints.Gt (constants_no - 1) *)
+ in
let constraints = List.map MetadataTypes.constr_of_metadata metadata in
- Constr.at_least ~dbd ~full_card:(MetadataConstraints.Eq constants_no)
- constraints
+ Constr.at_least ~dbd ?full_card constraints
let ( ** ) x y = int_of_float ((float_of_int x) ** (float_of_int y))
let hyp_constants =
Constr.StringSet.diff (signature_of_hypothesis context) types_constants
in
-Constr.StringSet.iter prerr_endline hyp_constants;
+(* Constr.StringSet.iter prerr_endline hyp_constants; *)
let other_constants = Constr.StringSet.union sig_constants hyp_constants in
let uris =
let pow = 2 ** (Constr.StringSet.cardinal other_constants) in
let hyp_constants =
Constr.StringSet.diff (signature_of_hypothesis context) types_constants
in
-Constr.StringSet.iter prerr_endline hyp_constants;
+(* Constr.StringSet.iter prerr_endline hyp_constants; *)
let other_constants = Constr.StringSet.union sig_constants hyp_constants in
let uris =
let pow = 2 ** (Constr.StringSet.cardinal other_constants) in