mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-05 19:00:33 -05:00
fix type of is_a
This commit is contained in:
parent
85eef2d117
commit
85314379a5
1 changed files with 3 additions and 2 deletions
|
|
@ -115,7 +115,6 @@ let cstor tst c : Term.t =
|
|||
List.map (fun s -> Lazy.force s.select_ty) (Lazy.force c.cstor_args)
|
||||
in
|
||||
let ty = Term.arrow_l tst ty_args ty_ret in
|
||||
Log.debugf 50 (fun k -> k "cstor %a (ty %a)" Cstor.pp c Term.pp ty);
|
||||
Term.const tst @@ Const.make (Cstor c) ops ~ty
|
||||
|
||||
let select tst s : Term.t =
|
||||
|
|
@ -125,7 +124,9 @@ let select tst s : Term.t =
|
|||
Term.const tst @@ Const.make (Select s) ops ~ty
|
||||
|
||||
let is_a tst c : Term.t =
|
||||
Term.const tst @@ Const.make (Is_a c) ops ~ty:(Term.bool tst)
|
||||
let ty_arg = Lazy.force c.cstor_ty in
|
||||
let ty = Term.arrow tst ty_arg (Term.bool tst) in
|
||||
Term.const tst @@ Const.make (Is_a c) ops ~ty
|
||||
|
||||
let as_data t =
|
||||
match Term.view t with
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue