Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifying subtype_of queries to avoid needless VCs related to proving that a term is a prop #2945

Merged
merged 4 commits into from
May 31, 2023

Conversation

nikswamy
Copy link
Collaborator

Simplifies subtype_of t unit to True when t is a sub-singleton

let t12_1 (b:bool) = pure (b2t b)
let t13 (a:Type) = pure (hasEq a)
let t14 (a:Type) (x y:a) = pure (x << y)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added testcases. These are the kinds of of prop-queries that would previously go to Z3, but are now simplified within F*

@nikswamy nikswamy merged commit b0e9734 into master May 31, 2023
@nikswamy nikswamy deleted the nik_simplify_subtype_of_unit branch May 31, 2023 20:34
nikswamy referenced this pull request in FStarLang/steel Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants