X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matita%2Fcomponents%2Fbinaries%2Fmatex%2Falpha.ml;h=6420d20c67d92fbb563efa8a08b89fe1cd334a0d;hb=28e8954fbe2e28f01ae918c8d0e0ef34bd84b48f;hp=816edd4a54ab14869b0ddeddc1b696ddd2743744;hpb=d03e9fa5ea709a937148a67fc115d894e5990063;p=helm.git diff --git a/matita/components/binaries/matex/alpha.ml b/matita/components/binaries/matex/alpha.ml index 816edd4a5..6420d20c6 100644 --- a/matita/components/binaries/matex/alpha.ml +++ b/matita/components/binaries/matex/alpha.ml @@ -73,11 +73,9 @@ let get_constant c t = match strip (K.whd c t) with P.sprintf "Type[%s]" (U.string_of_uri u) | C.Sort (C.Type [`CProp, u]) -> P.sprintf "CProp[%s]" (U.string_of_uri u) - | C.Const (R.Ref (u, r)) -> - let ss = K.segments_of_uri u in - let _, _, _, _, obj = E.get_checked_obj G.status u in - let ss, _ = K.name_of_reference ss (obj, r) in - X.rev_map_concat X.id "." "type" ss + | C.Const c -> + let s, _ = K.resolve_reference c in + s | _ -> "" let read l s r = @@ -167,12 +165,13 @@ and proc_terms st ts = let proc_named_term s st t = try let tt = proc_term st t in - if !G.test then begin + if !G.check then begin let _ = K.typeof st.c tt in ok s end; tt with + | E.ObjectNotFound s | T.TypeCheckerFailure s | T.AssertFailure s -> malformed (Lazy.force s)