src/HOL/Tools/BNF/bnf_def.ML
changeset 59858 890b68e1e8b6
parent 59822 f014a2dc0ac8
child 59859 f9d1442c70f3
equal deleted inserted replaced
59857:49b975c5f58d 59858:890b68e1e8b6
   687   let
   687   let
   688     val axioms = axioms_of_bnf bnf;
   688     val axioms = axioms_of_bnf bnf;
   689     val facts = facts_of_bnf bnf;
   689     val facts = facts_of_bnf bnf;
   690     val wits = wits_of_bnf bnf;
   690     val wits = wits_of_bnf bnf;
   691     val qualify =
   691     val qualify =
   692       let val (_, qs, _) = Binding.dest bnf_b;
   692       let val qs = Binding.path_of bnf_b;
   693       in fold_rev (fn (s, mand) => Binding.qualify mand s) qs #> qualify0 end;
   693       in fold_rev (fn (s, mand) => Binding.qualify mand s) qs #> qualify0 end;
   694 
   694 
   695     fun note_if_note_all (noted0, lthy0) =
   695     fun note_if_note_all (noted0, lthy0) =
   696       let
   696       let
   697         val witNs = if length wits = 1 then [witN] else map mk_witN (1 upto length wits);
   697         val witNs = if length wits = 1 then [witN] else map mk_witN (1 upto length wits);