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

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

State before:
σ : VarName → VarName
F F' : Formula
h1 : IsSub σ F F'
h2 : ∀ (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
⊢ F'.IsValid
Tactic:
simp only [IsValid]
State after:
σ : VarName → VarName
F F' : Formula
h1 : IsSub σ F 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 F' : Formula
h1 : IsSub σ F 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:
intro D I V E
State after:
σ : VarName → VarName
F F' : Formula
h1 : IsSub σ F 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 F' : Formula
h1 : IsSub σ F 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:
simp only [← substitution_theorem D I V E σ F F' h1]
State after:
σ : VarName → VarName
F F' : Formula
h1 : IsSub σ F 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 F' : Formula
h1 : IsSub σ F 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:
apply h2
State after:
no goals