Theorem: FOL.NV.Sub.Var.All.Rec.substitution_is_valid (FOL/NV/Sub/Var/All/Rec/Admits.lean)

State before:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : F.IsValid
⊢ (fastReplaceFree σ F).IsValid
Tactic:
simp only [IsValid] at h2
State after:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
⊢ (fastReplaceFree σ F).IsValid

State before:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
⊢ (fastReplaceFree σ F).IsValid
Tactic:
simp only [IsValid]
State after:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
⊢ ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E (fastReplaceFree σ F)

State before:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
⊢ ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E (fastReplaceFree σ F)
Tactic:
intro D I V E
State after:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
D : Type
I : Interpretation D
V : VarAssignment D
E : Env
⊢ Holds D I V E (fastReplaceFree σ F)

State before:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
D : Type
I : Interpretation D
V : VarAssignment D
E : Env
⊢ Holds D I V E (fastReplaceFree σ F)
Tactic:
simp only [← substitution_theorem D I V E σ F h1]
State after:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
D : Type
I : Interpretation D
V : VarAssignment D
E : Env
⊢ Holds D I (V ∘ σ) E F

State before:
σ : VarName → VarName
F : Formula
h1 : admits σ F
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
D : Type
I : Interpretation D
V : VarAssignment D
E : Env
⊢ Holds D I (V ∘ σ) E F
Tactic:
exact h2 D I (V ∘ σ) E
State after:
no goals