# HG changeset patch # User Cezary Kaliszyk # Date 1259009790 -3600 # Node ID 2674bd315993382601d488ac18b2fa450b7df387 # Parent f507f088de73573b291436d6c3eb5c977a95b247 Another not-typechecking regularized term. diff -r f507f088de73 -r 2674bd315993 FSet.thy --- a/FSet.thy Mon Nov 23 21:48:44 2009 +0100 +++ b/FSet.thy Mon Nov 23 21:56:30 2009 +0100 @@ -328,21 +328,22 @@ ML {* lift_thm_fset @{context} @{thm append_assoc} *} ML {* lift_thm_g_fset @{context} @{thm append_assoc} @{term "FUNION (FUNION x xa) xb = FUNION x (FUNION xa xb)"} *} ML {* lift_thm_fset @{context} @{thm map_append} *} -ML {* lift_thm_g_fset @{context} @{thm map_append} @{term "fmap f (FUNION x xa) = FUNION (fmap f x) (fmap f xa)"} *} +ML {* val gl = @{term "fmap f (FUNION (x::'b fset) (xa::'b fset)) = FUNION (fmap f x) (fmap f xa)"} *} + +ML {* val (rty, rel, rel_refl, rel_eqv) = lookup_quot_data @{context} qty *} +ML {* val rtrm = prop_of (atomize_thm @{thm map_append}) *} +ML {* val qtrm = atomize_goal @{theory} gl *} +ML {* val a = (REGULARIZE_trm @{context} rtrm qtrm) *} +ML {* val a = Syntax.check_term @{context} a *} +ML {* val t_r = regularize_goal @{context} (atomize_thm @{thm append_assoc}) rel_eqv rel_refl goal_a *} + +ML {* lift_thm_g_fset @{context} @{thm map_append} gl *} + ML {* lift_thm_fset @{context} @{thm list.induct} *} ML {* lift_thm_g_fset @{context} @{thm list.induct} @{term "\P EMPTY; \a x. P x \ P (INSERT a x)\ \ P l"} *} -ML {* val (rty, rel, rel_refl, rel_eqv) = lookup_quot_data @{context} qty *} -ML {* val rtrm = prop_of (atomize_thm @{thm append_assoc}) *} -ML {* val qtrm = goal_a *} -ML {* val a = (REGULARIZE_trm @{context} rtrm qtrm) *} -ML {* val a = Syntax.check_term @{context} a *} -ML {* val t_r = regularize_goal @{context} (atomize_thm @{thm append_assoc}) rel_eqv rel_refl goal_a *} - -ML {* lift_thm_g_fset @{context} @{thm append_assoc} gl *} - (*ML {* lift_thm_fset @{context} @{thm neq_Nil_conv} *}*)