Skip to content

Commit

Permalink
try revise pretyping axiom
Browse files Browse the repository at this point in the history
  • Loading branch information
nikswamy committed Apr 24, 2024
1 parent ab0ee5f commit 630aadd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
13 changes: 11 additions & 2 deletions ocaml/fstar-lib/generated/FStar_SMTEncoding_Encode.ml

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

17 changes: 11 additions & 6 deletions ocaml/fstar-lib/generated/FStar_SMTEncoding_Term.ml

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

3 changes: 2 additions & 1 deletion src/smtencoding/FStar.SMTEncoding.Encode.fst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ let pretype_axiom rng env tapp vars =
let tapp_hash = Term.hash_of_term tapp in
let module_name = env.current_module_name in
Util.mkAssume(mkForall rng ([[xx_has_type]], mk_fv (xxsym, Term_sort)::mk_fv (ffsym, Fuel_sort)::vars,
mkImp(xx_has_type, mkEq(tapp, mkApp("PreType", [xx])))),
mkImp(xx_has_type, mkEq(mkApp ("Term_constr_id", [tapp]),
mkApp ("Term_constr_id", [mkApp("PreType", [xx])])))),
Some "pretyping",
(varops.mk_unique (module_name ^ "_pretyping_" ^ (BU.digest_of_string tapp_hash))))

Expand Down

0 comments on commit 630aadd

Please sign in to comment.