X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcic_proof_checking%2FfreshNamesGenerator.ml;h=daa0e5432a43cf1d12e6daa1e33740fe70fb0564;hb=d2d20cd33c42d0897765387042c3779109bbf4fd;hp=1cb86b35abfad49738f4d79f8fb8c2c7490e3b8a;hpb=cc23f034c9419186602d9250456241f2eba90d7c;p=helm.git diff --git a/helm/software/components/cic_proof_checking/freshNamesGenerator.ml b/helm/software/components/cic_proof_checking/freshNamesGenerator.ml index 1cb86b35a..daa0e5432 100755 --- a/helm/software/components/cic_proof_checking/freshNamesGenerator.ml +++ b/helm/software/components/cic_proof_checking/freshNamesGenerator.ml @@ -30,7 +30,7 @@ let debug_print = fun _ -> () let rec higher_name arity = function Cic.Sort Cic.Prop - | Cic.Sort Cic.CProp -> + | Cic.Sort (Cic.CProp _) -> if arity = 0 then "A" (* propositions *) else if arity = 1 then "P" (* predicates *) else "R" (*relations *) @@ -87,7 +87,7 @@ let mk_fresh_name ~subst metasenv context name ~typ = in (match ty with C.Sort C.Prop - | C.Sort C.CProp -> "H" + | C.Sort (C.CProp _) -> "H" | _ -> guess_a_name context typ ) with CicTypeChecker.TypeCheckerFailure _ -> "H"