@@ -355,7 +355,7 @@ Proof
355355 \\ metis_tac []
356356QED
357357
358- Triviality NOT_NONE_UNIT:
358+ Theorem NOT_NONE_UNIT[ local ] :
359359 (x ≠ NONE ) ⇔ x = SOME ()
360360Proof
361361 Cases_on ‘x’ \\ fs []
@@ -629,7 +629,7 @@ Proof
629629 \\ metis_tac []
630630QED
631631
632- Triviality App_Lam_to_Lets_allvars:
632+ Theorem App_Lam_to_Lets_allvars[ local ] :
633633 App_Lam_to_Lets exp = SOME exp1 ⇒
634634 allvars (exp_of exp) = allvars (exp_of exp1)
635635Proof
@@ -655,7 +655,7 @@ Proof
655655 \\ res_tac \\ fs []
656656QED
657657
658- Triviality MAP2_lemma:
658+ Theorem MAP2_lemma[ local ] :
659659 ∀vbs vbs1.
660660 LENGTH vbs = LENGTH vbs1 ⇒
661661 MAP FST (MAP2 (λ(v,_) x. (v,x)) vbs vbs1) = MAP FST vbs ∧
@@ -832,7 +832,7 @@ Definition wf_mem_def:
832832 cexp_wf ce ∧ letrecs_distinct (exp_of ce)
833833End
834834
835- Triviality BIGUNION_set_SUBSET:
835+ Theorem BIGUNION_set_SUBSET[ local ] :
836836 BIGUNION (set xs) ⊆ z ⇔ EVERY (λx. x ⊆ z) xs
837837Proof
838838 Induct_on ‘xs’ \\ gvs []
@@ -847,7 +847,7 @@ Proof
847847 \\ gvs [AC UNION_COMM UNION_ASSOC]
848848QED
849849
850- Triviality cexp_Lets_append:
850+ Theorem cexp_Lets_append[ local ] :
851851 ∀xs ys x. Lets a (xs ++ ys) x = Lets a xs (Lets a ys x)
852852Proof
853853 Induct \\ gvs [Lets_def,FORALL_PROD]
@@ -946,7 +946,7 @@ Proof
946946 \\ metis_tac []
947947QED
948948
949- Triviality freevars_Disj:
949+ Theorem freevars_Disj[ local ] :
950950 freevars (Disj v xs) ⊆ {v}
951951Proof
952952 Induct_on ‘xs’ \\ gvs [Disj_def]
@@ -970,7 +970,7 @@ Proof
970970 metis_tac[avoid_set_ok_subset]
971971QED
972972
973- Triviality App_Lam_to_Lets_avoid_set_ok:
973+ Theorem App_Lam_to_Lets_avoid_set_ok[ local ] :
974974 App_Lam_to_Lets e = SOME e' ⇒
975975 avoid_set_ok vars e = avoid_set_ok vars e'
976976Proof
@@ -1627,7 +1627,7 @@ Proof
16271627 dxrule_all freshen_global_boundvars >> simp[]
16281628QED
16291629
1630- Triviality freshen_cexp_disjoint_lemma:
1630+ Theorem freshen_cexp_disjoint_lemma[ local ] :
16311631 freshen_cexp e ns = (e1,ns1) ∧ avoid_set_ok ns e ∧
16321632 cexp_wf e ∧ NestedCase_free e ∧ letrecs_distinct (exp_of e) ∧
16331633 s ⊆ set_of ns
@@ -1647,7 +1647,7 @@ Proof
16471647 \\ gvs [cexp_wf_def]
16481648QED
16491649
1650- Triviality if_lemma:
1650+ Theorem if_lemma[ local ] :
16511651 boundvars (if b then Seq Fail x else x) = boundvars x ∧
16521652 barendregt (if b then Seq Fail x else x) = barendregt x ∧
16531653 letrecs_distinct (if b then Seq Fail x else x) = letrecs_distinct x
@@ -1666,7 +1666,7 @@ Proof
16661666 rw [] \\ irule inline_rel_Prim \\ gvs [inline_rel_refl]
16671667QED
16681668
1669- Triviality inline_rel_rows_of:
1669+ Theorem inline_rel_rows_of[ local ] :
16701670 ∀xs1 ys1.
16711671 inline_rel xs x y ∧
16721672 MAP FST xs1 = MAP FST ys1 ∧
0 commit comments