Skip to content

Commit 82c011e

Browse files
committed
adapted ForAll_coind from Streams
1 parent c97a077 commit 82c011e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

infseq.v

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ Variable T : Type.
108108

109109
(* always facts *)
110110

111+
Lemma always_inv :
112+
forall (inv: infseq T -> Prop),
113+
(forall x s, inv (Cons x s) -> inv s) -> forall s, inv s -> always inv s.
114+
Proof.
115+
intros P invP.
116+
cofix c.
117+
intros [x s] Pxs; apply Always; trivial.
118+
apply c; apply invP in Pxs.
119+
assumption.
120+
Qed.
121+
111122
Lemma always_Cons :
112123
forall (x: T) (s: infseq T) P,
113124
always P (Cons x s) -> P (Cons x s) /\ always P s.
@@ -563,6 +574,7 @@ Qed.
563574

564575
End sec_modal_op_lemmas.
565576

577+
Implicit Arguments always_inv [T s inv].
566578
Implicit Arguments always_Cons [T x s P].
567579
Implicit Arguments always_now [T x s P].
568580
Implicit Arguments always_invar [T x s P].

0 commit comments

Comments
 (0)