Induction rule case names (Isabelle) -
some induction rules have case names: default 1 has case 0 , case (suc n) example. given rule, e.g. int_induct, how find out case names (if, indeed, has these) without looking in theory containing lemma?
i'm not aware of high-level way this. case names stored in tags of theorem can obtained ml:
ml‹thm.get_tags @{thm nat.induct}› this prints:
val = [("name", "nat.nat.induct"), ("kind", "theorem"), ("case_names", "zero;suc")]: properties.t as can see, case names available under key case_names.
Comments
Post a Comment