# HG changeset patch # User Cezary Kaliszyk # Date 1259914231 -3600 # Node ID 8dbc521ee97f0b6f2652e03d22424c24dd922dfe # Parent d62b6517a0ab82619fd70c24827f9bda64f89002 Even better: Completely got rid of the simps in both quotient_tac and inj_repabs_tac diff -r d62b6517a0ab -r 8dbc521ee97f LamEx.thy --- a/LamEx.thy Fri Dec 04 08:19:56 2009 +0100 +++ b/LamEx.thy Fri Dec 04 09:10:31 2009 +0100 @@ -312,40 +312,32 @@ "\t = [(a, b)] \ s; a \ [b].s\ \ Lam a t = Lam b s" apply (tactic {* procedure_tac @{context} @{thm real_alpha_pre} 1 *}) prefer 2 -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* all_inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) -apply (tactic {* inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* all_inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) +apply (tactic {* inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) apply (simp only: perm_prs) prefer 2 -apply (tactic {* all_inj_repabs_tac @{context} rty [quot] [rel_refl] [trans2] 1 *}) +apply (tactic {* all_inj_repabs_tac @{context} [rel_refl] [trans2] 1 *}) prefer 3 -apply (tactic {* clean_tac @{context} [quot] 1 *}) - -thm all_prs -thm REP_ABS_RSP -thm ball_reg_eqv_range - - -thm perm_lam_def +apply (tactic {* clean_tac @{context} 1 *}) apply (simp only: perm_prs) - -apply (tactic {* regularize_tac @{context} [quot] 1 *}) +(*apply (tactic {* regularize_tac @{context} 1 *})*) done diff -r d62b6517a0ab -r 8dbc521ee97f QuotMain.thy --- a/QuotMain.thy Fri Dec 04 08:19:56 2009 +0100 +++ b/QuotMain.thy Fri Dec 04 09:10:31 2009 +0100 @@ -735,10 +735,8 @@ ML {* fun quotient_tac ctxt = REPEAT_ALL_NEW (FIRST' - [resolve_tac (quotient_rules_get ctxt), - (* For functional identity quotients, (op = ---> op =) *) - (* TODO: think about the other way around, if we need to shorten the relation *) - CHANGED o (simp_tac ((Simplifier.context ctxt empty_ss) addsimps @{thms id_simps}))]) + [rtac @{thm IDENTITY_QUOTIENT}, + resolve_tac (quotient_rules_get ctxt)]) *} @@ -954,11 +952,12 @@ NDT ctxt "D" (resolve_tac rel_refl), (* resolving with R x y assumptions *) - NDT ctxt "E" (atac), + NDT ctxt "E" (atac) (* (op =) ===> (op =) \ (op =), needed in order to apply respectfulness theorems *) (* global simplification *) - NDT ctxt "H" (CHANGED o (asm_full_simp_tac ((Simplifier.context ctxt empty_ss) addsimps @{thms eq_reflection[OF FUN_REL_EQ] eq_reflection[OF LIST_REL_EQ]})))]) + (*NDT ctxt "H" (CHANGED o (asm_full_simp_tac ((Simplifier.context ctxt empty_ss) addsimps @{thms eq_reflection[OF FUN_REL_EQ] eq_reflection[OF LIST_REL_EQ]})))*) + ]) *} ML {*