src/HOL/Tools/numeral.ML
changeset 32010 cb1a1c94b4cd
parent 31375 815426e7dd3b
child 33989 cb136b5f6050
equal deleted inserted replaced
32009:fd3c60ad9155 32010:cb1a1c94b4cd
    37 
    37 
    38 val one = @{cpat "1"};
    38 val one = @{cpat "1"};
    39 val oneT = Thm.ctyp_of_term one;
    39 val oneT = Thm.ctyp_of_term one;
    40 
    40 
    41 val number_of = @{cpat "number_of"};
    41 val number_of = @{cpat "number_of"};
    42 val numberT = Thm.ctyp_of (the_context ()) (Term.range_type (Thm.typ_of (Thm.ctyp_of_term number_of)));
    42 val numberT = Thm.ctyp_of @{theory} (Term.range_type (Thm.typ_of (Thm.ctyp_of_term number_of)));
    43 
    43 
    44 fun instT T V = Thm.instantiate_cterm ([(V, T)], []);
    44 fun instT T V = Thm.instantiate_cterm ([(V, T)], []);
    45 
    45 
    46 in
    46 in
    47 
    47