Skip to content

Commit

Permalink
add missing language tags
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Oct 9, 2023
1 parent 5c530d2 commit 05e6a63
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -78,7 +78,7 @@ check MergeIsIdempotent {

Great! Alloy can't find any errors with `OR`.[^4] We expected that, so let's break it in interesting ways. What if the merge function was `XOR(bool, bool)`[^5] instead?

```
```alloy
fun merge[a, b: Bool]: Bool {
a = b implies False else True
}
Expand Down Expand Up @@ -184,7 +184,7 @@ In case you're encountering them for the first time, these diagrams are generate

Alloy can do more than this, too. If we modify our condition to have 3 distinct documents like this:

```
```alloy
check SyncIsIdempotent {
always all disj d1, d2, d3: Document |
(sync[d1, d2]; sync[d2, d3]) implies value' = value''
Expand Down

0 comments on commit 05e6a63

Please sign in to comment.