@@ -66,8 +66,8 @@ let check_ln (g:env) (label:string) (t:R.term) : Tac unit =
6666let rtb_core_compute_term_type g f e =
6767 debug g ( fun _ ->
6868 Printf. sprintf " (%s) Calling core_compute_term_type on %s"
69- ( T. range_to_string ( RU. range_of_term e ))
70- ( T. term_to_string e ));
69+ ( show ( RU. range_of_term e ))
70+ ( show e ));
7171 let res = RU. with_context ( get_context g ) ( fun _ -> RTB. core_compute_term_type f e ) in
7272 res
7373
@@ -76,17 +76,17 @@ let rtb_tc_term g f e =
7676 let e = RU. deep_transform_to_unary_applications e in
7777 debug g ( fun _ ->
7878 Printf. sprintf " (%s) Calling tc_term on %s"
79- ( T. range_to_string ( RU. range_of_term e ))
80- ( T. term_to_string e ));
79+ ( show ( RU. range_of_term e ))
80+ ( show e ));
8181 let res = RU. with_context ( get_context g ) ( fun _ -> RTB. tc_term f e ) in
8282 res
8383
8484let rtb_universe_of ( g : env ) ( f : T. env ) ( e : T. term )
8585: T. Tac ( option ( u : T. universe { typing_token f e ( E_Total , T. pack_ln ( Tv_Type u ))}) & issues )
8686= debug g ( fun _ ->
8787 Printf. sprintf " (%s) Calling universe_of on %s"
88- ( T. range_to_string ( RU. range_of_term e ))
89- ( T. term_to_string e ));
88+ ( show ( RU. range_of_term e ))
89+ ( show e ));
9090 let res = RU. with_context ( get_context g ) ( fun _ -> RTB. universe_of f e ) in
9191 res
9292
@@ -100,17 +100,17 @@ let universe_of_well_typed_term_internal (g:env) (f:T.env) (e: T.term)
100100let rtb_check_subtyping g ( t1 t2 : term ) : Tac ( ret_t ( subtyping_token g t1 t2 )) =
101101 debug g ( fun _ ->
102102 Printf. sprintf " (%s, %s) Calling check_subtyping on %s <: %s"
103- ( T. range_to_string ( RU. range_of_term t1 ))
104- ( T. range_to_string ( RU. range_of_term t2 ))
105- ( P. term_to_string t1 )
106- ( P. term_to_string t2 ));
103+ ( show ( RU. range_of_term t1 ))
104+ ( show ( RU. range_of_term t2 ))
105+ ( show t1 )
106+ ( show t2 ));
107107 let f = elab_env_with_range g None in
108108 let res = RU. with_context ( get_context g ) ( fun _ -> RTB. check_subtyping f t1 t2 ) in
109109 res
110110
111111let rtb_instantiate_implicits g f t expected inst_extra =
112112 debug g ( fun _ -> Printf. sprintf " Calling instantiate_implicits on %s"
113- ( T. term_to_string t ));
113+ ( show t ));
114114 (* WARN: unary dependence, see comment in RU *)
115115 let t = RU. deep_transform_to_unary_applications t in
116116 let res , iss = RU. with_context ( get_context g ) ( fun _ -> RTB. instantiate_implicits f t expected inst_extra ) in
@@ -151,8 +151,8 @@ let rtb_check_prop_validity (g:env) (sync:bool) (f:_{f == elab_env g }) (p:_) (p
151151 in
152152 debug g ( fun _ ->
153153 Printf. sprintf " (%s) Calling check_prop_validity on %s"
154- ( T. range_to_string ( RU. range_of_term p ))
155- ( T. term_to_string p ));
154+ ( show ( RU. range_of_term p ))
155+ ( show p ));
156156 let sp = mk_squash0 p in
157157 let _ : squash ( typing_token f sp ( E_Total , (` prop ))) = magic () in //squash typing
158158 let res , issues =
@@ -178,7 +178,7 @@ let catch_all (f:unit -> Tac (option 'a & issues))
178178
179179let readback_failure ( s : R. term ) =
180180 Printf. sprintf " Internal error: failed to readback F* term %s"
181- ( T. term_to_string s )
181+ ( show s )
182182
183183(* Set got_typ = None if we don't have a good type for `t`.
184184Note that calling this with None for expected_typ, but Some _ for got_typ
@@ -347,8 +347,8 @@ let compute_term_type (g:env) (t:term)
347347 = let rng , fg = elab_env_with_term_range g t in
348348 debug g ( fun _ ->
349349 Printf. sprintf " check_tot : called on %s elaborated to %s"
350- ( P. term_to_string t )
351- ( T. term_to_string t ));
350+ ( show t )
351+ ( show t ));
352352 let res , issues = tc_meta_callback g fg t in
353353 match res with
354354 | None ->
@@ -595,7 +595,7 @@ let try_get_non_informative_witness_aux (g:env) (u:universe) (ty:term) (ty_typin
595595 | None , issues ->
596596 None , issues
597597 | Some r_dict , issues -> (
598- // T.print (Printf.sprintf "Resolved to %s" (T.term_to_string r_dict));
598+ // T.print (Printf.sprintf "Resolved to %s" (show r_dict));
599599 assert ( typing_token r_env r_dict ( E_Total , goal ));
600600 assume (~( Tv_Unknown ? ( inspect_ln r_dict )));
601601 let dict = wr r_dict ( RU. range_of_term ty ) in
@@ -711,4 +711,4 @@ let norm_well_typed_term_alt
711711 = let (| t , ty , rel |) = RU. norm_well_typed_term ty steps in
712712 (| t , ty , rel |)
713713 in
714- RU. record_stats " Pulse.norm_well_typed_term_alt" aux
714+ RU. record_stats " Pulse.norm_well_typed_term_alt" aux
0 commit comments