src/HOL/Library/comm_ring.ML
changeset 19233 77ca20b0ed77
parent 18708 4b3dadb4fe33
child 20623 6ae83d153dd4
equal deleted inserted replaced
19232:1f5b5dc3f48a 19233:77ca20b0ed77
    75 
    75 
    76 
    76 
    77 (* reification of polynom expressions *)
    77 (* reification of polynom expressions *)
    78 fun reif_polex T vs t =
    78 fun reif_polex T vs t =
    79     case t of
    79     case t of
    80         Const("op +",_)$a$b => (polex_add T)
    80         Const("HOL.plus",_)$a$b => (polex_add T)
    81                                    $ (reif_polex T vs a)$(reif_polex T vs b)
    81                                    $ (reif_polex T vs a)$(reif_polex T vs b)
    82       | Const("op -",_)$a$b => (polex_sub T)
    82       | Const("HOL.minus",_)$a$b => (polex_sub T)
    83                                    $ (reif_polex T vs a)$(reif_polex T vs b)
    83                                    $ (reif_polex T vs a)$(reif_polex T vs b)
    84       | Const("op *",_)$a$b =>  (polex_mul T)
    84       | Const("HOL.times",_)$a$b =>  (polex_mul T)
    85                                     $ (reif_polex T vs a)$ (reif_polex T vs b)
    85                                     $ (reif_polex T vs a)$ (reif_polex T vs b)
    86       | Const("uminus",_)$a => (polex_neg T)
    86       | Const("HOL.uminus",_)$a => (polex_neg T)
    87                                    $ (reif_polex T vs a)
    87                                    $ (reif_polex T vs a)
    88       | (Const("Nat.power",_)$a$n) => (polex_pow T) $ (reif_polex T vs a) $ n
    88       | (Const("Nat.power",_)$a$n) => (polex_pow T) $ (reif_polex T vs a) $ n
    89 
    89 
    90       | _ => (polex_pol T) $ (reif_pol T vs t);
    90       | _ => (polex_pol T) $ (reif_pol T vs t);
    91 
    91