equal
deleted
inserted
replaced
92 val rec_names = map (#1 o dest_Const) rec_hds; |
92 val rec_names = map (#1 o dest_Const) rec_hds; |
93 |
93 |
94 val _ = assert_all Syntax.is_identifier rec_names |
94 val _ = assert_all Syntax.is_identifier rec_names |
95 (fn a => "Name of recursive set not an identifier: " ^ a); |
95 (fn a => "Name of recursive set not an identifier: " ^ a); |
96 |
96 |
97 val _ = assert_all (is_some o lookup_const sign) rec_names |
97 val _ = assert_all (is_some o Sign.const_type sign) rec_names |
98 (fn a => "Recursive set not previously declared as constant: " ^ a); |
98 (fn a => "Recursive set not previously declared as constant: " ^ a); |
99 |
99 |
100 local (*Checking the introduction rules*) |
100 local (*Checking the introduction rules*) |
101 val intr_sets = map (#2 o rule_concl_msg sign) intr_tms; |
101 val intr_sets = map (#2 o rule_concl_msg sign) intr_tms; |
102 fun intr_ok set = |
102 fun intr_ok set = |