Skip to content

Commit d27242a

Browse files
committed
Put InteractionTree back as submodule
1 parent 346a062 commit d27242a

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

.github/workflows/coq-action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- 64
2828
make_target:
2929
- vst
30+
exclude:
31+
- coq_version: dev
32+
bit_size: 32
3033
steps:
3134
- uses: actions/checkout@v4
3235
with:

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ CGFLAGS = -DCOMPCERT -short-idents
303303

304304
# ##### Interaction Trees Flags #####
305305

306-
# the following commented out, because we get from opam instead of submodules
307-
# ifneq ($(wildcard InteractionTrees/theories),)
308-
# EXTFLAGS:=$(EXTFLAGS) -Q InteractionTrees/theories ITree
309-
# endif
306+
# as of 1 July 2025, coq-itree package seems not compatible with rocq 9.2+alpha, so still using submodule
307+
ifneq ($(wildcard InteractionTrees/theories),)
308+
EXTFLAGS:=$(EXTFLAGS) -Q InteractionTrees/theories ITree
309+
endif
310310

311311
# ##### FCF (Foundational Cryptography Framework) Flags #####
312312

@@ -329,9 +329,9 @@ endif
329329

330330
# ##### Flag summary #####
331331

332-
COQFLAGS=$(foreach d, $(VSTDIRS), $(if $(wildcard $(d)), -Q $(d) VST.$(d))) $(foreach d, $(OTHERDIRS), $(if $(wildcard $(d)), -Q $(d) $(d))) $(EXTFLAGS) $(SHIM) # -Q ../stdpp/theories stdpp -Q ../iris/iris iris -Q ../fcf/src/fcf FCF
332+
COQFLAGS=$(foreach d, $(VSTDIRS), $(if $(wildcard $(d)), -Q $(d) VST.$(d))) $(foreach d, $(OTHERDIRS), $(if $(wildcard $(d)), -Q $(d) $(d))) $(EXTFLAGS) $(SHIM) # -Q ../stdpp/theories stdpp -Q ../iris/iris iris -Q ../InteractionTrees/theories ITree -Q ../fcf/src/fcf FCF
333333

334-
# old version with InteractionTrees, paco, coq-ext-lib; we now obtain these from opam environment instead of submodules
334+
# old version with paco, coq-ext-lib; we now obtain these from opam environment instead of submodules
335335
# COQFLAGS=$(foreach d, $(VSTDIRS), $(if $(wildcard $(d)), -Q $(d) VST.$(d))) $(foreach d, $(OTHERDIRS), $(if $(wildcard $(d)), -Q $(d) $(d))) $(EXTFLAGS) $(SHIM) # -Q ../stdpp/theories stdpp -Q ../iris/iris iris -Q ../InteractionTrees/theories ITree -Q ../paco/src Paco -Q ../coq-ext-lib/theories ExtLib -Q ../fcf/src/fcf FCF
336336

337337

@@ -929,10 +929,10 @@ endif
929929
# $(COQDEP) -Q coq-ext-lib/theories ExtLib coq-ext-lib/theories >>.depend
930930
# endif
931931

932+
ifneq ($(wildcard InteractionTrees/theories),)
933+
$(COQDEP) -Q InteractionTrees/theories ITree InteractionTrees/theories >>.depend
934+
endif
932935
# the following commented out, because we get from opam instead of submodules
933-
# ifneq ($(wildcard InteractionTrees/theories),)
934-
# $(COQDEP) -Q paco/src Paco -Q InteractionTrees/theories ITree InteractionTrees/theories >>.depend
935-
# endif
936936
# ifneq ($(wildcard paco/src),)
937937
# $(COQDEP) -Q paco/src Paco paco/src/*.v >>.depend
938938
# endif

progs/io_combine.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Require Import VST.concurrency.conclib.
1111
Require Import VST.sepcomp.semantics.
1212
Require Import ITree.ITree.
1313
Require Import ITree.Interp.Traces.
14-
Require Import Ensembles.
14+
From Stdlib Require Import Ensembles.
1515
Require Import VST.progs.io_specs.
1616
Require Import VST.progs.io_dry.
1717
Require Import VST.progs.io_os_specs.

progs/io_os_connection.v

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Require Import List.
2-
Require Import ZArith.
3-
Require Import Psatz.
1+
From Stdlib Require Import List.
2+
From Stdlib Require Import ZArith.
3+
From Stdlib Require Import Psatz.
44
Require Import ITree.ITree.
55
Require Import ITree.Interp.Traces.
66
Require Import compcert.lib.Maps.
@@ -15,6 +15,9 @@ Require Import VST.progs.io_os_specs.
1515
Require Import VST.zlist.sublist.
1616
Require Import VST.progs.os_combine.
1717
Import ExtLib.Structures.Monad.
18+
From Stdlib Require Import FinFun.
19+
20+
Opaque eq_dec.eq_dec.
1821

1922
Local Ltac inj :=
2023
repeat match goal with
@@ -567,15 +570,15 @@ Section Invariants.
567570
NoDup (mkRecvEvents logIdx cs).
568571
Proof.
569572
unfold mkRecvEvents, enumerate; intros.
570-
apply FinFun.Injective_map_NoDup; auto using combine_NoDup, seq_NoDup.
573+
apply Injective_map_NoDup; auto using combine_NoDup, seq_NoDup.
571574
red; intros (? & ?) (? & ?); intros; inj; auto.
572575
Qed.
573576

574577
Lemma Zlength_enumerate {A} : forall (xs : list A),
575578
Zlength (enumerate xs) = Zlength xs.
576579
Proof.
577580
unfold enumerate; intros.
578-
rewrite Zlength_combine, !Zlength_correct, seq_length; lia.
581+
rewrite Zlength_combine, !Zlength_correct, length_seq; lia.
579582
Qed.
580583

581584
Lemma seq_nth_app : forall len start n pre post,
@@ -585,7 +588,7 @@ Section Invariants.
585588
intros * Heq.
586589
enough (n = nth (length pre) (seq start len) O); subst.
587590
{ rewrite Heq, app_nth2, Nat.sub_diag, seq_nth; auto; cbn.
588-
rewrite <- (seq_length len start), Heq, length_app; cbn; lia.
591+
rewrite <- (length_seq len start), Heq, length_app; cbn; lia.
589592
}
590593
rewrite Heq, app_nth2, Nat.sub_diag; auto.
591594
Qed.
@@ -599,7 +602,7 @@ Section Invariants.
599602
rewrite combine_fst, map_app in Heq; cbn in Heq.
600603
apply seq_nth_app in Heq; subst; cbn; auto using length_map.
601604
rewrite <- Nat2Z.id, <- Zlength_length; rewrite <- Zlength_correct.
602-
- rewrite !Zlength_correct, seq_length; auto.
605+
- rewrite !Zlength_correct, length_seq; auto.
603606
- apply Zlength_nonneg.
604607
Qed.
605608

@@ -1913,7 +1916,7 @@ Import functional_base.
19131916
split; auto; cbn in *.
19141917
rewrite Int.signed_repr by (cbn; lia).
19151918
destruct (Coqlib.zeq z1 (-1)); subst; auto.
1916-
if_tac; try easy.
1919+
destruct (eq_dec.eq_dec _ _); try easy.
19171920
rewrite Zle_imp_le_bool by lia.
19181921
destruct Hput as (? & [(? & ?) | (? & ?)]); subst; auto; try lia.
19191922
rewrite Zmod_small; auto; functional_base.rep_lia.

0 commit comments

Comments
 (0)