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 @@ -75,13 +75,15 @@ variable [HasFresh Var] [DecidableEq Var]
/-- An η-reduction step does not introduce new free variables. -/
lemma step_not_fv (step : M ⭢ηᶠ M') : M.fv = M'.fv := by
induction step with
| base => grind
| abs =>
have ⟨x, _⟩ := fresh_exists <| free_union [fv] Var
have := open_close x
grind [open_preserve_not_fvar]
| _ => grind

lemma steps_fv (steps : M ↠ηᶠ M') : M.fv = M'.fv := by
induction steps with grind [step_not_fv]

/- `s ⭢ηᶠ s'` implies `s[x := N] ⭢ηᶠ s'[x := N]`. -/
lemma step_subst_cong_l {x : Var} (s s' N : Term Var) (step : s ⭢ηᶠ s') (lc_N : LC N) :
s[x := N] ⭢ηᶠ s'[x := N] := by
Expand Down
Loading