Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Iris Iris
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 171
    • Issues 171
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Iris
  • IrisIris
  • Merge requests
  • !750

Flip atomic updates quantifiers compared to atomic triples

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Paolo G. Giarrusso requested to merge Blaisorblade/iris:atomic-flip into master Nov 09, 2021
  • Overview 21
  • Commits 2
  • Pipelines 6
  • Changes 7

Originally suggested by Gregory Malecha (a while ago), and recently discussed with @haidang.

Quantifiers in atomic triples make perfect sense, but AUs and AAUUs are more confusing when used directly: there, ∃ actually means ∀, and viceversa.

In this proposal, <<< ∀ x, P x >>> e <<< ∃ y, Q x y, RET f x y >>> expands to ∀ Φ, AU << ∃ x, P x >> ... << ∀ y, Q x y COMM Φ (f x y) >> -* WP e {{ Φ }}; then the quantifiers in AUs match the definition and convey the right intuition.

One might fear this is inconsistent. But expanding triples moves quantifiers to the left of a wand, so flipping their polarity follows the tradition from (dependent) currying: (∀ x, P x -∗ Q) ⊣⊢ ((∃ x, P x) -∗ Q).

(Tested locally with dune and Coq 8.13.2).


FWIW, @swasey and @haidang also brought up arguments about caller/callee views, and about the TaDa logic. However, this MR preserves the notation for atomic triples (which agrees with TaDa), and TaDa rules seem to have similar quantifier flipping from a very superficial look (but no, I don't understand everything in flight). Finally, existentials are existentials both at introduction and elimination time; I think the only polarity flip is the one above — atomic triples use AUs in negative position.

image image

Edited Nov 09, 2021 by Paolo G. Giarrusso
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: atomic-flip