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

Extends and improves tracking sums pattern #252

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
spelling fix
shoham-certora committed Jul 31, 2024
commit 11d4f37bb2d99bf1d25ebee3b2ffd951851bf58a
6 changes: 3 additions & 3 deletions docs/user-guide/patterns/sums.rst
Original file line number Diff line number Diff line change
@@ -115,9 +115,9 @@ as shown below.

.. todo::

* Explain that the :cvl:`require` statement in the hook is equivalent to a forall
statement.
* Explain that the :cvl:`require` statement in the hook is equivalent to a
:cvl:`forall` statement.
* Show this might be unsound - for example if we added balances in the constructor
not through minting.
* A sound approach is proving an invariant that forall addresses :cvl:`totalSupply()`
* A sound approach is proving an invariant that for all addresses :cvl:`totalSupply()`
is greater than :cvl:`balanceOf(address)`.