@@ -12,10 +12,12 @@ CoFixpoint map (f: A->B) (s: infseq A): infseq B :=
1212 end .
1313
1414Lemma map_Cons: forall (f:A->B) x s, map f (Cons x s) = Cons (f x) (map f s).
15+ Proof .
1516intros. pattern (map f (Cons x s)). rewrite <- recons. simpl. reflexivity.
1617Qed .
1718
18- End sec_map.
19+ End sec_map.
20+
1921Implicit Arguments map [A B].
2022Implicit Arguments map_Cons [A B].
2123
@@ -41,7 +43,7 @@ Implicit Arguments zip [A B].
4143Implicit Arguments zip_Cons [A B].
4244
4345(* --------------------------------------------------------------------------- *)
44- (* map and_tl temporal logic *)
46+ (* map and_tl temporal logic *)
4547
4648Section sec_map_modalop.
4749
@@ -293,45 +295,45 @@ genclear efst. apply extensional_eventually.
293295 apply exteq_fst_zip.
294296Qed .
295297
296- Lemma continuously_map :
298+ Lemma inf_often_map :
297299 forall (f: A->B) (P: infseq A->Prop) (Q: infseq B->Prop),
298300 (forall s, P s -> Q (map f s)) ->
299- forall (s: infseq A), continuously P s -> continuously Q (map f s).
301+ forall (s: infseq A), inf_often P s -> inf_often Q (map f s).
300302Proof .
301303intros f P Q PQ.
302- apply eventually_map ; apply always_map ; assumption.
304+ apply always_map ; apply eventually_map ; assumption.
303305Qed .
304306
305- Lemma continuously_map_conv :
307+ Lemma inf_often_map_conv :
306308 forall (f: A->B) (P: infseq A->Prop) (Q: infseq B->Prop),
307309 extensional P -> extensional Q ->
308310 (forall s, Q (map f s) -> P s) ->
309- forall (s: infseq A), continuously Q (map f s) -> continuously P s.
311+ forall (s: infseq A), inf_often Q (map f s) -> inf_often P s.
310312Proof .
311313intros f P Q eP eQ QP.
312- apply eventually_map_conv.
313- - apply extensional_always; assumption.
314- - apply extensional_always; assumption.
315- - apply always_map_conv; assumption.
314+ apply always_map_conv; apply eventually_map_conv; trivial.
316315Qed .
317316
318- Lemma inf_often_map :
317+ Lemma continuously_map :
319318 forall (f: A->B) (P: infseq A->Prop) (Q: infseq B->Prop),
320319 (forall s, P s -> Q (map f s)) ->
321- forall (s: infseq A), inf_often P s -> inf_often Q (map f s).
320+ forall (s: infseq A), continuously P s -> continuously Q (map f s).
322321Proof .
323322intros f P Q PQ.
324- apply always_map ; apply eventually_map ; assumption.
323+ apply eventually_map ; apply always_map ; assumption.
325324Qed .
326325
327- Lemma inf_often_map_conv :
326+ Lemma continuously_map_conv :
328327 forall (f: A->B) (P: infseq A->Prop) (Q: infseq B->Prop),
329328 extensional P -> extensional Q ->
330329 (forall s, Q (map f s) -> P s) ->
331- forall (s: infseq A), inf_often Q (map f s) -> inf_often P s.
330+ forall (s: infseq A), continuously Q (map f s) -> continuously P s.
332331Proof .
333332intros f P Q eP eQ QP.
334- apply always_map_conv; apply eventually_map_conv; trivial.
333+ apply eventually_map_conv.
334+ - apply extensional_always; assumption.
335+ - apply extensional_always; assumption.
336+ - apply always_map_conv; assumption.
335337Qed .
336338
337339(* Some corollaries *)
0 commit comments