Theorem: FOL.NV.Sub.Var.One.Rec.mem_binders_imp_admitsAux (FOL/NV/Sub/Var/One/Rec/Admits.lean)

State before:
F : Formula
v u : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders F
Tactic:
induction F generalizing binders
State after:
case pred_const_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (pred_const_ a✝¹ a✝)

case pred_var_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (pred_var_ a✝¹ a✝)

case eq_
v u a✝¹ a✝ : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (eq_ a✝¹ a✝)

case true_
v u : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders true_

case false_
v u : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders false_

case not_
v u : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝.not_

case imp_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.imp_ a✝)

case and_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.and_ a✝)

case or_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.or_ a✝)

case iff_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.iff_ a✝)

case forall_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (forall_ a✝¹ a✝)

case exists_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (exists_ a✝¹ a✝)

case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (def_ a✝¹ a✝)

State before:
case pred_const_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (pred_const_ a✝¹ a✝)

case pred_var_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (pred_var_ a✝¹ a✝)

case eq_
v u a✝¹ a✝ : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (eq_ a✝¹ a✝)

case true_
v u : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders true_

case false_
v u : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders false_

case not_
v u : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝.not_

case imp_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.imp_ a✝)

case and_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.and_ a✝)

case or_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.or_ a✝)

case iff_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (a✝¹.iff_ a✝)

case forall_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (forall_ a✝¹ a✝)

case exists_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (exists_ a✝¹ a✝)

case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (def_ a✝¹ a✝)
Tactic:
all_goals
  simp only [admitsAux]
State after:
case pred_const_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

case pred_var_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

case eq_
v u a✝¹ a✝ : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ (v = a✝¹ ∨ v = a✝) ∧ v ∉ binders → u ∉ binders

case not_
v u : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝

case imp_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case and_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case or_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case iff_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case forall_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u (binders ∪ {a✝¹}) a✝

case exists_
v u a✝¹ : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u (binders ∪ {a✝¹}) a✝

case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

State before:
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u (binders ∪ {x}) phi
Tactic:
case forall_ x phi phi_ih | exists_ x phi phi_ih =>
  apply phi_ih
  simp
  left
  exact h1
State after:
no goals

State before:
case pred_const_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

case pred_var_
v u : VarName
a✝¹ : PredName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

case eq_
v u a✝¹ a✝ : VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ (v = a✝¹ ∨ v = a✝) ∧ v ∉ binders → u ∉ binders

case not_
v u : VarName
a✝ : Formula
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝

case imp_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case and_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case or_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case iff_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders a✝
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders a✝¹ ∧ admitsAux v u binders a✝

case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders
Tactic:
all_goals
  tauto
State after:
no goals

State before:
case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u binders (def_ a✝¹ a✝)
Tactic:
simp only [admitsAux]
State after:
case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

State before:
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ admitsAux v u (binders ∪ {x}) phi
Tactic:
apply phi_ih
State after:
case h1
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders ∪ {x}

State before:
case h1
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders ∪ {x}
Tactic:
simp
State after:
case h1
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders ∨ v = x

State before:
case h1
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders ∨ v = x
Tactic:
left
State after:
case h1.h
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders

State before:
case h1.h
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), v ∈ binders → admitsAux v u binders phi
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ binders
Tactic:
exact h1
State after:
no goals

State before:
case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders
Tactic:
tauto
State after:
no goals