| author | wenzelm | 
| Fri, 01 Apr 2016 17:14:27 +0200 | |
| changeset 62795 | 063d2f23cdf6 | 
| parent 62348 | 9a5f43dac883 | 
| child 64240 | eabf80376aab | 
| permissions | -rw-r--r-- | 
| 30439 | 1  | 
(* Title: HOL/Decision_Procs/mir_tac.ML  | 
| 23858 | 2  | 
Author: Amine Chaieb, TU Muenchen  | 
3  | 
*)  | 
|
4  | 
||
| 31240 | 5  | 
signature MIR_TAC =  | 
6  | 
sig  | 
|
7  | 
val mir_tac: Proof.context -> bool -> int -> tactic  | 
|
8  | 
end  | 
|
9  | 
||
| 55506 | 10  | 
structure Mir_Tac: MIR_TAC =  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
11  | 
struct  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
12  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
13  | 
val mir_ss =  | 
| 
61652
 
90c65a811257
MIR decision procedure again working
 
paulson <lp15@cam.ac.uk> 
parents: 
61609 
diff
changeset
 | 
14  | 
  simpset_of (@{context} delsimps [@{thm "of_int_eq_iff"}, @{thm "of_int_less_iff"}, @{thm "of_int_le_iff"}] 
 | 
| 
 
90c65a811257
MIR decision procedure again working
 
paulson <lp15@cam.ac.uk> 
parents: 
61609 
diff
changeset
 | 
15  | 
               addsimps @{thms "iff_real_of_int"});
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
16  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
17  | 
val nT = HOLogic.natT;  | 
| 
47108
 
2a1953f0d20d
merged fork with new numeral representation (see NEWS)
 
huffman 
parents: 
45654 
diff
changeset
 | 
18  | 
  val nat_arith = [@{thm diff_nat_numeral}];
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
19  | 
|
| 39159 | 20  | 
  val comp_arith = [@{thm "Let_def"}, @{thm "if_False"}, @{thm "if_True"}, @{thm "add_0"},
 | 
| 
57514
 
bdc2c6b40bf2
prefer ac_simps collections over separate name bindings for add and mult
 
haftmann 
parents: 
56245 
diff
changeset
 | 
21  | 
                 @{thm "add_Suc"}, @{thm add_numeral_left}, @{thm mult_numeral_left(1)}] @
 | 
| 
61694
 
6571c78c9667
Removed some legacy theorems; minor adjustments to simplification rules; new material on homotopic paths
 
paulson <lp15@cam.ac.uk> 
parents: 
61652 
diff
changeset
 | 
22  | 
                 (map (fn th => th RS sym) [@{thm "numeral_One"}])
 | 
| 25481 | 23  | 
                 @ @{thms arith_simps} @ nat_arith @ @{thms rel_simps} 
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
24  | 
  val ths = [@{thm "mult_numeral_1"}, @{thm "mult_numeral_1_right"}, 
 | 
| 
61609
 
77b453bd616f
Coercion "real" now has type nat => real only and is no longer overloaded. Type class "real_of" is gone. Many duplicate theorems removed.
 
paulson <lp15@cam.ac.uk> 
parents: 
60754 
diff
changeset
 | 
25  | 
             @{thm of_nat_numeral},
 | 
| 
 
77b453bd616f
Coercion "real" now has type nat => real only and is no longer overloaded. Type class "real_of" is gone. Many duplicate theorems removed.
 
paulson <lp15@cam.ac.uk> 
parents: 
60754 
diff
changeset
 | 
26  | 
             @{thm "of_nat_Suc"}, @{thm "of_nat_1"},
 | 
| 
 
77b453bd616f
Coercion "real" now has type nat => real only and is no longer overloaded. Type class "real_of" is gone. Many duplicate theorems removed.
 
paulson <lp15@cam.ac.uk> 
parents: 
60754 
diff
changeset
 | 
27  | 
             @{thm "of_int_0"}, @{thm "of_nat_0"},
 | 
| 36308 | 28  | 
             @{thm "divide_zero"}, 
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
29  | 
             @{thm "divide_divide_eq_left"}, @{thm "times_divide_eq_right"}, 
 | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
30  | 
             @{thm "times_divide_eq_left"}, @{thm "divide_divide_eq_right"},
 | 
| 
54230
 
b1d955791529
more simplification rules on unary and binary minus
 
haftmann 
parents: 
52131 
diff
changeset
 | 
31  | 
             @{thm uminus_add_conv_diff [symmetric]}, @{thm "minus_divide_left"}]
 | 
| 
61652
 
90c65a811257
MIR decision procedure again working
 
paulson <lp15@cam.ac.uk> 
parents: 
61609 
diff
changeset
 | 
32  | 
val comp_ths = distinct Thm.eq_thm (ths @ comp_arith @ @{thms simp_thms});
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
33  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
34  | 
val mod_div_equality' = @{thm "mod_div_equality'"};
 | 
| 30224 | 35  | 
val mod_add_eq = @{thm "mod_add_eq"} RS sym;
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
36  | 
|
| 51369 | 37  | 
fun prepare_for_mir q fm =  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
38  | 
let  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
39  | 
val ps = Logic.strip_params fm  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
40  | 
val hs = map HOLogic.dest_Trueprop (Logic.strip_assums_hyp fm)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
41  | 
val c = HOLogic.dest_Trueprop (Logic.strip_assums_concl fm)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
42  | 
fun mk_all ((s, T), (P,n)) =  | 
| 
42083
 
e1209fc7ecdc
added Term.is_open and Term.is_dependent convenience, to cover common situations of loose bounds;
 
wenzelm 
parents: 
39159 
diff
changeset
 | 
43  | 
if Term.is_dependent P then  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
44  | 
(HOLogic.all_const T $ Abs (s, T, P), n)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
45  | 
else (incr_boundvars ~1 P, n-1)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
46  | 
fun mk_all2 (v, t) = HOLogic.all_const (fastype_of v) $ lambda v t;  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
47  | 
val rhs = hs  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
48  | 
(* val (rhs,irhs) = List.partition (relevant (rev ps)) hs *)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
49  | 
val np = length ps  | 
| 
33004
 
715566791eb0
always qualify NJ's old List.foldl/foldr in Isabelle/ML;
 
wenzelm 
parents: 
32740 
diff
changeset
 | 
50  | 
val (fm',np) = List.foldr (fn ((x, T), (fm,n)) => mk_all ((x, T), (fm,n)))  | 
| 
 
715566791eb0
always qualify NJ's old List.foldl/foldr in Isabelle/ML;
 
wenzelm 
parents: 
32740 
diff
changeset
 | 
51  | 
(List.foldr HOLogic.mk_imp c rhs, np) ps  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
52  | 
val (vs, _) = List.partition (fn t => q orelse (type_of t) = nT)  | 
| 44121 | 53  | 
(Misc_Legacy.term_frees fm' @ Misc_Legacy.term_vars fm');  | 
| 
33004
 
715566791eb0
always qualify NJ's old List.foldl/foldr in Isabelle/ML;
 
wenzelm 
parents: 
32740 
diff
changeset
 | 
54  | 
val fm2 = List.foldr mk_all2 fm' vs  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
55  | 
in (fm2, np + length vs, length rhs) end;  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
56  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
57  | 
(*Object quantifier to meta --*)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
58  | 
fun spec_step n th = if (n=0) then th else (spec_step (n-1) th) RS spec ;  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
59  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
60  | 
(* object implication to meta---*)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
61  | 
fun mp_step n th = if (n=0) then th else (mp_step (n-1) th) RS mp;  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
62  | 
|
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
63  | 
|
| 
42368
 
3b8498ac2314
proper subgoal addressing via SUBGOAL/CSUBGOAL -- assuming these tactics did not handle Subscript in any special way;
 
wenzelm 
parents: 
42364 
diff
changeset
 | 
64  | 
fun mir_tac ctxt q =  | 
| 
54742
 
7a86358a3c0b
proper context for basic Simplifier operations: rewrite_rule, rewrite_goals_rule, rewrite_goals_tac etc.;
 
wenzelm 
parents: 
54230 
diff
changeset
 | 
65  | 
Object_Logic.atomize_prems_tac ctxt  | 
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
66  | 
THEN' simp_tac (put_simpset HOL_basic_ss ctxt  | 
| 
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
67  | 
          addsimps [@{thm "abs_ge_zero"}] addsimps @{thms simp_thms})
 | 
| 
58956
 
a816aa3ff391
proper context for compose_tac, Splitter.split_tac (relevant for unify trace options);
 
wenzelm 
parents: 
57514 
diff
changeset
 | 
68  | 
        THEN' (REPEAT_DETERM o split_tac ctxt [@{thm "split_min"}, @{thm "split_max"}, @{thm "abs_split"}])
 | 
| 
42368
 
3b8498ac2314
proper subgoal addressing via SUBGOAL/CSUBGOAL -- assuming these tactics did not handle Subscript in any special way;
 
wenzelm 
parents: 
42364 
diff
changeset
 | 
69  | 
THEN' SUBGOAL (fn (g, i) =>  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
70  | 
let  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
71  | 
(* Transform the term*)  | 
| 51369 | 72  | 
val (t,np,nh) = prepare_for_mir q g  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
73  | 
(* Some simpsets for dealing with mod div abs and nat*)  | 
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
74  | 
val mod_div_simpset = put_simpset HOL_basic_ss ctxt  | 
| 30224 | 75  | 
addsimps [refl, mod_add_eq,  | 
| 47142 | 76  | 
                                  @{thm mod_self},
 | 
77  | 
                                  @{thm div_0}, @{thm mod_0},
 | 
|
| 30031 | 78  | 
                                  @{thm "div_by_1"}, @{thm "mod_by_1"}, @{thm "div_1"}, @{thm "mod_1"},
 | 
| 31790 | 79  | 
                                  @{thm "Suc_eq_plus1"}]
 | 
| 
57514
 
bdc2c6b40bf2
prefer ac_simps collections over separate name bindings for add and mult
 
haftmann 
parents: 
56245 
diff
changeset
 | 
80  | 
                        addsimps @{thms add.assoc add.commute add.left_commute}
 | 
| 43594 | 81  | 
                        addsimprocs [@{simproc cancel_div_mod_nat}, @{simproc cancel_div_mod_int}]
 | 
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
82  | 
val simpset0 = put_simpset HOL_basic_ss ctxt  | 
| 31790 | 83  | 
      addsimps [mod_div_equality', @{thm Suc_eq_plus1}]
 | 
| 23318 | 84  | 
addsimps comp_ths  | 
| 
45620
 
f2a587696afb
modernized some old-style infix operations, which were left over from the time of ML proof scripts;
 
wenzelm 
parents: 
44121 
diff
changeset
 | 
85  | 
|> fold Splitter.add_split  | 
| 
 
f2a587696afb
modernized some old-style infix operations, which were left over from the time of ML proof scripts;
 
wenzelm 
parents: 
44121 
diff
changeset
 | 
86  | 
          [@{thm "split_zdiv"}, @{thm "split_zmod"}, @{thm "split_div'"},
 | 
| 
 
f2a587696afb
modernized some old-style infix operations, which were left over from the time of ML proof scripts;
 
wenzelm 
parents: 
44121 
diff
changeset
 | 
87  | 
            @{thm "split_min"}, @{thm "split_max"}]
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
88  | 
(* Simp rules for changing (n::int) to int n *)  | 
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
89  | 
val simpset1 = put_simpset HOL_basic_ss ctxt  | 
| 
61694
 
6571c78c9667
Removed some legacy theorems; minor adjustments to simplification rules; new material on homotopic paths
 
paulson <lp15@cam.ac.uk> 
parents: 
61652 
diff
changeset
 | 
90  | 
      addsimps [@{thm "zdvd_int"}, @{thm "of_nat_add"}, @{thm "of_nat_mult"}] @ 
 | 
| 62348 | 91  | 
          map (fn r => r RS sym) [@{thm "int_int_eq"}, @{thm "zle_int"}, @{thm "of_nat_less_iff"}, @{thm nat_numeral}]
 | 
| 
45620
 
f2a587696afb
modernized some old-style infix operations, which were left over from the time of ML proof scripts;
 
wenzelm 
parents: 
44121 
diff
changeset
 | 
92  | 
      |> Splitter.add_split @{thm "zdiff_int_split"}
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
93  | 
(*simp rules for elimination of int n*)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
94  | 
|
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
95  | 
val simpset2 = put_simpset HOL_basic_ss ctxt  | 
| 
47108
 
2a1953f0d20d
merged fork with new numeral representation (see NEWS)
 
huffman 
parents: 
45654 
diff
changeset
 | 
96  | 
      addsimps [@{thm "nat_0_le"}, @{thm "all_nat"}, @{thm "ex_nat"}, @{thm zero_le_numeral}, 
 | 
| 62348 | 97  | 
                @{thm "of_nat_0"}, @{thm "of_nat_1"}]
 | 
| 
45620
 
f2a587696afb
modernized some old-style infix operations, which were left over from the time of ML proof scripts;
 
wenzelm 
parents: 
44121 
diff
changeset
 | 
98  | 
      |> fold Simplifier.add_cong [@{thm "conj_le_cong"}, @{thm "imp_le_cong"}]
 | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
99  | 
(* simp rules for elimination of abs *)  | 
| 59629 | 100  | 
val ct = Thm.cterm_of ctxt (HOLogic.mk_Trueprop t)  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
101  | 
(* Theorem for the nat --> int transformation *)  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
102  | 
val pre_thm = Seq.hd (EVERY  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
103  | 
[simp_tac mod_div_simpset 1, simp_tac simpset0 1,  | 
| 
51717
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
104  | 
TRY (simp_tac simpset1 1), TRY (simp_tac simpset2 1),  | 
| 
 
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
 
wenzelm 
parents: 
51369 
diff
changeset
 | 
105  | 
TRY (simp_tac (put_simpset mir_ss ctxt) 1)]  | 
| 36945 | 106  | 
(Thm.trivial ct))  | 
| 
58963
 
26bf09b95dda
proper context for assume_tac (atac remains as fall-back without context);
 
wenzelm 
parents: 
58956 
diff
changeset
 | 
107  | 
fun assm_tac i = REPEAT_DETERM_N nh (assume_tac ctxt i)  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
108  | 
(* The result of the quantifier elimination *)  | 
| 59582 | 109  | 
val (th, tac) =  | 
110  | 
case Thm.prop_of pre_thm of  | 
|
| 56245 | 111  | 
        Const (@{const_name Pure.imp}, _) $ (Const (@{const_name Trueprop}, _) $ t1) $ _ =>
 | 
| 60325 | 112  | 
let  | 
113  | 
val pth = mirfr_oracle (ctxt, Envir.eta_long [] t1)  | 
|
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
114  | 
in  | 
| 55506 | 115  | 
((pth RS iffD2) RS pre_thm,  | 
| 60754 | 116  | 
assm_tac (i + 1) THEN (if q then I else TRY) (resolve_tac ctxt [TrueI] i))  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
117  | 
end  | 
| 
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
118  | 
| _ => (pre_thm, assm_tac i)  | 
| 60754 | 119  | 
in resolve_tac ctxt [((mp_step nh) o (spec_step np)) th] i THEN tac end);  | 
| 
23264
 
324622260d29
Added twe Examples for Quantifier elimination ofer linear real arithmetic and over the mixed theory of linear real artihmetic with integers
 
chaieb 
parents:  
diff
changeset
 | 
120  | 
|
| 
23590
 
ad95084a5c63
renamed ObjectLogic.atomize_tac to ObjectLogic.atomize_prems_tac;
 
wenzelm 
parents: 
23381 
diff
changeset
 | 
121  | 
end  |