Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ lemma steps_open_cong_r {s t t' : Term Var} (lc_s : LC s.abs) (lc_t : LC t) (ste
case refl => rfl
case head _ _ st _ ih => exact .trans (step_open_cong_r lc_s lc_t st) (ih (step_lc_r st))

theorem steps_open_cong_l {s s' t : Term Var} (xs : Finset Var)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to what I suggested in #738, I think it is useful to also have the single-step version of this even if it is technically less general.

(h : ∀ x ∉ xs, (s ^ fvar x) ↠ηᶠ (s' ^ fvar x)) (h_lc : LC t) :
(s ^ t) ↠ηᶠ (s' ^ t) := by
have ⟨x, _⟩ := fresh_exists <| free_union [fv] Var
rw [Term.subst_intro x _ s (by grind), Term.subst_intro x _ s' (by grind)]
exact steps_subst_cong_l _ _ _ (h x (by grind)) h_lc

/- Closing a sequence of η-reduction steps over a fresh variable preserves the steps. -/
open Relation in
lemma close_eta_steps (hx_M : x ∉ M.fv) (st_M : ReflGen FullEta (M ^ fvar x) N) :
Expand Down
Loading