Skip to content

Commit

Permalink
Merge pull request #2846 from FStarLang/_aseem_core_equatable
Browse files Browse the repository at this point in the history
Use leftmost head when checking for equatable symbols in the core typechecker
  • Loading branch information
aseemr authored Mar 9, 2023
2 parents 9594e8f + afaaa11 commit 1c088bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions ocaml/fstar-lib/generated/FStar_TypeChecker_Core.ml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/typechecker/FStar.TypeChecker.Core.fst
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,7 @@ let no_guard (g:result 'a)
| err -> err

let equatable g t =
let head, _ = U.head_and_args t in
Rel.may_relate_with_logical_guard g.tcenv true head
t |> U.leftmost_head |> Rel.may_relate_with_logical_guard g.tcenv true

let apply_predicate x p = fun e -> Subst.subst [NT(x.binder_bv, e)] p

Expand Down

0 comments on commit 1c088bc

Please sign in to comment.