src/HOL/Tools/res_clause.ML
changeset 19521 cfdab6a91332
parent 19447 d4f3f8f9c0a5
child 19642 ea7162f84677
equal deleted inserted replaced
19520:873dad2d8a6d 19521:cfdab6a91332
   711       (*Reversal ensures that older entries always get the same axiom name*)
   711       (*Reversal ensures that older entries always get the same axiom name*)
   712       arity_clause 0 (tcons, rev ars)  @  
   712       arity_clause 0 (tcons, rev ars)  @  
   713       multi_arity_clause tc_arlists 
   713       multi_arity_clause tc_arlists 
   714 
   714 
   715 fun arity_clause_thy thy =
   715 fun arity_clause_thy thy =
   716   let val arities = #arities (Type.rep_tsig (Sign.tsig_of thy))
   716   let val arities =
   717   in multi_arity_clause (rev (Symtab.dest arities)) end;
   717     Symtab.dest (Sign.arities_of thy) |> map (apsnd (map (fn (c, (_, Ss)) => (c, Ss))));
       
   718   in multi_arity_clause (rev arities) end;
   718 
   719 
   719 
   720 
   720 (**** Find occurrences of predicates in clauses ****)
   721 (**** Find occurrences of predicates in clauses ****)
   721 
   722 
   722 (*FIXME: multiple-arity checking doesn't work, as update_new is the wrong 
   723 (*FIXME: multiple-arity checking doesn't work, as update_new is the wrong