url
stringclasses 147
values | commit
stringclasses 147
values | file_path
stringlengths 7
101
| full_name
stringlengths 1
94
| start
stringlengths 6
10
| end
stringlengths 6
11
| tactic
stringlengths 1
11.2k
| state_before
stringlengths 3
2.09M
| state_after
stringlengths 6
2.09M
|
---|---|---|---|---|---|---|---|---|
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
β’ β v β binders βͺ {x}, V' v = if v = x then d else V v | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
β’ β v β binders, Β¬v = x β V' v = if v = x then d else V v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | push_neg | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
β’ β v β binders, Β¬v = x β V' v = if v = x then d else V v | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
β’ β v β binders, v β x β V' v = if v = x then d else V v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | intros v' a1 a2 | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
β’ β v β binders, v β x β V' v = if v = x then d else V v | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
v' : VarName
a1 : v' β binders
a2 : v' β x
β’ V' v' = if v' = x then d else V v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [if_neg a2] | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
v' : VarName
a1 : v' β binders
a2 : v' β x
β’ V' v' = if v' = x then d else V v' | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
v' : VarName
a1 : v' β binders
a2 : v' β x
β’ V' v' = V v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | exact h2 v' a1 | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
headβ : Definition
tailβ : List Definition
tail_ihβ :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tailβ F β Holds D I V tailβ (fastReplaceFree v t F))
x : VarName
phi : Formula
phi_ih :
β (V : VarAssignment D) (binders : Finset VarName),
fastAdmitsAux v t binders phi β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) (headβ :: tailβ) phi β
Holds D I V (headβ :: tailβ) (fastReplaceFree v t phi))
V : VarAssignment D
binders : Finset VarName
h2 : β v β binders, V' v = V v
c1 : Β¬v = x
d : D
h1 : fastAdmitsAux v t (binders βͺ {x}) phi
v' : VarName
a1 : v' β binders
a2 : v' β x
β’ V' v' = V v' | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | unfold Function.updateITE | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ (if X = hd.name β§ xs.length = hd.args.length then
Holds D I
(Function.updateListITE (Function.updateITE V v (V' t)) hd.args (List.map (Function.updateITE V v (V' t)) xs))
tl hd.q
else Holds D I (Function.updateITE V v (V' t)) tl (def_ X xs)) β
if X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length then
Holds D I (Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs))) tl hd.q
else Holds D I V tl (def_ X (List.map (fun x => if v = x then t else x) xs)) | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ (if X = hd.name β§ xs.length = hd.args.length then
Holds D I
(Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs))
tl hd.q
else Holds D I (fun c => if c = v then V' t else V c) tl (def_ X xs)) β
if X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length then
Holds D I (Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs))) tl hd.q
else Holds D I V tl (def_ X (List.map (fun x => if v = x then t else x) xs)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | congr! 1 | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ (if X = hd.name β§ xs.length = hd.args.length then
Holds D I
(Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs))
tl hd.q
else Holds D I (fun c => if c = v then V' t else V c) tl (def_ X xs)) β
if X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length then
Holds D I (Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs))) tl hd.q
else Holds D I V tl (def_ X (List.map (fun x => if v = x then t else x) xs)) | case a.hβ.a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ X = hd.name β§ xs.length = hd.args.length β
X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
case a.hβ.a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
β’ Holds D I
(Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs))
tl hd.q β
Holds D I (Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs))) tl hd.q
case a.hβ.a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ Holds D I (fun c => if c = v then V' t else V c) tl (def_ X xs) β
Holds D I V tl (def_ X (List.map (fun x => if v = x then t else x) xs)) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | case _ =>
simp | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ X = hd.name β§ xs.length = hd.args.length β
X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
β’ X = hd.name β§ xs.length = hd.args.length β
X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | apply Holds_coincide_Var | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
β’ Holds D I
(Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs))
tl hd.q β
Holds D I (Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs))) tl hd.q | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
β’ β (v_1 : VarName),
isFreeIn v_1 hd.q β
Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v_1 =
Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs)) v_1 |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | intro v' a1 | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
β’ β (v_1 : VarName),
isFreeIn v_1 hd.q β
Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v_1 =
Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs)) v_1 | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs)) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map V (List.map (fun x => if v = x then t else x) xs)) v' | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [eq_comm] | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if c = v then V' t else V c) hd.args
(List.map (fun c => if c = v then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | have s1 :
(List.map (fun (x : VarName) =>
if v = x then V' t else V x) xs) =
(List.map (V β fun (x : VarName) =>
if v = x then t else x) xs) | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | {
simp only [List.map_eq_map_iff]
intro x a2
simp
split_ifs
case _ c2 =>
apply h2
subst c2
exact h1 a2
case _ c2 =>
rfl
} | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [s1] | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (fun c => if v = c then V' t else V c) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (V β fun x => if v = x then t else x) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | apply Function.updateListITE_mem_eq_len | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ Function.updateListITE (fun c => if v = c then V' t else V c) hd.args
(List.map (V β fun x => if v = x then t else x) xs) v' =
Function.updateListITE V hd.args (List.map (V β fun x => if v = x then t else x) xs) v' | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ v' β hd.args
case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ hd.args.length = (List.map (V β fun x => if v = x then t else x) xs).length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [List.map_eq_map_iff] | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ β x β xs, (if v = x then V' t else V x) = (V β fun x => if v = x then t else x) x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | intro x a2 | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
β’ β x β xs, (if v = x then V' t else V x) = (V β fun x => if v = x then t else x) x | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
β’ (if v = x then V' t else V x) = (V β fun x => if v = x then t else x) x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
β’ (if v = x then V' t else V x) = (V β fun x => if v = x then t else x) x | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
β’ (if v = x then V' t else V x) = V (if v = x then t else x) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | split_ifs | case s1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
β’ (if v = x then V' t else V x) = V (if v = x then t else x) | case pos
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
hβ : v = x
β’ V' t = V t
case neg
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
hβ : Β¬v = x
β’ V x = V x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | case _ c2 =>
apply h2
subst c2
exact h1 a2 | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : v = x
β’ V' t = V t | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | case _ c2 =>
rfl | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : Β¬v = x
β’ V x = V x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | apply h2 | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : v = x
β’ V' t = V t | case a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : v = x
β’ t β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | subst c2 | case a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : v = x
β’ t β binders | case a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
a2 : v β xs
β’ t β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | exact h1 a2 | case a
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
a2 : v β xs
β’ t β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | rfl | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
x : VarName
a2 : x β xs
c2 : Β¬v = x
β’ V x = V x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [isFreeIn_iff_mem_freeVarSet] at a1 | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ v' β hd.args | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
a1 : v' β hd.q.freeVarSet
β’ v' β hd.args |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [β List.mem_toFinset] | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
a1 : v' β hd.q.freeVarSet
β’ v' β hd.args | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
a1 : v' β hd.q.freeVarSet
β’ v' β hd.args.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | exact Finset.mem_of_subset hd.h1 a1 | case h1.h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
a1 : v' β hd.q.freeVarSet
β’ v' β hd.args.toFinset | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp at c1 | case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
c1 : X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
β’ hd.args.length = (List.map (V β fun x => if v = x then t else x) xs).length | case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
c1 : X = hd.name β§ xs.length = hd.args.length
β’ hd.args.length = (List.map (V β fun x => if v = x then t else x) xs).length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp | case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
c1 : X = hd.name β§ xs.length = hd.args.length
β’ hd.args.length = (List.map (V β fun x => if v = x then t else x) xs).length | case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
c1 : X = hd.name β§ xs.length = hd.args.length
β’ hd.args.length = xs.length |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | tauto | case h1.h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
v' : VarName
a1 : isFreeIn v' hd.q
s1 : List.map (fun x => if v = x then V' t else V x) xs = List.map (V β fun x => if v = x then t else x) xs
c1 : X = hd.name β§ xs.length = hd.args.length
β’ hd.args.length = xs.length | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | apply ih V binders | D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ Holds D I (fun c => if c = v then V' t else V c) tl (def_ X xs) β
Holds D I V tl (def_ X (List.map (fun x => if v = x then t else x) xs)) | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ fastAdmitsAux v t binders (def_ X xs)
case h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ β v β binders, V' v = V v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | simp only [fastAdmitsAux] | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ fastAdmitsAux v t binders (def_ X xs) | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ v β xs β t β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | exact h1 | case h1
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ v β xs β t β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem_aux | [1001, 1] | [1136, 17] | exact h2 | case h2
D : Type
I : Interpretation D
V' : VarAssignment D
v t : VarName
hd : Definition
tl : List Definition
ih :
β (V : VarAssignment D) (binders : Finset VarName) (F : Formula),
fastAdmitsAux v t binders F β
(β v β binders, V' v = V v) β
(Holds D I (Function.updateITE V v (V' t)) tl F β Holds D I V tl (fastReplaceFree v t F))
X : DefName
xs : List VarName
V : VarAssignment D
binders : Finset VarName
h1 : v β xs β t β binders
h2 : β v β binders, V' v = V v
aβ : Β¬(X = hd.name β§ (List.map (fun x => if v = x then t else x) xs).length = hd.args.length)
β’ β v β binders, V' v = V v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem | [1139, 1] | [1153, 7] | simp only [fastAdmits] at h1 | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
v t : VarName
F : Formula
h1 : fastAdmits v t F
β’ Holds D I (Function.updateITE V v (V t)) E F β Holds D I V E (fastReplaceFree v t F) | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
v t : VarName
F : Formula
h1 : fastAdmitsAux v t β
F
β’ Holds D I (Function.updateITE V v (V t)) E F β Holds D I V E (fastReplaceFree v t F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem | [1139, 1] | [1153, 7] | apply substitution_theorem_aux D I V V E v t β
F h1 | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
v t : VarName
F : Formula
h1 : fastAdmitsAux v t β
F
β’ Holds D I (Function.updateITE V v (V t)) E F β Holds D I V E (fastReplaceFree v t F) | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
v t : VarName
F : Formula
h1 : fastAdmitsAux v t β
F
β’ β v β β
, V v = V v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_theorem | [1139, 1] | [1153, 7] | simp | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
v t : VarName
F : Formula
h1 : fastAdmitsAux v t β
F
β’ β v β β
, V v = V v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_is_valid | [1156, 1] | [1168, 11] | simp only [IsValid] at h2 | v t : VarName
F : Formula
h1 : fastAdmits v t F
h2 : F.IsValid
β’ (fastReplaceFree v t F).IsValid | v t : VarName
F : Formula
h1 : fastAdmits v t F
h2 : β (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
β’ (fastReplaceFree v t F).IsValid |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_is_valid | [1156, 1] | [1168, 11] | simp only [IsValid] | v t : VarName
F : Formula
h1 : fastAdmits v t F
h2 : β (D : Type) (I : Interpretation D) (V : VarAssignment D) (E : Env), Holds D I V E F
β’ (fastReplaceFree v t F).IsValid | v t : VarName
F : Formula
h1 : fastAdmits v t 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 v t F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_is_valid | [1156, 1] | [1168, 11] | intro D I V E | v t : VarName
F : Formula
h1 : fastAdmits v t 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 v t F) | v t : VarName
F : Formula
h1 : fastAdmits v t 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 v t F) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_is_valid | [1156, 1] | [1168, 11] | simp only [β substitution_theorem D I V E v t F h1] | v t : VarName
F : Formula
h1 : fastAdmits v t 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 v t F) | v t : VarName
F : Formula
h1 : fastAdmits v t 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 (Function.updateITE V v (V t)) E F |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/Admits.lean | FOL.NV.Sub.Var.One.Rec.substitution_is_valid | [1156, 1] | [1168, 11] | apply h2 | v t : VarName
F : Formula
h1 : fastAdmits v t 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 (Function.updateITE V v (V t)) E F | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | induction F generalizing binders | F : Formula
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders F = F | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_const_ aβΒΉ aβ) = pred_const_ aβΒΉ aβ
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_var_ aβΒΉ aβ) = pred_var_ aβΒΉ aβ
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (eq_ aβΒΉ aβ) = eq_ aβΒΉ aβ
case true_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders true_ = true_
case false_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders false_ = false_
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders aβ.not_ = aβ.not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.imp_ aβ) = aβΒΉ.imp_ aβ
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.and_ aβ) = aβΒΉ.and_ aβ
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.or_ aβ) = aβΒΉ.or_ aβ
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.iff_ aβ) = aβΒΉ.iff_ aβ
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (forall_ aβΒΉ aβ) = forall_ aβΒΉ aβ
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (exists_ aβΒΉ aβ) = exists_ aβΒΉ aβ
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = def_ aβΒΉ aβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | any_goals
simp only [replaceFreeAux] | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_const_ aβΒΉ aβ) = pred_const_ aβΒΉ aβ
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_var_ aβΒΉ aβ) = pred_var_ aβΒΉ aβ
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (eq_ aβΒΉ aβ) = eq_ aβΒΉ aβ
case true_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders true_ = true_
case false_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders false_ = false_
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders aβ.not_ = aβ.not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.imp_ aβ) = aβΒΉ.imp_ aβ
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.and_ aβ) = aβΒΉ.and_ aβ
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.or_ aβ) = aβΒΉ.or_ aβ
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.iff_ aβ) = aβΒΉ.iff_ aβ
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (forall_ aβΒΉ aβ) = forall_ aβΒΉ aβ
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (exists_ aβΒΉ aβ) = exists_ aβΒΉ aβ
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = def_ aβΒΉ aβ | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ pred_const_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = pred_const_ aβΒΉ aβ
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ pred_var_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = pred_var_ aβΒΉ aβ
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = aβΒΉ β§ aβΒΉ β binders then t else aβΒΉ) (if v = aβ β§ aβ β binders then t else aβ) = eq_ aβΒΉ aβ
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβ).not_ = aβ.not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).imp_ (replaceFreeAux v t binders aβ) = aβΒΉ.imp_ aβ
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).and_ (replaceFreeAux v t binders aβ) = aβΒΉ.and_ aβ
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).or_ (replaceFreeAux v t binders aβ) = aβΒΉ.or_ aβ
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).iff_ (replaceFreeAux v t binders aβ) = aβΒΉ.iff_ aβ
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ forall_ aβΒΉ (replaceFreeAux v t (binders βͺ {aβΒΉ}) aβ) = forall_ aβΒΉ aβ
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = aβ
binders : Finset VarName
h1 : v β binders
β’ exists_ aβΒΉ (replaceFreeAux v t (binders βͺ {aβΒΉ}) aβ) = exists_ aβΒΉ aβ
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = def_ aβΒΉ aβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case pred_const_ X xs | pred_var_ X xs | def_ X xs =>
simp
simp only [List.map_eq_self_iff]
simp
intro x _ a2 a3
subst a2
contradiction | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ X (List.map (fun x => if v = x β§ x β binders then t else x) xs) = def_ X xs | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case eq_ x y =>
simp
constructor
case left | right =>
intro a1 a2
subst a1
contradiction | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = x β§ x β binders then t else x) (if v = y β§ y β binders then t else y) = eq_ x y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case not_ phi phi_ih =>
tauto | v t : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).not_ = phi.not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case
imp_ phi psi phi_ih psi_ih
| and_ phi psi phi_ih psi_ih
| or_ phi psi phi_ih psi_ih
| iff_ phi psi phi_ih psi_ih =>
simp
tauto | v t : VarName
phi psi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
psi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders psi = psi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).iff_ (replaceFreeAux v t binders psi) = phi.iff_ psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case forall_ x phi phi_ih | exists_ x phi phi_ih =>
simp
apply phi_ih
simp
left
exact h1 | v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ exists_ x (replaceFreeAux v t (binders βͺ {x}) phi) = exists_ x phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp only [replaceFreeAux] | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = def_ aβΒΉ aβ | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = def_ aβΒΉ aβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ X (List.map (fun x => if v = x β§ x β binders then t else x) xs) = def_ X xs | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ List.map (fun x => if v = x β§ x β binders then t else x) xs = xs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp only [List.map_eq_self_iff] | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ List.map (fun x => if v = x β§ x β binders then t else x) xs = xs | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ β x β xs, (if v = x β§ x β binders then t else x) = x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ β x β xs, (if v = x β§ x β binders then t else x) = x | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ β x β xs, v = x β x β binders β t = x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | intro x _ a2 a3 | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ β x β xs, v = x β x β binders β t = x | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
aβ : x β xs
a2 : v = x
a3 : x β binders
β’ t = x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | subst a2 | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
aβ : x β xs
a2 : v = x
a3 : x β binders
β’ t = x | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
aβ : v β xs
a3 : v β binders
β’ t = v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | contradiction | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
aβ : v β xs
a3 : v β binders
β’ t = v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = x β§ x β binders then t else x) (if v = y β§ y β binders then t else y) = eq_ x y | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ (v = x β x β binders β t = x) β§ (v = y β y β binders β t = y) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | constructor | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ (v = x β x β binders β t = x) β§ (v = y β y β binders β t = y) | case left
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = x β x β binders β t = x
case right
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β y β binders β t = y |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | case left | right =>
intro a1 a2
subst a1
contradiction | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β y β binders β t = y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | intro a1 a2 | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β y β binders β t = y | v t x y : VarName
binders : Finset VarName
h1 : v β binders
a1 : v = y
a2 : y β binders
β’ t = y |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | subst a1 | v t x y : VarName
binders : Finset VarName
h1 : v β binders
a1 : v = y
a2 : y β binders
β’ t = y | v t x : VarName
binders : Finset VarName
h1 : v β binders
a2 : v β binders
β’ t = v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | contradiction | v t x : VarName
binders : Finset VarName
h1 : v β binders
a2 : v β binders
β’ t = v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | tauto | v t : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).not_ = phi.not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | v t : VarName
phi psi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
psi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders psi = psi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).iff_ (replaceFreeAux v t binders psi) = phi.iff_ psi | v t : VarName
phi psi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
psi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders psi = psi
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders phi = phi β§ replaceFreeAux v t binders psi = psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | tauto | v t : VarName
phi psi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
psi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders psi = psi
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders phi = phi β§ replaceFreeAux v t binders psi = psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ exists_ x (replaceFreeAux v t (binders βͺ {x}) phi) = exists_ x phi | v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t (binders βͺ {x}) phi = phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | apply phi_ih | v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t (binders βͺ {x}) phi = phi | case h1
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders βͺ {x} |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | simp | case h1
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders βͺ {x} | case h1
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders β¨ v = x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | left | case h1
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders β¨ v = x | case h1.h
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_mem_binders | [122, 1] | [160, 13] | exact h1 | case h1.h
v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = phi
binders : Finset VarName
h1 : v β binders
β’ v β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | induction F generalizing binders | F : Formula
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders F = fastReplaceFree v t F | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_const_ aβΒΉ aβ) = fastReplaceFree v t (pred_const_ aβΒΉ aβ)
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_var_ aβΒΉ aβ) = fastReplaceFree v t (pred_var_ aβΒΉ aβ)
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (eq_ aβΒΉ aβ) = fastReplaceFree v t (eq_ aβΒΉ aβ)
case true_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders true_ = fastReplaceFree v t true_
case false_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders false_ = fastReplaceFree v t false_
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders aβ.not_ = fastReplaceFree v t aβ.not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.imp_ aβ) = fastReplaceFree v t (aβΒΉ.imp_ aβ)
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.and_ aβ) = fastReplaceFree v t (aβΒΉ.and_ aβ)
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.or_ aβ) = fastReplaceFree v t (aβΒΉ.or_ aβ)
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.iff_ aβ) = fastReplaceFree v t (aβΒΉ.iff_ aβ)
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (forall_ aβΒΉ aβ) = fastReplaceFree v t (forall_ aβΒΉ aβ)
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (exists_ aβΒΉ aβ) = fastReplaceFree v t (exists_ aβΒΉ aβ)
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = fastReplaceFree v t (def_ aβΒΉ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | any_goals
simp only [replaceFreeAux]
simp only [fastReplaceFree] | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_const_ aβΒΉ aβ) = fastReplaceFree v t (pred_const_ aβΒΉ aβ)
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (pred_var_ aβΒΉ aβ) = fastReplaceFree v t (pred_var_ aβΒΉ aβ)
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (eq_ aβΒΉ aβ) = fastReplaceFree v t (eq_ aβΒΉ aβ)
case true_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders true_ = fastReplaceFree v t true_
case false_
v t : VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders false_ = fastReplaceFree v t false_
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders aβ.not_ = fastReplaceFree v t aβ.not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.imp_ aβ) = fastReplaceFree v t (aβΒΉ.imp_ aβ)
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.and_ aβ) = fastReplaceFree v t (aβΒΉ.and_ aβ)
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.or_ aβ) = fastReplaceFree v t (aβΒΉ.or_ aβ)
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (aβΒΉ.iff_ aβ) = fastReplaceFree v t (aβΒΉ.iff_ aβ)
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (forall_ aβΒΉ aβ) = fastReplaceFree v t (forall_ aβΒΉ aβ)
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (exists_ aβΒΉ aβ) = fastReplaceFree v t (exists_ aβΒΉ aβ)
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = fastReplaceFree v t (def_ aβΒΉ aβ) | case pred_const_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ pred_const_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) =
pred_const_ aβΒΉ (List.map (fun x => if v = x then t else x) aβ)
case pred_var_
v t : VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ pred_var_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) =
pred_var_ aβΒΉ (List.map (fun x => if v = x then t else x) aβ)
case eq_
v t aβΒΉ aβ : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = aβΒΉ β§ aβΒΉ β binders then t else aβΒΉ) (if v = aβ β§ aβ β binders then t else aβ) =
eq_ (if v = aβΒΉ then t else aβΒΉ) (if v = aβ then t else aβ)
case not_
v t : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβ).not_ = (fastReplaceFree v t aβ).not_
case imp_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).imp_ (replaceFreeAux v t binders aβ) =
(fastReplaceFree v t aβΒΉ).imp_ (fastReplaceFree v t aβ)
case and_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).and_ (replaceFreeAux v t binders aβ) =
(fastReplaceFree v t aβΒΉ).and_ (fastReplaceFree v t aβ)
case or_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).or_ (replaceFreeAux v t binders aβ) =
(fastReplaceFree v t aβΒΉ).or_ (fastReplaceFree v t aβ)
case iff_
v t : VarName
aβΒΉ aβ : Formula
a_ihβΒΉ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβΒΉ = fastReplaceFree v t aβΒΉ
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders aβΒΉ).iff_ (replaceFreeAux v t binders aβ) =
(fastReplaceFree v t aβΒΉ).iff_ (fastReplaceFree v t aβ)
case forall_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ forall_ aβΒΉ (replaceFreeAux v t (binders βͺ {aβΒΉ}) aβ) =
if v = aβΒΉ then forall_ aβΒΉ aβ else forall_ aβΒΉ (fastReplaceFree v t aβ)
case exists_
v t aβΒΉ : VarName
aβ : Formula
a_ihβ : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders aβ = fastReplaceFree v t aβ
binders : Finset VarName
h1 : v β binders
β’ exists_ aβΒΉ (replaceFreeAux v t (binders βͺ {aβΒΉ}) aβ) =
if v = aβΒΉ then exists_ aβΒΉ aβ else exists_ aβΒΉ (fastReplaceFree v t aβ)
case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) =
def_ aβΒΉ (List.map (fun x => if v = x then t else x) aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case pred_const_ X xs | pred_var_ X xs | def_ X xs =>
congr!
case _ x =>
constructor
case mp =>
tauto
case mpr =>
intro a1
subst a1
tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ X (List.map (fun x => if v = x β§ x β binders then t else x) xs) =
def_ X (List.map (fun x => if v = x then t else x) xs) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case eq_ x y =>
congr!
case _ | _ =>
constructor
case mp =>
tauto
case mpr =>
intro a1
subst a1
tauto | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = x β§ x β binders then t else x) (if v = y β§ y β binders then t else y) =
eq_ (if v = x then t else x) (if v = y then t else y) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case not_ phi phi_ih =>
tauto | v t : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = fastReplaceFree v t phi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).not_ = (fastReplaceFree v t phi).not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case
imp_ phi psi phi_ih psi_ih
| and_ phi psi phi_ih psi_ih
| or_ phi psi phi_ih psi_ih
| iff_ phi psi phi_ih psi_ih =>
simp
tauto | v t : VarName
phi psi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = fastReplaceFree v t phi
psi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders psi = fastReplaceFree v t psi
binders : Finset VarName
h1 : v β binders
β’ (replaceFreeAux v t binders phi).iff_ (replaceFreeAux v t binders psi) =
(fastReplaceFree v t phi).iff_ (fastReplaceFree v t psi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case forall_ x phi phi_ih | exists_ x phi phi_ih =>
split_ifs
case pos c1 =>
congr! 1
apply replaceFreeAux_mem_binders
simp
right
exact c1
case neg c1 =>
congr! 1
apply phi_ih
simp
tauto | v t x : VarName
phi : Formula
phi_ih : β (binders : Finset VarName), v β binders β replaceFreeAux v t binders phi = fastReplaceFree v t phi
binders : Finset VarName
h1 : v β binders
β’ exists_ x (replaceFreeAux v t (binders βͺ {x}) phi) =
if v = x then exists_ x phi else exists_ x (fastReplaceFree v t phi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | simp only [replaceFreeAux] | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ replaceFreeAux v t binders (def_ aβΒΉ aβ) = fastReplaceFree v t (def_ aβΒΉ aβ) | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = fastReplaceFree v t (def_ aβΒΉ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | simp only [fastReplaceFree] | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) = fastReplaceFree v t (def_ aβΒΉ aβ) | case def_
v t : VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ aβΒΉ (List.map (fun x => if v = x β§ x β binders then t else x) aβ) =
def_ aβΒΉ (List.map (fun x => if v = x then t else x) aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | congr! | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ def_ X (List.map (fun x => if v = x β§ x β binders then t else x) xs) =
def_ X (List.map (fun x => if v = x then t else x) xs) | case h.e'_2.h.e'_3.h.hβ.a
v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
xβ : VarName
β’ v = xβ β§ xβ β binders β v = xβ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case _ x =>
constructor
case mp =>
tauto
case mpr =>
intro a1
subst a1
tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β§ x β binders β v = x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | constructor | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β§ x β binders β v = x | case mp
v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β§ x β binders β v = x
case mpr
v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β v = x β§ x β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case mp =>
tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β§ x β binders β v = x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case mpr =>
intro a1
subst a1
tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β v = x β§ x β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β§ x β binders β v = x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | intro a1 | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
β’ v = x β v = x β§ x β binders | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
a1 : v = x
β’ v = x β§ x β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | subst a1 | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
x : VarName
a1 : v = x
β’ v = x β§ x β binders | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ v = v β§ v β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | tauto | v t : VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : v β binders
β’ v = v β§ v β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | congr! | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ eq_ (if v = x β§ x β binders then t else x) (if v = y β§ y β binders then t else y) =
eq_ (if v = x then t else x) (if v = y then t else y) | case h.e'_1.hβ.a
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = x β§ x β binders β v = x
case h.e'_2.hβ.a
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case _ | _ =>
constructor
case mp =>
tauto
case mpr =>
intro a1
subst a1
tauto | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | constructor | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y | case mp
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y
case mpr
v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β v = y β§ y β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case mp =>
tauto | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | case mpr =>
intro a1
subst a1
tauto | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β v = y β§ y β binders | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | tauto | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β§ y β binders β v = y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | intro a1 | v t x y : VarName
binders : Finset VarName
h1 : v β binders
β’ v = y β v = y β§ y β binders | v t x y : VarName
binders : Finset VarName
h1 : v β binders
a1 : v = y
β’ v = y β§ y β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | subst a1 | v t x y : VarName
binders : Finset VarName
h1 : v β binders
a1 : v = y
β’ v = y β§ y β binders | v t x : VarName
binders : Finset VarName
h1 : v β binders
β’ v = v β§ v β binders |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/One/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.One.Rec.replaceFreeAux_eq_fastReplaceFree | [163, 1] | [216, 12] | tauto | v t x : VarName
binders : Finset VarName
h1 : v β binders
β’ v = v β§ v β binders | no goals |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.