equal
deleted
inserted
replaced
456 |
456 |
457 val inductive_cases = gen_inductive_cases Attrib.intern_src Syntax.read_prop; |
457 val inductive_cases = gen_inductive_cases Attrib.intern_src Syntax.read_prop; |
458 val inductive_cases_i = gen_inductive_cases (K I) Syntax.check_prop; |
458 val inductive_cases_i = gen_inductive_cases (K I) Syntax.check_prop; |
459 |
459 |
460 |
460 |
461 fun ind_cases src = Method.syntax (Scan.lift (Scan.repeat1 Args.name -- |
461 fun ind_cases src = Method.syntax (Scan.lift (Scan.repeat1 Args.name_source -- |
462 Scan.optional (Args.$$$ "for" |-- Scan.repeat1 Args.name) [])) src |
462 Scan.optional (Args.$$$ "for" |-- Scan.repeat1 Args.name) [])) src |
463 #> (fn ((raw_props, fixes), ctxt) => |
463 #> (fn ((raw_props, fixes), ctxt) => |
464 let |
464 let |
465 val (_, ctxt') = Variable.add_fixes fixes ctxt; |
465 val (_, ctxt') = Variable.add_fixes fixes ctxt; |
466 val props = Syntax.read_props ctxt' raw_props; |
466 val props = Syntax.read_props ctxt' raw_props; |