Skip to content

Commit d2a4dc1

Browse files
committed
Remove unnecessary iprop(...) wrapper
1 parent 7840ec1 commit d2a4dc1

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Iris/Iris/Instances/Lib/FUpd.lean

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ open Lean Elab Tactic Meta Qq Iris.BI Iris Iris.ProofMode
591591
theorem tac_lc_add_laterN_split {GF : BundledGFunctors} [InvGS GF]
592592
{n m newM : Nat} {E : CoPset} {P Q goal : IProp GF}
593593
(inst : AddModal iprop(|={E}=> goal) goal goal)
594-
(h1 : m = n + newM) (h2 : iprop(P ∗ £ newM) ⊢ ▷^[n] Q) (h3 : Q ⊢ goal) :
595-
iprop(P ∗ £ m) ⊢ goal := by
594+
(h1 : m = n + newM) (h2 : P ∗ £ newM ⊢ ▷^[n] Q) (h3 : Q ⊢ goal) :
595+
P ∗ £ m ⊢ goal := by
596596
subst h1
597597
iintro ⟨HP, Hcred⟩
598598
iapply inst.add_modal
@@ -610,16 +610,15 @@ theorem tac_lc_add_laterN_split {GF : BundledGFunctors} [InvGS GF]
610610
theorem tac_lc_add_laterN_full {GF : BundledGFunctors} [InvGS GF]
611611
{m : Nat} {E : CoPset} {P Q goal : IProp GF}
612612
(inst : AddModal iprop(|={E}=> goal) goal goal)
613-
(h2 : P ⊢ ▷^[m] Q) (h3 : Q ⊢ goal) :
614-
iprop(P ∗ £ m) ⊢ goal := by
613+
(h1 : P ⊢ ▷^[m] Q) (h2 : Q ⊢ goal) : P ∗ £ m ⊢ goal := by
615614
iintro ⟨HP, Hcred⟩
616615
iapply inst.add_modal
617616
isplitl
618-
· ihave H := h2 $$ HP
617+
· ihave H := h1 $$ HP
619618
iapply lc_fupd_add_laterN m $$ Hcred
620619
inext
621620
imodintro
622-
iapply h3 $$ H
621+
iapply h2 $$ H
623622
· iintro Hgoal
624623
iassumption
625624

0 commit comments

Comments
 (0)