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

Removing hints #523

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Removing hints #523

merged 4 commits into from
Jan 17, 2025

Conversation

nikswamy
Copy link
Contributor

Following F* PRs FStarLang/FStar#3440 and FStarLang/FStar#3680

This PR removes all hints files from the Karamel repo and updates the Makefiles to use the --ext context_pruning flag instead.

With this flag, F* prunes away SMT assertions that cannot be triggered by symbols in the query, making hints/unsat-core replay mostly unnecessary.

We have been using this feature in the F*, Pulse, EverParse, and other related repos for a few months now, and recently removed all hints from the F* repo.

Could this be a simplification for Karamel too? If so, we could also remove the hint-refresh CI jobs.

Copy link
Contributor

@msprotz msprotz left a comment

Choose a reason for hiding this comment

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

Great. Hints have always been a band-aid and I'll be happy to see them go. A few thoughts:

  1. there is no hints-refresh job on this repo, no need to worry about that
  2. the proofs for these files were never substantial, and we never reached the size (like in HACL*) where the files would start triggering unreliable z3 behavior, so hints were never crucial for verification
  3. speaking of HACL*, does the repo verify without hints and with the new option? if so, I'd be happy to take a PR there

thanks!

@msprotz msprotz enabled auto-merge January 17, 2025 17:36
@msprotz msprotz merged commit a02d57f into master Jan 17, 2025
2 checks passed
@msprotz msprotz deleted the nik_no_hints branch January 17, 2025 18:12
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