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

Expand docs to illustrate how the modes work together #1377

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Conversation

parno
Copy link
Collaborator

@parno parno commented Jan 9, 2025

Implement's @Chris-Hawblitzel's suggestion from #1354 of using Chapter 4's triangle example at the end of Chapter 3 to illustrate how the different modes all work together.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

we [assert](proof_functions.md#assert-by) that the new sum fits, and as
justification, we an invoke our proof with the relevant arguments. At the
call site, Verus will check that the preconditions for `triangle_is_monotonic`
hold and then assume that the postdconditions hold.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor typo: Extra "d" in "postdconditions".

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thanks!

Copy link
Collaborator

@jaylorch jaylorch left a comment

Choose a reason for hiding this comment

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

Thanks! It looks good to me, besides the very minor typo I pointed out.

@parno parno merged commit 716aaa5 into main Jan 16, 2025
11 checks passed
@parno parno deleted the modes-example branch January 16, 2025 02:01
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