Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tlc4b
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
tlc4b
Commits
f4efe3ed
Verified
Commit
f4efe3ed
authored
1 month ago
by
Miles Vella
Browse files
Options
Downloads
Patches
Plain Diff
Improve type inference of FunctionsAsRelations.tla for TLA2B
parent
0c493167
No related branches found
No related tags found
No related merge requests found
Pipeline
#157765
passed
1 month ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/de/tlc4b/standardModules/FunctionsAsRelations.tla
+2
-2
2 additions, 2 deletions
...sources/de/tlc4b/standardModules/FunctionsAsRelations.tla
with
2 additions
and
2 deletions
src/main/resources/de/tlc4b/standardModules/FunctionsAsRelations.tla
+
2
−
2
View file @
f4efe3ed
------------------------ MODULE FunctionsAsRelations ----------------------------------
EXTENDS FiniteSets, Functions, TLC, Sequences
LOCAL RelDom(f) == { x[1] :x \in f} \* The domain of the function
LOCAL RelRan(f) == {
x
[2] :x \in f} \* The range of the function
LOCAL RelDom(f) == {
<<
x[1]
, x[2]>>[1]
:
x \in f
} \* The domain of the function
, syntax is weird to help TLA2B typechecker
LOCAL RelRan(f) == {
<<x[1], x[2]>>
[2] :
x \in f
} \* The range of the function
, syntax is weird to help TLA2B typechecker
LOCAL MakeRel(f) == {<<x, f[x]>>: x \in DOMAIN f}
\* Converting a TLA+ function to a set of pairs
LOCAL Rel(S, T) == SUBSET (S \times T) \* The set of relations
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment