src/HOL/ex/BinEx.ML
author paulson
Wed, 05 Aug 1998 10:57:25 +0200
changeset 5253 82a5ca6290aa
parent 5199 be986f7a6def
child 5491 22f8331cdf47
permissions -rw-r--r--
New record type of programs


(*** Examples of performing binary arithmetic by simplification ***)

Goal "#13  +  #19 = #32";
by (Simp_tac 1);
result();

Goal "#1234  +  #5678 = #6912";
by (Simp_tac 1);
result();

Goal "#1359  +  #~2468 = #~1109";
by (Simp_tac 1);
result();

Goal "#93746 +  #~46375 = #47371";
by (Simp_tac 1);
result();

Goal "$~ #65745 = #~65745";
by (Simp_tac 1);
result();

Goal "$~ #~54321 = #54321";
by (Simp_tac 1);
result();

Goal "#13  *  #19 = #247";
by (Simp_tac 1);
result();

Goal "#~84  *  #51 = #~4284";
by (Simp_tac 1);
result();

Goal "#255  *  #255 = #65025";
by (Simp_tac 1);
result();

Goal "#1359  *  #~2468 = #~3354012";
by (Simp_tac 1);
result();

Goal "#89 * #10 ~= #889";  
by (Simp_tac 1); 
result();

Goal "#13 < #18 - #4";  
by (Simp_tac 1); 
result();

Goal "#~345 < #~242 + #~100";  
by (Simp_tac 1); 
result();

Goal "#13557456 < #18678654";  
by (Simp_tac 1); 
result();

Goal "#999999 <= (#1000001 + #1)-#2";  
by (Simp_tac 1); 
result();

Goal "#1234567 <= #1234567";  
by (Simp_tac 1); 
result();