src/HOL/Ord.ML
changeset 6814 d96d4977f94e
parent 6780 769cea1985e4
child 6956 18c0457efd3d
equal deleted inserted replaced
6813:bf90f86502b2 6814:d96d4977f94e
   135 bind_thm("linorder_neqE", linorder_neq_iff RS iffD1 RS disjE);
   135 bind_thm("linorder_neqE", linorder_neq_iff RS iffD1 RS disjE);
   136 
   136 
   137 (** min & max **)
   137 (** min & max **)
   138 
   138 
   139 Goalw [min_def] "min (x::'a::order) x = x";
   139 Goalw [min_def] "min (x::'a::order) x = x";
   140 by(Simp_tac 1);
   140 by (Simp_tac 1);
   141 qed "min_same";
   141 qed "min_same";
   142 Addsimps [min_same];
   142 Addsimps [min_same];
   143 
   143 
   144 Goalw [max_def] "max (x::'a::order) x = x";
   144 Goalw [max_def] "max (x::'a::order) x = x";
   145 by(Simp_tac 1);
   145 by (Simp_tac 1);
   146 qed "max_same";
   146 qed "max_same";
   147 Addsimps [max_same];
   147 Addsimps [max_same];
   148 
   148 
   149 Goalw [max_def] "!!z::'a::linorder. (z <= max x y) = (z <= x | z <= y)";
   149 Goalw [max_def] "!!z::'a::linorder. (z <= max x y) = (z <= x | z <= y)";
   150 by (Simp_tac 1);
   150 by (Simp_tac 1);