Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions rocq-brick-libstdcpp/proof/iostream/itree_prop.v
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ Section interp_itree.
#[local]
Instance interp_do_body_contractive {T} {K : T -> PROP} : Contractive (interp_do_body K).
Proof using PROP_LATER.
repeat intro.
intros ??? Hdist x0.
destruct x0; simpl; try eauto.
{ apply later_contractive. constructor.
intros. apply H. done. }
{ eapply do_ne. done.
intro. apply bi.exist_ne; intro. apply bi.sep_ne. done. apply later_contractive.
constructor; intros; apply H; done. }
intros. apply Hdist. done. }
{ eapply do_ne => //.
intro.
do 3 f_equiv => //.
apply later_contractive.
by constructor; intros; apply Hdist. }
Qed.

Definition interp_itree {T} (it : itree E T) (K : T -> PROP) : PROP :=
Expand Down
13 changes: 9 additions & 4 deletions rocq-brick-libstdcpp/test/g4g/prelude.v
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ Section to_spectra.
iSplitR.
{ iPureIntro.
intros. destruct ANY_STEP.
inversion H0; subst. edestruct _safe0. done. intuition; eauto. }
inversion H0; subst.
edestruct _safe0; first by [].
intuition; eauto. }
iIntros (?) "[% Hfrag]". iMod "Hclose".
work.
iApply bupd_fupd.
Expand Down Expand Up @@ -296,7 +298,9 @@ Section to_spectra.
{ iPureIntro. split.
{ apply AnyStep_invert_nonempty in ANY_STEP. tauto. }
intros. destruct ANY_STEP.
inversion H1; subst. edestruct _safe0. done. intuition; eauto. }
inversion H1; subst.
edestruct _safe0; first by [].
intuition; eauto. }
iIntros (?) "[% Hfrag]". iMod "Hclose".
work.
iApply bupd_fupd.
Expand Down Expand Up @@ -473,8 +477,9 @@ Proof.
have->: (BS.String b str ++ rest = BS.String b (str ++ rest))%bs by done.
constructor => //. }
{ inversion 1; subst.
eexists _; split. set_solver.
constructor. } } }
eexists _; split.
- set_solver.
- constructor. } } }
Qed.

#[global]
Expand Down