src/HOL/New_DSequence.thy
changeset 40049 75d9f57123d6
parent 39183 512c10416590
child 42163 392fd6c4669c
     1.1 --- a/src/HOL/New_DSequence.thy	Thu Oct 21 19:13:06 2010 +0200
     1.2 +++ b/src/HOL/New_DSequence.thy	Thu Oct 21 19:13:07 2010 +0200
     1.3 @@ -21,7 +21,11 @@
     1.4  
     1.5  definition pos_bind :: "'a pos_dseq => ('a => 'b pos_dseq) => 'b pos_dseq"
     1.6  where
     1.7 -  "pos_bind x f = (%i. 
     1.8 +  "pos_bind x f = (%i. Lazy_Sequence.bind (x i) (%a. f a i))"
     1.9 +
    1.10 +definition pos_decr_bind :: "'a pos_dseq => ('a => 'b pos_dseq) => 'b pos_dseq"
    1.11 +where
    1.12 +  "pos_decr_bind x f = (%i. 
    1.13       if i = 0 then
    1.14         Lazy_Sequence.empty
    1.15       else
    1.16 @@ -57,7 +61,11 @@
    1.17  
    1.18  definition neg_bind :: "'a neg_dseq => ('a => 'b neg_dseq) => 'b neg_dseq"
    1.19  where
    1.20 -  "neg_bind x f = (%i. 
    1.21 +  "neg_bind x f = (%i. hb_bind (x i) (%a. f a i))"
    1.22 +
    1.23 +definition neg_decr_bind :: "'a neg_dseq => ('a => 'b neg_dseq) => 'b neg_dseq"
    1.24 +where
    1.25 +  "neg_decr_bind x f = (%i. 
    1.26       if i = 0 then
    1.27         Lazy_Sequence.hit_bound
    1.28       else
    1.29 @@ -94,8 +102,8 @@
    1.30  hide_type (open) pos_dseq neg_dseq
    1.31  
    1.32  hide_const (open)
    1.33 -  pos_empty pos_single pos_bind pos_union pos_if_seq pos_iterate_upto pos_not_seq pos_map
    1.34 -  neg_empty neg_single neg_bind neg_union neg_if_seq neg_iterate_upto neg_not_seq neg_map
    1.35 +  pos_empty pos_single pos_bind pos_decr_bind pos_union pos_if_seq pos_iterate_upto pos_not_seq pos_map
    1.36 +  neg_empty neg_single neg_bind neg_decr_bind neg_union neg_if_seq neg_iterate_upto neg_not_seq neg_map
    1.37  hide_fact (open)
    1.38    pos_empty_def pos_single_def pos_bind_def pos_union_def pos_if_seq_def pos_iterate_upto_def pos_not_seq_def pos_map_def
    1.39    neg_empty_def neg_single_def neg_bind_def neg_union_def neg_if_seq_def neg_iterate_upto_def neg_not_seq_def neg_map_def