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 14
    • Merge requests 14
  • 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
  • !771

Draft: Add simplification machinery for ✓ and ≼.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Ike Mulder requested to merge snyke7/iris:ike/own-validity into master Jan 10, 2022
  • Overview 18
  • Commits 14
  • Pipelines 7
  • Changes 25

This merge request partially addresses issue #251 .

Concretely, this merge request adds an iCombineOwn tactic. In the following environment:

"Hγ1" : own γ (q1, GSet E1)
"Hγ2" : own γ (q2, GSet E2)

executing iCombineOwn "Hγ1 Hγ2" as "Hγ" gives %[Hq HE] should replace "Hγ1" and "Hγ2" with a new hypothesis "Hγ" : own γ (q1 + q2, GSet (E1 ∪ E2)) and two pure hypotheses: Hq : q1 + q2 ≤ 1 and HE : E1 ## E2.

The "as" clause is optional. This is especially useful when you want to combine validity information for a ● and a ◯. In the following environment:

"Hγ1" : own γ (◯ (Some (q1, GSet E1)))
"Hγ2" : own γ (● (Some (q2, GSet E2)))

executing iCombineOwn "Hγ1 Hγ2" gives %H should give you a new pure hypotheses H : q1 ≤ q2 ∧ E1 ⊆ E2 ∧ ((q1 < q2) ∨ (q1 ≡ q2 ∧ E1 ≡ E2)).

It works by adding three typeclasses, IsValidOp, IsValidGives and IsIncluded, which try to determine an iProp that simplifies ✓ or ≼. Since we are looking for an iProp, not a pure proposition, this approach also works for higher-order ghost state.

Some current issues:

  • Does not simplify equivalences. If directly using rewrites in introduction patterns, may cause slowdowns. Currently an explicit %leibniz_equiv on the equality is needed for faster rewrites.
  • Some lemmas I used on validity and equivalence of views are still lying around in an awkward place.
  • Documentation is missing
  • Does not yet have instances for all CMRA building blocks provided in iris/algebra, but at least supports the ones used inside the iris repository, and some others I have used in the past.

Feedback is most welcome! I wasn't really sure where to place some of this stuff, so it currently resides in iris/base_logic/.

Edited Jan 19, 2022 by Ike Mulder
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ike/own-validity