src/HOL/Library/Quotient_Option.thy
changeset 53026 e1a548c11845
parent 53012 cb82606b8215
child 55466 786edc984c98
     1.1 --- a/src/HOL/Library/Quotient_Option.thy	Wed Aug 14 00:15:03 2013 +0200
     1.2 +++ b/src/HOL/Library/Quotient_Option.thy	Tue Aug 13 18:22:55 2013 +0200
     1.3 @@ -12,11 +12,11 @@
     1.4  
     1.5  lemma option_rel_map1:
     1.6    "option_rel R (Option.map f x) y \<longleftrightarrow> option_rel (\<lambda>x. R (f x)) x y"
     1.7 -  by (simp add: option_rel_unfold split: option.split)
     1.8 +  by (simp add: option_rel_def split: option.split)
     1.9  
    1.10  lemma option_rel_map2:
    1.11    "option_rel R x (Option.map f y) \<longleftrightarrow> option_rel (\<lambda>x y. R x (f y)) x y"
    1.12 -  by (simp add: option_rel_unfold split: option.split)
    1.13 +  by (simp add: option_rel_def split: option.split)
    1.14  
    1.15  lemma option_map_id [id_simps]:
    1.16    "Option.map id = id"
    1.17 @@ -24,15 +24,15 @@
    1.18  
    1.19  lemma option_rel_eq [id_simps]:
    1.20    "option_rel (op =) = (op =)"
    1.21 -  by (simp add: option_rel_unfold fun_eq_iff split: option.split)
    1.22 +  by (simp add: option_rel_def fun_eq_iff split: option.split)
    1.23  
    1.24  lemma option_symp:
    1.25    "symp R \<Longrightarrow> symp (option_rel R)"
    1.26 -  unfolding symp_def split_option_all option_rel.simps by fast
    1.27 +  unfolding symp_def split_option_all option_rel_simps by fast
    1.28  
    1.29  lemma option_transp:
    1.30    "transp R \<Longrightarrow> transp (option_rel R)"
    1.31 -  unfolding transp_def split_option_all option_rel.simps by fast
    1.32 +  unfolding transp_def split_option_all option_rel_simps by fast
    1.33  
    1.34  lemma option_equivp [quot_equiv]:
    1.35    "equivp R \<Longrightarrow> equivp (option_rel R)"
    1.36 @@ -44,7 +44,7 @@
    1.37    apply (rule Quotient3I)
    1.38    apply (simp_all add: Option.map.compositionality comp_def Option.map.identity option_rel_eq option_rel_map1 option_rel_map2 Quotient3_abs_rep [OF assms] Quotient3_rel_rep [OF assms])
    1.39    using Quotient3_rel [OF assms]
    1.40 -  apply (simp add: option_rel_unfold split: option.split)
    1.41 +  apply (simp add: option_rel_def split: option.split)
    1.42    done
    1.43  
    1.44  declare [[mapQ3 option = (option_rel, option_quotient)]]