X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fcontent_pres%2FtermContentPres.ml;h=29845af1ded26666ec2467cd0e1bf22d17862364;hb=84a5fc74efc30a2b2fca18726cf988edd356353e;hp=3ee9e7fe9f90d266d4ba4e158684e0bda3a50634;hpb=046ec6faa84164da05d6ec234e68fd2978e70ecf;p=helm.git diff --git a/helm/software/components/content_pres/termContentPres.ml b/helm/software/components/content_pres/termContentPres.ml index 3ee9e7fe9..29845af1d 100644 --- a/helm/software/components/content_pres/termContentPres.ml +++ b/helm/software/components/content_pres/termContentPres.ml @@ -144,7 +144,7 @@ let pp_ast0 t k = let mk_case_pattern = function Ast.Pattern (head, href, vars) -> - hbox true false (ident_w_href href head :: List.map aux_var vars) + hvbox true false (ident_w_href href head :: List.map aux_var vars) | Ast.Wildcard -> builtin_symbol "_" in let patterns' = @@ -319,7 +319,11 @@ let instantiate21 idrefs env l1 = assert (CicNotationEnv.well_typed ty value); (* INVARIANT *) (* following assertion should be a conditional that makes this * instantiation fail *) - assert (CicNotationEnv.well_typed expected_ty value); + if not (CicNotationEnv.well_typed expected_ty value) then + begin + prerr_endline ("The variable " ^ name ^ " is used with the wrong type in the notation declaration"); + assert false + end; let value = CicNotationEnv.term_of_value value in let value = match expected_ty with