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

State before:
F : Formula
v u : VarName
binders : Finset VarName
h1 : fastAdmitsAux v u binders F
⊢ 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 : fastAdmitsAux v u binders (pred_const_ a✝¹ a✝)
⊢ admitsAux v u binders (pred_const_ a✝¹ a✝)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

case iff_
v u : VarName
a✝¹ a✝ : Formula
a_ih✝¹ : ∀ (binders : Finset VarName), fastAdmitsAux v u binders a✝¹ → admitsAux v u binders a✝¹
a_ih✝ : ∀ (binders : Finset VarName), fastAdmitsAux v u binders a✝ → admitsAux v u binders a✝
binders : Finset VarName
h1 : fastAdmitsAux v u binders a✝¹ ∧ fastAdmitsAux v u binders a✝
⊢ 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 ∈ a✝ → u ∉ 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 : fastAdmitsAux v u binders (def_ a✝¹ a✝)
⊢ admitsAux v u binders (def_ a✝¹ a✝)
Tactic:
simp only [fastAdmitsAux] at h1
State after:
case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ a✝ → u ∉ binders
⊢ admitsAux v u binders (def_ a✝¹ a✝)

State before:
case def_
v u : VarName
a✝¹ : DefName
a✝ : List VarName
binders : Finset VarName
h1 : v ∈ a✝ → u ∉ 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 ∈ a✝ → u ∉ binders
⊢ v ∈ a✝ ∧ v ∉ binders → u ∉ binders

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

case inr
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), fastAdmitsAux v u binders phi → admitsAux v u binders phi
binders : Finset VarName
h✝ : fastAdmitsAux v u (binders ∪ {x}) phi
⊢ admitsAux v u (binders ∪ {x}) phi

State before:
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), fastAdmitsAux v u binders phi → admitsAux v u binders phi
binders : Finset VarName
h1 : v = x
⊢ admitsAux v u (binders ∪ {x}) phi
Tactic:
case inl h1 =>
  apply mem_binders_imp_admitsAux
  subst h1
  simp
State after:
no goals

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

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

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

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

State before:
v u x : VarName
phi : Formula
phi_ih : ∀ (binders : Finset VarName), fastAdmitsAux v u binders phi → admitsAux v u binders phi
binders : Finset VarName
h1 : fastAdmitsAux v u (binders ∪ {x}) phi
⊢ 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), fastAdmitsAux v u binders phi → admitsAux v u binders phi
binders : Finset VarName
h1 : fastAdmitsAux v u (binders ∪ {x}) phi
⊢ fastAdmitsAux v u (binders ∪ {x}) phi

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

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