Skip to content

Commit 7317320

Browse files
committed
introduced constants for true and false
1 parent 559eec7 commit 7317320

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

infseq.v

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,14 @@ Definition or_tl (P Q: infseq T -> Prop) : infseq T -> Prop :=
8989
Definition not_tl (P : infseq T -> Prop) : infseq T -> Prop :=
9090
fun s => ~ P s.
9191

92+
(* constants *)
93+
Definition True_tl : infseq T -> Prop := fun _ => True.
94+
Definition False_tl : infseq T -> Prop := fun _ => False.
95+
9296
End sec_modal_op_defn.
9397

98+
Hint Unfold True_tl False_tl.
99+
94100
Arguments now [T] _ _.
95101
Arguments next [T] _ _.
96102
Arguments consecutive [T] _ _.
@@ -108,6 +114,9 @@ Arguments and_tl [T] _ _ _.
108114
Arguments or_tl [T] _ _ _.
109115
Arguments not_tl [T] _ _.
110116

117+
Arguments True_tl {T} _.
118+
Arguments False_tl {T} _.
119+
111120
Notation "A ->_ B" := (impl_tl A B) (right associativity, at level 90).
112121
Notation "A /\_ B" := (and_tl A B) (right associativity, at level 80).
113122
Notation "A \/_ B" := (or_tl A B) (right associativity, at level 85).
@@ -489,8 +498,8 @@ Lemma eventually_monotonic_simple :
489498
(forall s, P s -> Q s) ->
490499
forall s, eventually P s -> eventually Q s.
491500
Proof.
492-
intros P Q PQ s.
493-
apply (eventually_monotonic P Q (fun s:infseq T => True)); auto.
501+
intros P Q PQ s.
502+
apply (eventually_monotonic P Q True_tl); auto.
494503
Qed.
495504

496505
Lemma inf_often_monotonic :
@@ -669,6 +678,8 @@ unfold not_tl in Js.
669678
case rl; trivial.
670679
Qed.
671680

681+
682+
672683
(* connector facts *)
673684

674685
Lemma and_tl_comm :

map.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Lemma always_map_conv :
202202
forall (s: infseq A), always Q (map f s) -> always P s.
203203
Proof.
204204
intros f P Q QP s.
205-
apply (always_map_conv_ext f P Q (fun _ => True)); auto.
205+
apply (always_map_conv_ext f P Q True_tl); auto.
206206
Qed.
207207

208208
Lemma weak_until_map :

0 commit comments

Comments
 (0)