Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. Error:
  2. Illegal application:
  3. The term "ty_syn_ch_func_clause_17_clause_1_clause_1_ty_defs_func_ind" of type
  4. "forall (DS : decs) (ds : defs) (x : atom),
  5. def_dec_maps (open x ds) (open x DS) ->
  6. forall (G : env) (tm : typing_mode),
  7. (fun v : atom =>
  8. v
  9. `notin` union
  10. (union (dom G)
  11. (union (fv_values fv_typ G) (union (fv_decs DS) (fv_defs ds))))
  12. match tm with
  13. | inl V => AtomSetProperties.of_list V
  14. | inr T => fv T
  15. end) x ->
  16. forall (x0 : atom) (ds' : defs) (DS' : decs),
  17. env -> def_dec_maps ds' DS' -> tail_of ds' (open x0 ds) -> TcE unit -> Prop"
  18. cannot be applied to the terms
  19. "DS" : "decs"
  20. "ds" : "defs"
  21. "x" : "atom"
  22. "m" : "def_dec_maps (open x ds) (open x DS)"
  23. "G" : "env"
  24. "tm" : "typing_mode"
  25. "wildcard"
  26. : "x
  27. `notin` union
  28. (union (dom G)
  29. (union (fv_values fv_typ G) (union (fv_decs DS) (fv_defs ds))))
  30. match tm with
  31. | inl V => AtomSetProperties.of_list V
  32. | inr T => fv T
  33. end"
  34. "fun (x : env) (x0 : trm) (x1 : typing_mode)
  35. (_ : trm_struct_measure x0 < trm_struct_measure (trm_val ([DS ]{ ds}))) =>
  36. ty_syn_ch_func x x0 x1"
  37. : "env ->
  38. forall (x0 : trm) (x1 : typing_mode),
  39. trm_struct_measure x0 < trm_struct_measure (trm_val ([DS ]{ ds})) ->
  40. TcE (tm_result x1)"
  41. "ty_syn_ch_func_obligations_obligation_2 x0" : "atom"
  42. "ds0" : "defs"
  43. "DS0" : "decs"
  44. "G'" : "env"
  45. "d" : "def_dec_maps ds0 DS0"
  46. "ty_syn_ch_func_obligations_obligation_3 ds x0 tl"
  47. : "tail_of ds0 (open (ty_syn_ch_func_obligations_obligation_2 x0) ds)"
  48. "ty_syn_ch_func_clause_17_clause_1_clause_1_ty_defs_func m G tm wildcard
  49. (fun (x : env) (x0 : trm) (x1 : typing_mode)
  50. (_ : trm_struct_measure x0 < trm_struct_measure (trm_val ([DS ]{ ds}))) =>
  51. ty_syn_ch_func x x0 x1) (ty_syn_ch_func_obligations_obligation_2 x0) G' d
  52. (ty_syn_ch_func_obligations_obligation_3 ds x0 tl)" : "TcE unit"
  53. The 8th term has type
  54. "env ->
  55. forall (x0 : trm) (x1 : typing_mode),
  56. trm_struct_measure x0 < trm_struct_measure (trm_val ([DS ]{ ds})) ->
  57. TcE (tm_result x1)" which should be coercible to "atom".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement