Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
iris-atomic
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • FP
  • iris-atomic
  • Merge Requests
  • !1

Merged
Opened Nov 01, 2016 by Ralf Jung@jung
  • Report abuse
Report abuse

Simpler syncer specs

This simplifies the syncer specs. The sequential syncer only is slightly improved, by changing

  Definition synced R (f' f: val) :=
    (□ ∀ P Q (x: val), ({{ R ★ P x }} f x {{ v, R ★ Q x v }}) →
                       ({{ P x }} f' x {{ v, Q x v }}))%I.

such that P, Q don't factor in a dependency on x any more. Since all three are quantified at the same time, the two specs are equivalent -- and the one where P is not a predicate and Q is exactly the postcondition is arguably simpler:

  Definition synced R (f f': val) :=
    (□ ∀ P Q (x: val), ({{ R ★ P }} f x {{ v, R ★ Q v }}) →
                       ({{ P }} f' x {{ Q }}))%I.

For the atomic spec, the changes are deeper. The currying on some location l is entirely removed. is_atomic_syncer better mirrors is_syncer from the sequential version. And finally, we use "original" atomic triples and not some modified version thereof (so atomic_triple_base is killed).

TODO: Fix atomic_pcas.v, it relied on the location currying done by atomic_sync.v. However, I don't entirely grok that file. @zhangz could you give that a look?

  • Discussion 11
  • Commits 3
  • Changes 10
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: FP/iris-atomic!1

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.