Skip to content

Commit

Permalink
Making solvable_iff_solvable_LAM an automatic rewrite rule
Browse files Browse the repository at this point in the history
  • Loading branch information
binghe committed Sep 28, 2023
1 parent 53b776b commit 0f242ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/lambda/barendregt/solvableScript.sml
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ QED
Theorem ssub_LAM[local] = List.nth(CONJUNCTS ssub_thm, 2)

(* Lemma 8.3.3 (ii) *)
Theorem solvable_iff_solvable_LAM :
!M x. solvable M <=> solvable (LAM x M)
Theorem solvable_iff_solvable_LAM[simp] :
!M x. solvable (LAM x M) <=> solvable M
Proof
rpt STRIP_TAC
>> EQ_TAC >> rw [solvable_alt_closed_substitution_instance,
closed_substitution_instances_def]
>> reverse EQ_TAC
>> rw [solvable_alt_closed_substitution_instance, closed_substitution_instances_def]
>| [ (* goal 1 (of 2) *)
Cases_on ‘x IN FV M’ >| (* 2 subgoals *)
[ (* goal 1.1 (of 2) *)
Expand Down

0 comments on commit 0f242ef

Please sign in to comment.