-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tactics.NamedView: guaranteeing that
pack
does not change top-level…
… ctor
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module NamedViewCtor | ||
|
||
open FStar.Tactics.V2 | ||
module R = FStar.Reflection.V2 | ||
|
||
let not_unsupp (tv:term_view{~(Tv_Unsupp? tv)}) : Tot unit = | ||
let t = pack tv in | ||
assert (~(R.Tv_Unsupp? (R.inspect_ln t))) | ||
|
||
let preserved (t1 t2 : term) : Tot unit = | ||
let t = pack (Tv_App t1 (t2, Q_Explicit)) in | ||
assert (R.Tv_App? (R.inspect_ln t)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters