src/HOLCF/Lift1.ML
changeset 5068 fb28eaa07e01
parent 3323 194ae2e0c193
child 9248 e1dee89de037
equal deleted inserted replaced
5067:62b6288e6005 5068:fb28eaa07e01
    11 
    11 
    12 (* ------------------------------------------------------------------------ *)
    12 (* ------------------------------------------------------------------------ *)
    13 (* less_lift is a partial order on type 'a -> 'b                            *)
    13 (* less_lift is a partial order on type 'a -> 'b                            *)
    14 (* ------------------------------------------------------------------------ *)
    14 (* ------------------------------------------------------------------------ *)
    15 
    15 
    16 goalw thy [less_lift_def] "(x::'a lift) << x";
    16 Goalw [less_lift_def] "(x::'a lift) << x";
    17 by (fast_tac HOL_cs 1);
    17 by (fast_tac HOL_cs 1);
    18 qed"refl_less_lift";
    18 qed"refl_less_lift";
    19 
    19 
    20 val prems = goalw thy [less_lift_def] 
    20 val prems = goalw thy [less_lift_def] 
    21   "[|(x1::'a lift) << x2; x2 << x1|] ==> x1 = x2";
    21   "[|(x1::'a lift) << x2; x2 << x1|] ==> x1 = x2";