equal
deleted
inserted
replaced
189 |
189 |
190 (* add_cases_induct *) |
190 (* add_cases_induct *) |
191 |
191 |
192 fun add_cases_induct infos induction thy = |
192 fun add_cases_induct infos induction thy = |
193 let |
193 let |
194 val inducts = ProjectRule.projections (ProofContext.init thy) induction; |
194 val inducts = Project_Rule.projections (ProofContext.init thy) induction; |
195 |
195 |
196 fun named_rules (name, {index, exhaustion, ...}: info) = |
196 fun named_rules (name, {index, exhaustion, ...}: info) = |
197 [((Binding.empty, nth inducts index), [Induct.induct_type name]), |
197 [((Binding.empty, nth inducts index), [Induct.induct_type name]), |
198 ((Binding.empty, exhaustion), [Induct.cases_type name])]; |
198 ((Binding.empty, exhaustion), [Induct.cases_type name])]; |
199 fun unnamed_rule i = |
199 fun unnamed_rule i = |