equal
deleted
inserted
replaced
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 |