We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cab55f0 commit d1fdde2Copy full SHA for d1fdde2
docs/user-guide/patterns/sums.rst
@@ -112,3 +112,12 @@ as shown below.
112
113
Note that the :cvl:`Sload` hook adds a require statement for every balance read.
114
One should always be cautious with such require statements, as they can be unsound.
115
+
116
+.. todo::
117
118
+ * Explain that the :cvl:`require` statement in the hook is equivalent to a forall
119
+ statement.
120
+ * Show this might be unsound - for example if we added balances in the constructor
121
+ not through minting.
122
+ * A sound approach is proving an invariant that forall addresses :cvl:`totalSupply()`
123
+ is greater than :cvl:`balanceOf(address)`.
0 commit comments