Theory Lem_show_extra
chapter ‹Generated by Lem from ‹show_extra.lem›.›
theory "Lem_show_extra" 
imports
  Main
  "Lem_string"
  "Lem_maybe"
  "Lem_num"
  "Lem_basic_classes"
  "Lem_set"
  "Lem_relation"
  "Lem_show"
  "Lem_set_extra"
  "Lem_string_extra"
begin 
 
   :: "(nat)Show_class "  where 
     " instance_Show_Show_nat_dict = ((|
  show_method = Lem_string_extra.stringFromNat |) )"
   :: "(nat)Show_class "  where 
     " instance_Show_Show_Num_natural_dict = ((|
  show_method = Lem_string_extra.stringFromNatural |) )"
   :: "(int)Show_class "  where 
     " instance_Show_Show_Num_int_dict = ((|
  show_method = Lem_string_extra.stringFromInt |) )"
   :: "(int)Show_class "  where 
     " instance_Show_Show_Num_integer_dict = ((|
  show_method = Lem_string_extra.stringFromInteger |) )"
   :: "('a ⇒ string)⇒ 'a set ⇒ string "  where 
     " stringFromSet showX xs = (
  (''{'') @ (Lem_show.stringFromListAux showX (list_of_set xs) @ (''}'')))"
   :: "('a*'a ⇒ string)⇒('a*'a)set ⇒ string "  where 
     " stringFromRelation showX rel = (
  if trans rel then
    (let pruned_rel = (LemExtraDefs.without_trans_edges rel) in
    if ((∀ e ∈ rel.  (e ∈ pruned_rel))) then
      
      stringFromSet showX rel
    else
      (''trancl of '') @ stringFromSet showX pruned_rel)
  else
    stringFromSet showX rel )"
   :: " 'a Show_class ⇒('a set)Show_class "  where 
     " instance_Show_Show_set_dict dict_Show_Show_a = ((|
  show_method = (λ xs. stringFromSet 
  (show_method   dict_Show_Show_a) xs)|) )"
end