Skip to content

Significance of Parameter-less Operators? #94

Description

@iinuwa

Thank you so much for creating this website!

In the "Parameterizing Specs" chapter,

Is there significance to leaving the s parameter on the IsUnique operator?

   IsUnique(s) == 
     \A i, j \in 1..Len(s): 
-      i # j => s[i] # s[j]
+      i # j => seq[i] # seq[j] 

Since the operator no longer depends on s (since Len(s) = Len(seq)), is there any reason why we should not drop the entire parameter?

-  IsUnique(s) == 
-    \A i, j \in 1..Len(s): 
-      i # j => s[i] # s[j]
+  IsUnique == 
+    \A i, j \in 1..Len(seq): 
+      i # j => seq[i] # seq[j] 

I'm not sure if this is stylistic, or is a requirement for TLA+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions