Skip to content
Snippets Groups Projects
Commit 4d09cd40 authored by Jacques-Henri Jourdan's avatar Jacques-Henri Jourdan
Browse files

Use indexed borrow notation.

parent df4bb25b
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ From lrust.lifetime Require Export derived.
(** Shared bors *)
Definition shr_bor `{invG Σ, lftG Σ} κ (P : iProp Σ) :=
( i, idx_bor κ i P inv lftN ( q, idx_bor_own q i))%I.
( i, &{κ,i}P inv lftN ( q, idx_bor_own q i))%I.
Notation "&shr{ κ } P" := (shr_bor κ P)
(format "&shr{ κ } P", at level 20, right associativity) : uPred_scope.
......
......@@ -4,7 +4,7 @@ From iris.proofmode Require Import tactics.
Definition tl_bor `{invG Σ, lftG Σ, thread_localG Σ}
(κ : lft) (tid : thread_id) (N : namespace) (P : iProp Σ) :=
( i, idx_bor κ i P tl_inv tid N (idx_bor_own 1 i))%I.
( i, &{κ,i}P tl_inv tid N (idx_bor_own 1 i))%I.
Notation "&tl{ κ , tid , N } P" := (tl_bor κ tid N P)
(format "&tl{ κ , tid , N } P", at level 20, right associativity) : uPred_scope.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment