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 15
    • Merge requests 15
  • 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
  • !216

WIP: Make `[#]` produce goal with `<pers>` modality if premise is not persistent

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Dan Frumin requested to merge dfrumin/iris-coq:ispecialize_pers into master Feb 17, 2019
  • Overview 15
  • Commits 1
  • Pipelines 0
  • Changes 4

This is my attempt at working towards #186

Currently the iAssert has not been fixed yet, but I would like to see if I am at least going in the right direction. With the modifications you can now use iSpecialize with on persistent hypothesis to produce a persistent result. E.g. the following works:

Lemma test_specialize `{BiBUpd PROP} (P Q : PROP) :
  □ P -∗ □ (P -∗ Q) -∗ □ Q.
Proof.
  iIntros "#HP #H".
  iSpecialize ("H" with "[#]").
  { iIntros "!>". iAssumption. }
  iAssumption.
Qed.

The following works as well:

Lemma test_specialize_2 `{BiBUpd PROP} (P Q : PROP) :
  □ P -∗ □ (□ P -∗ Q) -∗ □ Q.
Proof.
  iIntros "#HP #H".
  iSpecialize ("H" with "[#]").
  { iIntros "!>". iAssumption. }
  iAssumption.
Qed.
Edited Dec 09, 2019 by Robbert Krebbers
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ispecialize_pers