You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: apps/nextra/pages/en/build/smart-contracts/prover/spec-lang.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -837,11 +837,11 @@ module 0x42::m {
837
837
}
838
838
```
839
839
840
-
Notice that type parameters are supported in global invariants. For example:
840
+
Notice that type parameters are supported in global invariants. For example, the invariant above can be rewritten into the below one if `Counter` is generic:
841
841
842
842
```move
843
843
module addr::M {
844
-
invariant<Y> forall addr: address where exists<R<Y>>(addr): exists<T<Y>>(addr);
844
+
invariant<T> forall a: addr where exists<Counter<T>>(a): global<Counter<T>>(a).value > 0;
0 commit comments