src/HOL/Codatatype/Tools/bnf_lfp.ML
changeset 49277 aee77001243f
parent 49228 e43910ccee74
child 49308 6190b701e4f4
equal deleted inserted replaced
49276:59fa53ed7507 49277:aee77001243f
  1819     ((unfs, flds, iters, recs, unf_fld_thms, fld_unf_thms, fld_inject_thms, iter_thms, rec_thms),
  1819     ((unfs, flds, iters, recs, unf_fld_thms, fld_unf_thms, fld_inject_thms, iter_thms, rec_thms),
  1820      lthy |> Local_Theory.notes (common_notes @ notes) |> snd)
  1820      lthy |> Local_Theory.notes (common_notes @ notes) |> snd)
  1821   end;
  1821   end;
  1822 
  1822 
  1823 val _ =
  1823 val _ =
  1824   Outer_Syntax.local_theory @{command_spec "data_raw"} "least fixed points for BNF equations"
  1824   Outer_Syntax.local_theory @{command_spec "data_raw"} "least fixed points of BNF equations"
  1825     (Parse.and_list1
  1825     (Parse.and_list1
  1826       ((Parse.binding --| Parse.$$$ ":") -- (Parse.typ --| Parse.$$$ "=" -- Parse.typ)) >>
  1826       ((Parse.binding --| @{keyword ":"}) -- (Parse.typ --| @{keyword "="} -- Parse.typ)) >>
  1827       (snd oo fp_bnf_cmd bnf_lfp o apsnd split_list o split_list));
  1827       (snd oo fp_bnf_cmd bnf_lfp o apsnd split_list o split_list));
  1828 
  1828 
  1829 end;
  1829 end;