This commit is contained in:
Michael Zhang 2024-12-27 03:19:22 -05:00
parent d9289b88b2
commit bbfcf9c49f

View file

@ -96,7 +96,8 @@ module _ { c time time₁ time₂ : Level} (TimeOrder : StrictTot
apply2 : (o1 o2 : op) (t1 t2 : Time) → A → A
-- The property that applying changes must be commutative.
comm : (a : A) → (o1 o2 : op) (t1 t2 : Time) → apply2 o1 o2 t1 t2 a ≡ apply2 o2 o1 t2 t1 a
comm : (a : A) → (o1 o2 : op) (t1 t2 : Time)
→ apply2 o1 o2 t1 t2 a ≡ apply2 o2 o1 t2 t1 a
```
I think in reality it would be the job of `op` to store the time, rather than the entire `isCRDT`, but this is the way I wrote it :sob: