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/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | apply h1 | case h.e'_1.h1
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ Ο v = Ο' v | case h.e'_1.h1.a
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ isFreeIn v phi β¨ isFreeIn v psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | left | case h.e'_1.h1.a
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ isFreeIn v phi β¨ isFreeIn v psi | case h.e'_1.h1.a.h
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ isFreeIn v phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | exact a1 | case h.e'_1.h1.a.h
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ isFreeIn v phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | apply psi_ih | case h.e'_2
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
β’ fastReplaceFree Ο psi = fastReplaceFree Ο' psi | case h.e'_2.h1
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
β’ β (v : VarName), isFreeIn v psi β Ο v = Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | intro v a1 | case h.e'_2.h1
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
β’ β (v : VarName), isFreeIn v psi β Ο v = Ο' v | case h.e'_2.h1
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ Ο v = Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | apply h1 | case h.e'_2.h1
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ Ο v = Ο' v | case h.e'_2.h1.a
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ isFreeIn v phi β¨ isFreeIn v psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | right | case h.e'_2.h1.a
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ isFreeIn v phi β¨ isFreeIn v psi | case h.e'_2.h1.a.h
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ isFreeIn v psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | exact a1 | case h.e'_2.h1.a.h
phi psi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
psi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v psi β Ο v = Ο' v) β fastReplaceFree Ο psi = fastReplaceFree Ο' psi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), isFreeIn v phi β¨ isFreeIn v psi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v psi
β’ isFreeIn v psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | congr! 1 | x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
β’ exists_ x (fastReplaceFree (Function.updateITE Ο x x) phi) =
exists_ x (fastReplaceFree (Function.updateITE Ο' x x) phi) | case h.e'_2
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
β’ fastReplaceFree (Function.updateITE Ο x x) phi = fastReplaceFree (Function.updateITE Ο' x x) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | apply phi_ih | case h.e'_2
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
β’ fastReplaceFree (Function.updateITE Ο x x) phi = fastReplaceFree (Function.updateITE Ο' x x) phi | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
β’ β (v : VarName), isFreeIn v phi β Function.updateITE Ο x x v = Function.updateITE Ο' x x v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | intro v a1 | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
β’ β (v : VarName), isFreeIn v phi β Function.updateITE Ο x x v = Function.updateITE Ο' x x v | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ Function.updateITE Ο x x v = Function.updateITE Ο' x x v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | simp only [Function.updateITE] | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ Function.updateITE Ο x x v = Function.updateITE Ο' x x v | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ (if v = x then x else Ο v) = if v = x then x else Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | split_ifs | case h.e'_2.h1
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
β’ (if v = x then x else Ο v) = if v = x then x else Ο' v | case pos
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
hβ : v = x
β’ x = x
case neg
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
hβ : Β¬v = x
β’ Ο v = Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | case _ c1 =>
rfl | x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : v = x
β’ x = x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | case _ c1 =>
apply h1
tauto | x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : Β¬v = x
β’ Ο v = Ο' v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | rfl | x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : v = x
β’ x = x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | apply h1 | x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : Β¬v = x
β’ Ο v = Ο' v | case a
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : Β¬v = x
β’ Β¬v = x β§ isFreeIn v phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.fastReplaceFree_same_on_free | [171, 1] | [223, 12] | tauto | case a
x : VarName
phi : Formula
phi_ih :
β (Ο Ο' : VarName β VarName),
(β (v : VarName), isFreeIn v phi β Ο v = Ο' v) β fastReplaceFree Ο phi = fastReplaceFree Ο' phi
Ο Ο' : VarName β VarName
h1 : β (v : VarName), Β¬v = x β§ isFreeIn v phi β Ο v = Ο' v
v : VarName
a1 : isFreeIn v phi
c1 : Β¬v = x
β’ Β¬v = x β§ isFreeIn v phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | induction F generalizing binders | F : Formula
Ο Ο' : VarName β VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders F = replaceFreeAux Ο' binders F | case pred_const_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (pred_const_ aβΒΉ aβ) = replaceFreeAux Ο' binders (pred_const_ aβΒΉ aβ)
case pred_var_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (pred_var_ aβΒΉ aβ) = replaceFreeAux Ο' binders (pred_var_ aβΒΉ aβ)
case eq_
Ο Ο' : VarName β VarName
aβΒΉ aβ : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (eq_ aβΒΉ aβ) = replaceFreeAux Ο' binders (eq_ aβΒΉ aβ)
case true_
Ο Ο' : VarName β VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders true_ = replaceFreeAux Ο' binders true_
case false_
Ο Ο' : VarName β VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders false_ = replaceFreeAux Ο' binders false_
case not_
Ο Ο' : VarName β VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders aβ.not_ = replaceFreeAux Ο' binders aβ.not_
case imp_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.imp_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.imp_ aβ)
case and_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.and_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.and_ aβ)
case or_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.or_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.or_ aβ)
case iff_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.iff_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.iff_ aβ)
case forall_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (forall_ aβΒΉ aβ) = replaceFreeAux Ο' binders (forall_ aβΒΉ aβ)
case exists_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (exists_ aβΒΉ aβ) = replaceFreeAux Ο' binders (exists_ aβΒΉ aβ)
case def_
Ο Ο' : VarName β VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (def_ aβΒΉ aβ) = replaceFreeAux Ο' binders (def_ aβΒΉ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | all_goals
simp only [replaceFreeAux] | case pred_const_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (pred_const_ aβΒΉ aβ) = replaceFreeAux Ο' binders (pred_const_ aβΒΉ aβ)
case pred_var_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (pred_var_ aβΒΉ aβ) = replaceFreeAux Ο' binders (pred_var_ aβΒΉ aβ)
case eq_
Ο Ο' : VarName β VarName
aβΒΉ aβ : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (eq_ aβΒΉ aβ) = replaceFreeAux Ο' binders (eq_ aβΒΉ aβ)
case true_
Ο Ο' : VarName β VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders true_ = replaceFreeAux Ο' binders true_
case false_
Ο Ο' : VarName β VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders false_ = replaceFreeAux Ο' binders false_
case not_
Ο Ο' : VarName β VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders aβ.not_ = replaceFreeAux Ο' binders aβ.not_
case imp_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.imp_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.imp_ aβ)
case and_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.and_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.and_ aβ)
case or_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.or_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.or_ aβ)
case iff_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (aβΒΉ.iff_ aβ) = replaceFreeAux Ο' binders (aβΒΉ.iff_ aβ)
case forall_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (forall_ aβΒΉ aβ) = replaceFreeAux Ο' binders (forall_ aβΒΉ aβ)
case exists_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (exists_ aβΒΉ aβ) = replaceFreeAux Ο' binders (exists_ aβΒΉ aβ)
case def_
Ο Ο' : VarName β VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (def_ aβΒΉ aβ) = replaceFreeAux Ο' binders (def_ aβΒΉ aβ) | case pred_const_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ pred_const_ aβΒΉ (List.map (fun x => if x β binders then Ο x else x) aβ) =
pred_const_ aβΒΉ (List.map (fun x => if x β binders then Ο' x else x) aβ)
case pred_var_
Ο Ο' : VarName β VarName
aβΒΉ : PredName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ pred_var_ aβΒΉ (List.map (fun x => if x β binders then Ο x else x) aβ) =
pred_var_ aβΒΉ (List.map (fun x => if x β binders then Ο' x else x) aβ)
case eq_
Ο Ο' : VarName β VarName
aβΒΉ aβ : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ eq_ (if aβΒΉ β binders then Ο aβΒΉ else aβΒΉ) (if aβ β binders then Ο aβ else aβ) =
eq_ (if aβΒΉ β binders then Ο' aβΒΉ else aβΒΉ) (if aβ β binders then Ο' aβ else aβ)
case not_
Ο Ο' : VarName β VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders aβ).not_ = (replaceFreeAux Ο' binders aβ).not_
case imp_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders aβΒΉ).imp_ (replaceFreeAux Ο binders aβ) =
(replaceFreeAux Ο' binders aβΒΉ).imp_ (replaceFreeAux Ο' binders aβ)
case and_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders aβΒΉ).and_ (replaceFreeAux Ο binders aβ) =
(replaceFreeAux Ο' binders aβΒΉ).and_ (replaceFreeAux Ο' binders aβ)
case or_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders aβΒΉ).or_ (replaceFreeAux Ο binders aβ) =
(replaceFreeAux Ο' binders aβΒΉ).or_ (replaceFreeAux Ο' binders aβ)
case iff_
Ο Ο' : VarName β VarName
aβΒΉ aβ : Formula
a_ihβΒΉ :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβΒΉ = replaceFreeAux Ο' binders aβΒΉ
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders aβΒΉ).iff_ (replaceFreeAux Ο binders aβ) =
(replaceFreeAux Ο' binders aβΒΉ).iff_ (replaceFreeAux Ο' binders aβ)
case forall_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ forall_ aβΒΉ (replaceFreeAux Ο (binders βͺ {aβΒΉ}) aβ) = forall_ aβΒΉ (replaceFreeAux Ο' (binders βͺ {aβΒΉ}) aβ)
case exists_
Ο Ο' : VarName β VarName
aβΒΉ : VarName
aβ : Formula
a_ihβ :
β (binders : Finset VarName), (β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders aβ = replaceFreeAux Ο' binders aβ
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ exists_ aβΒΉ (replaceFreeAux Ο (binders βͺ {aβΒΉ}) aβ) = exists_ aβΒΉ (replaceFreeAux Ο' (binders βͺ {aβΒΉ}) aβ)
case def_
Ο Ο' : VarName β VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ def_ aβΒΉ (List.map (fun x => if x β binders then Ο x else x) aβ) =
def_ aβΒΉ (List.map (fun x => if x β binders then Ο' x else x) aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | case pred_const_ X xs | pred_var_ X xs | def_ X xs =>
congr! 1
simp only [List.map_eq_map_iff]
intro x _
split_ifs <;> tauto | Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ def_ X (List.map (fun x => if x β binders then Ο x else x) xs) =
def_ X (List.map (fun x => if x β binders then Ο' x else x) xs) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | case not_ phi phi_ih =>
simp
tauto | Ο Ο' : VarName β VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders phi).not_ = (replaceFreeAux Ο' binders phi).not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | 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 | Ο Ο' : VarName β VarName
phi psi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
psi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders phi).iff_ (replaceFreeAux Ο binders psi) =
(replaceFreeAux Ο' binders phi).iff_ (replaceFreeAux Ο' binders psi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | case forall_ x phi phi_ih | exists_ x phi phi_ih =>
congr! 1
apply phi_ih
simp
tauto | Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ exists_ x (replaceFreeAux Ο (binders βͺ {x}) phi) = exists_ x (replaceFreeAux Ο' (binders βͺ {x}) phi) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | simp only [replaceFreeAux] | case def_
Ο Ο' : VarName β VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders (def_ aβΒΉ aβ) = replaceFreeAux Ο' binders (def_ aβΒΉ aβ) | case def_
Ο Ο' : VarName β VarName
aβΒΉ : DefName
aβ : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ def_ aβΒΉ (List.map (fun x => if x β binders then Ο x else x) aβ) =
def_ aβΒΉ (List.map (fun x => if x β binders then Ο' x else x) aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | congr! 1 | Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ def_ X (List.map (fun x => if x β binders then Ο x else x) xs) =
def_ X (List.map (fun x => if x β binders then Ο' x else x) xs) | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ List.map (fun x => if x β binders then Ο x else x) xs = List.map (fun x => if x β binders then Ο' x else x) xs |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | simp only [List.map_eq_map_iff] | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ List.map (fun x => if x β binders then Ο x else x) xs = List.map (fun x => if x β binders then Ο' x else x) xs | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β x β xs, (if x β binders then Ο x else x) = if x β binders then Ο' x else x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | intro x _ | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β x β xs, (if x β binders then Ο x else x) = if x β binders then Ο' x else x | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
x : VarName
aβ : x β xs
β’ (if x β binders then Ο x else x) = if x β binders then Ο' x else x |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | split_ifs <;> tauto | case h.e'_2
Ο Ο' : VarName β VarName
X : DefName
xs : List VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
x : VarName
aβ : x β xs
β’ (if x β binders then Ο x else x) = if x β binders then Ο' x else x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | congr! 1 | Ο Ο' : VarName β VarName
x y : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ eq_ (if x β binders then Ο x else x) (if y β binders then Ο y else y) =
eq_ (if x β binders then Ο' x else x) (if y β binders then Ο' y else y) | case h.e'_1
Ο Ο' : VarName β VarName
x y : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (if x β binders then Ο x else x) = if x β binders then Ο' x else x
case h.e'_2
Ο Ο' : VarName β VarName
x y : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (if y β binders then Ο y else y) = if y β binders then Ο' y else y |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | split_ifs <;> tauto | case h.e'_1
Ο Ο' : VarName β VarName
x y : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (if x β binders then Ο x else x) = if x β binders then Ο' x else x | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | split_ifs <;> tauto | case h.e'_2
Ο Ο' : VarName β VarName
x y : VarName
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (if y β binders then Ο y else y) = if y β binders then Ο' y else y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | simp | Ο Ο' : VarName β VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders phi).not_ = (replaceFreeAux Ο' binders phi).not_ | Ο Ο' : VarName β VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | tauto | Ο Ο' : VarName β VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | simp | Ο Ο' : VarName β VarName
phi psi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
psi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ (replaceFreeAux Ο binders phi).iff_ (replaceFreeAux Ο binders psi) =
(replaceFreeAux Ο' binders phi).iff_ (replaceFreeAux Ο' binders psi) | Ο Ο' : VarName β VarName
phi psi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
psi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi β§
replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | tauto | Ο Ο' : VarName β VarName
phi psi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
psi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi β§
replaceFreeAux Ο binders psi = replaceFreeAux Ο' binders psi | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | congr! 1 | Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ exists_ x (replaceFreeAux Ο (binders βͺ {x}) phi) = exists_ x (replaceFreeAux Ο' (binders βͺ {x}) phi) | case h.e'_2
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο (binders βͺ {x}) phi = replaceFreeAux Ο' (binders βͺ {x}) phi |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | apply phi_ih | case h.e'_2
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ replaceFreeAux Ο (binders βͺ {x}) phi = replaceFreeAux Ο' (binders βͺ {x}) phi | case h.e'_2.h1
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β v β binders βͺ {x}, Ο v = Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | simp | case h.e'_2.h1
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β v β binders βͺ {x}, Ο v = Ο' v | case h.e'_2.h1
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β v β binders, Β¬v = x β Ο v = Ο' v |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/ReplaceFree.lean | FOL.NV.Sub.Var.All.Rec.replaceFreeAux_same_on_free | [226, 1] | [260, 10] | tauto | case h.e'_2.h1
Ο Ο' : VarName β VarName
x : VarName
phi : Formula
phi_ih :
β (binders : Finset VarName),
(β v β binders, Ο v = Ο' v) β replaceFreeAux Ο binders phi = replaceFreeAux Ο' binders phi
binders : Finset VarName
h1 : β v β binders, Ο v = Ο' v
β’ β v β binders, Β¬v = x β Ο v = Ο' v | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | induction F generalizing Ο | Ο : VarName β VarName
c : Char
F : Formula
β’ (sub Ο c F).freeVarSet = Finset.image Ο F.freeVarSet | case pred_const_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (pred_const_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (pred_const_ aβΒΉ aβ).freeVarSet
case pred_var_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (pred_var_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (pred_var_ aβΒΉ aβ).freeVarSet
case eq_
c : Char
aβΒΉ aβ : VarName
Ο : VarName β VarName
β’ (sub Ο c (eq_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (eq_ aβΒΉ aβ).freeVarSet
case true_
c : Char
Ο : VarName β VarName
β’ (sub Ο c true_).freeVarSet = Finset.image Ο true_.freeVarSet
case false_
c : Char
Ο : VarName β VarName
β’ (sub Ο c false_).freeVarSet = Finset.image Ο false_.freeVarSet
case not_
c : Char
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβ.not_).freeVarSet = Finset.image Ο aβ.not_.freeVarSet
case imp_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.imp_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.imp_ aβ).freeVarSet
case and_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.and_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.and_ aβ).freeVarSet
case or_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.or_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.or_ aβ).freeVarSet
case iff_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.iff_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.iff_ aβ).freeVarSet
case forall_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (forall_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (forall_ aβΒΉ aβ).freeVarSet
case exists_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (exists_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (exists_ aβΒΉ aβ).freeVarSet
case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (def_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (def_ aβΒΉ aβ).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | all_goals
simp only [sub]
simp only [freeVarSet] | case pred_const_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (pred_const_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (pred_const_ aβΒΉ aβ).freeVarSet
case pred_var_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (pred_var_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (pred_var_ aβΒΉ aβ).freeVarSet
case eq_
c : Char
aβΒΉ aβ : VarName
Ο : VarName β VarName
β’ (sub Ο c (eq_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (eq_ aβΒΉ aβ).freeVarSet
case true_
c : Char
Ο : VarName β VarName
β’ (sub Ο c true_).freeVarSet = Finset.image Ο true_.freeVarSet
case false_
c : Char
Ο : VarName β VarName
β’ (sub Ο c false_).freeVarSet = Finset.image Ο false_.freeVarSet
case not_
c : Char
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβ.not_).freeVarSet = Finset.image Ο aβ.not_.freeVarSet
case imp_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.imp_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.imp_ aβ).freeVarSet
case and_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.and_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.and_ aβ).freeVarSet
case or_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.or_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.or_ aβ).freeVarSet
case iff_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (aβΒΉ.iff_ aβ)).freeVarSet = Finset.image Ο (aβΒΉ.iff_ aβ).freeVarSet
case forall_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (forall_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (forall_ aβΒΉ aβ).freeVarSet
case exists_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c (exists_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (exists_ aβΒΉ aβ).freeVarSet
case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (def_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (def_ aβΒΉ aβ).freeVarSet | case pred_const_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (List.map Ο aβ).toFinset = Finset.image Ο aβ.toFinset
case pred_var_
c : Char
aβΒΉ : PredName
aβ : List VarName
Ο : VarName β VarName
β’ (List.map Ο aβ).toFinset = Finset.image Ο aβ.toFinset
case eq_
c : Char
aβΒΉ aβ : VarName
Ο : VarName β VarName
β’ {Ο aβΒΉ, Ο aβ} = Finset.image Ο {aβΒΉ, aβ}
case true_
c : Char
Ο : VarName β VarName
β’ β
= Finset.image Ο β
case false_
c : Char
Ο : VarName β VarName
β’ β
= Finset.image Ο β
case not_
c : Char
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
case imp_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβΒΉ).freeVarSet βͺ (sub Ο c aβ).freeVarSet = Finset.image Ο (aβΒΉ.freeVarSet βͺ aβ.freeVarSet)
case and_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβΒΉ).freeVarSet βͺ (sub Ο c aβ).freeVarSet = Finset.image Ο (aβΒΉ.freeVarSet βͺ aβ.freeVarSet)
case or_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβΒΉ).freeVarSet βͺ (sub Ο c aβ).freeVarSet = Finset.image Ο (aβΒΉ.freeVarSet βͺ aβ.freeVarSet)
case iff_
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (Ο : VarName β VarName), (sub Ο c aβΒΉ).freeVarSet = Finset.image Ο aβΒΉ.freeVarSet
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c aβΒΉ).freeVarSet βͺ (sub Ο c aβ).freeVarSet = Finset.image Ο (aβΒΉ.freeVarSet βͺ aβ.freeVarSet)
case forall_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub
(Function.updateITE Ο aβΒΉ
(if β y β aβ.freeVarSet \ {aβΒΉ}, Ο y = aβΒΉ then
fresh aβΒΉ c (sub (Function.updateITE Ο aβΒΉ aβΒΉ) c aβ).freeVarSet
else aβΒΉ))
c aβ).freeVarSet \
{if β y β aβ.freeVarSet \ {aβΒΉ}, Ο y = aβΒΉ then fresh aβΒΉ c (sub (Function.updateITE Ο aβΒΉ aβΒΉ) c aβ).freeVarSet
else aβΒΉ} =
Finset.image Ο (aβ.freeVarSet \ {aβΒΉ})
case exists_
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (Ο : VarName β VarName), (sub Ο c aβ).freeVarSet = Finset.image Ο aβ.freeVarSet
Ο : VarName β VarName
β’ (sub
(Function.updateITE Ο aβΒΉ
(if β y β aβ.freeVarSet \ {aβΒΉ}, Ο y = aβΒΉ then
fresh aβΒΉ c (sub (Function.updateITE Ο aβΒΉ aβΒΉ) c aβ).freeVarSet
else aβΒΉ))
c aβ).freeVarSet \
{if β y β aβ.freeVarSet \ {aβΒΉ}, Ο y = aβΒΉ then fresh aβΒΉ c (sub (Function.updateITE Ο aβΒΉ aβΒΉ) c aβ).freeVarSet
else aβΒΉ} =
Finset.image Ο (aβ.freeVarSet \ {aβΒΉ})
case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (List.map Ο aβ).toFinset = Finset.image Ο aβ.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case pred_const_ X xs | pred_var_ X xs | eq_ x y | def_ X xs =>
apply Finset.ext
intro a
simp | c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
β’ (List.map Ο xs).toFinset = Finset.image Ο xs.toFinset | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case true_ | false_ =>
simp | c : Char
Ο : VarName β VarName
β’ β
= Finset.image Ο β
| no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case not_ phi phi_ih =>
exact phi_ih Ο | c : Char
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case forall_ x phi phi_ih | exists_ x phi phi_ih =>
simp only [phi_ih]
simp only [<- Finset.image_sdiff_singleton_updateITE phi.freeVarSet x x Ο]
split_ifs
case _ c1 =>
obtain s1 := fresh_not_mem x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi))
generalize (
fresh x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi)) ) = x' at *
have s2 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) β Finset.image (Function.updateITE Ο x x) (freeVarSet phi)
apply Finset.image_subset_image
simp
have s3 : x' β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x})
apply Finset.not_mem_mono s2 s1
calc
Finset.image (Function.updateITE Ο x x') (freeVarSet phi) \ {x'}
= Finset.image (Function.updateITE Ο x x') (freeVarSet phi \ {x}) \ {x'} :=
by
{
apply Finset.image_sdiff_singleton phi.freeVarSet x x' (Function.updateITE Ο x x')
simp only [Function.updateITE]
simp
}
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x'} :=
by simp only [Finset.image_congr_update_ite phi.freeVarSet x x' x]
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) :=
by exact Finset.sdiff_singleton_eq_self s3
case _ c1 =>
simp at c1
have s1 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi) \ {x} = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x}
apply Finset.image_sdiff_singleton
simp only [Function.updateITE]
simp
simp only [s1]
clear s1
have s2 : x β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x})
simp only [Finset.mem_image]
simp
simp only [Function.updateITE]
simp
tauto
simp only [Finset.sdiff_singleton_eq_self s2] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ (sub
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (sub (Function.updateITE Ο x x) c phi).freeVarSet
else x))
c phi).freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (sub (Function.updateITE Ο x x) c phi).freeVarSet else x} =
Finset.image Ο (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [sub] | case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (sub Ο c (def_ aβΒΉ aβ)).freeVarSet = Finset.image Ο (def_ aβΒΉ aβ).freeVarSet | case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (def_ aβΒΉ (List.map Ο aβ)).freeVarSet = Finset.image Ο (def_ aβΒΉ aβ).freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [freeVarSet] | case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (def_ aβΒΉ (List.map Ο aβ)).freeVarSet = Finset.image Ο (def_ aβΒΉ aβ).freeVarSet | case def_
c : Char
aβΒΉ : DefName
aβ : List VarName
Ο : VarName β VarName
β’ (List.map Ο aβ).toFinset = Finset.image Ο aβ.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | apply Finset.ext | c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
β’ (List.map Ο xs).toFinset = Finset.image Ο xs.toFinset | case a
c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
β’ β (a : VarName), a β (List.map Ο xs).toFinset β a β Finset.image Ο xs.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | intro a | case a
c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
β’ β (a : VarName), a β (List.map Ο xs).toFinset β a β Finset.image Ο xs.toFinset | case a
c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
a : VarName
β’ a β (List.map Ο xs).toFinset β a β Finset.image Ο xs.toFinset |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | case a
c : Char
X : DefName
xs : List VarName
Ο : VarName β VarName
a : VarName
β’ a β (List.map Ο xs).toFinset β a β Finset.image Ο xs.toFinset | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | c : Char
Ο : VarName β VarName
β’ β
= Finset.image Ο β
| no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | exact phi_ih Ο | c : Char
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Finset.image_union] | c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet βͺ (sub Ο c psi).freeVarSet = Finset.image Ο (phi.freeVarSet βͺ psi.freeVarSet) | c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet βͺ (sub Ο c psi).freeVarSet = Finset.image Ο phi.freeVarSet βͺ Finset.image Ο psi.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | congr! | c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet βͺ (sub Ο c psi).freeVarSet = Finset.image Ο phi.freeVarSet βͺ Finset.image Ο psi.freeVarSet | case h.e'_3
c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
case h.e'_4
c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | exact phi_ih Ο | case h.e'_3
c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | exact psi_ih Ο | case h.e'_4
c : Char
phi psi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
psi_ih : β (Ο : VarName β VarName), (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet
Ο : VarName β VarName
β’ (sub Ο c psi).freeVarSet = Finset.image Ο psi.freeVarSet | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [phi_ih] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ (sub
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (sub (Function.updateITE Ο x x) c phi).freeVarSet
else x))
c phi).freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (sub (Function.updateITE Ο x x) c phi).freeVarSet else x} =
Finset.image Ο (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ Finset.image
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x))
phi.freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x} =
Finset.image Ο (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [<- Finset.image_sdiff_singleton_updateITE phi.freeVarSet x x Ο] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ Finset.image
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x))
phi.freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x} =
Finset.image Ο (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ Finset.image
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x))
phi.freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | split_ifs | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
β’ Finset.image
(Function.updateITE Ο x
(if β y β phi.freeVarSet \ {x}, Ο y = x then
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x))
phi.freeVarSet \
{if β y β phi.freeVarSet \ {x}, Ο y = x then fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)
else x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case pos
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
hβ : β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x (fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)))
phi.freeVarSet \
{fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
case neg
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
hβ : Β¬β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case _ c1 =>
obtain s1 := fresh_not_mem x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi))
generalize (
fresh x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi)) ) = x' at *
have s2 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) β Finset.image (Function.updateITE Ο x x) (freeVarSet phi)
apply Finset.image_subset_image
simp
have s3 : x' β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x})
apply Finset.not_mem_mono s2 s1
calc
Finset.image (Function.updateITE Ο x x') (freeVarSet phi) \ {x'}
= Finset.image (Function.updateITE Ο x x') (freeVarSet phi \ {x}) \ {x'} :=
by
{
apply Finset.image_sdiff_singleton phi.freeVarSet x x' (Function.updateITE Ο x x')
simp only [Function.updateITE]
simp
}
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x'} :=
by simp only [Finset.image_congr_update_ite phi.freeVarSet x x' x]
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) :=
by exact Finset.sdiff_singleton_eq_self s3 | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x (fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)))
phi.freeVarSet \
{fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | case _ c1 =>
simp at c1
have s1 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi) \ {x} = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x}
apply Finset.image_sdiff_singleton
simp only [Function.updateITE]
simp
simp only [s1]
clear s1
have s2 : x β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x})
simp only [Finset.mem_image]
simp
simp only [Function.updateITE]
simp
tauto
simp only [Finset.sdiff_singleton_eq_self s2] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : Β¬β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | obtain s1 := fresh_not_mem x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi)) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x (fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)))
phi.freeVarSet \
{fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
s1 :
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x (fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)))
phi.freeVarSet \
{fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | generalize (
fresh x c (Finset.image (Function.updateITE Ο x x) (freeVarSet phi)) ) = x' at * | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
s1 :
fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x (fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)))
phi.freeVarSet \
{fresh x c (Finset.image (Function.updateITE Ο x x) phi.freeVarSet)} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | have s2 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) β Finset.image (Function.updateITE Ο x x) (freeVarSet phi) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | apply Finset.image_subset_image | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2.h
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ phi.freeVarSet \ {x} β phi.freeVarSet
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | case s2.h
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ phi.freeVarSet \ {x} β phi.freeVarSet
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | have s3 : x' β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s3
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | apply Finset.not_mem_mono s2 s1 | case s3
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
β’ x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | calc
Finset.image (Function.updateITE Ο x x') (freeVarSet phi) \ {x'}
= Finset.image (Function.updateITE Ο x x') (freeVarSet phi \ {x}) \ {x'} :=
by
{
apply Finset.image_sdiff_singleton phi.freeVarSet x x' (Function.updateITE Ο x x')
simp only [Function.updateITE]
simp
}
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x'} :=
by simp only [Finset.image_congr_update_ite phi.freeVarSet x x' x]
_ = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) :=
by exact Finset.sdiff_singleton_eq_self s3 | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | apply Finset.image_sdiff_singleton phi.freeVarSet x x' (Function.updateITE Ο x x') | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') phi.freeVarSet \ {x'} =
Finset.image (Function.updateITE Ο x x') (phi.freeVarSet \ {x}) \ {x'} | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Function.updateITE Ο x x' x = x' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Function.updateITE] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Function.updateITE Ο x x' x = x' | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ (if True then x' else Ο x) = x' |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ (if True then x' else Ο x) = x' | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Finset.image_congr_update_ite phi.freeVarSet x x' x] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x') (phi.freeVarSet \ {x}) \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x'} | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | exact Finset.sdiff_singleton_eq_self s3 | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β y β phi.freeVarSet \ {x}, Ο y = x
x' : VarName
s1 : x' β Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s2 :
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) β
Finset.image (Function.updateITE Ο x x) phi.freeVarSet
s3 : x' β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x'} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp at c1 | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : Β¬β y β phi.freeVarSet \ {x}, Ο y = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | have s1 : Finset.image (Function.updateITE Ο x x) (freeVarSet phi) \ {x} = Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) \ {x} | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | apply Finset.image_sdiff_singleton | case s1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s1.h1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Function.updateITE Ο x x x = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Function.updateITE] | case s1.h1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Function.updateITE Ο x x x = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s1.h1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ (if True then x else Ο x) = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | case s1.h1
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ (if True then x else Ο x) = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [s1] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | clear s1 | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s1 :
Finset.image (Function.updateITE Ο x x) phi.freeVarSet \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x}
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | have s2 : x β Finset.image (Function.updateITE Ο x x) (freeVarSet phi \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Finset.mem_image] | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Β¬β a β phi.freeVarSet \ {x}, Function.updateITE Ο x x a = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ Β¬β a β phi.freeVarSet \ {x}, Function.updateITE Ο x x a = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Function.updateITE Ο x x x_1 = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Function.updateITE] | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Function.updateITE Ο x x x_1 = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬(if x_1 = x then x else Ο x_1) = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬(if x_1 = x then x else Ο x_1) = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬x_1 = x β§ Β¬Ο x_1 = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | tauto | case s2
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
β’ β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬x_1 = x β§ Β¬Ο x_1 = x
c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.freeVarSet_sub_eq_freeVarSet_image | [48, 1] | [125, 52] | simp only [Finset.sdiff_singleton_eq_self s2] | c : Char
x : VarName
phi : Formula
phi_ih : β (Ο : VarName β VarName), (sub Ο c phi).freeVarSet = Finset.image Ο phi.freeVarSet
Ο : VarName β VarName
c1 : β x_1 β phi.freeVarSet, Β¬x_1 = x β Β¬Ο x_1 = x
s2 : x β Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x})
β’ Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) \ {x} =
Finset.image (Function.updateITE Ο x x) (phi.freeVarSet \ {x}) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | induction F generalizing Ο V | D : Type
I : Interpretation D
V : VarAssignment D
E : Env
Ο : VarName β VarName
c : Char
F : Formula
β’ Holds D I V E (sub Ο c F) β Holds D I (V β Ο) E F | case pred_const_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ : PredName
aβ : List VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (pred_const_ aβΒΉ aβ)) β Holds D I (V β Ο) E (pred_const_ aβΒΉ aβ)
case pred_var_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ : PredName
aβ : List VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (pred_var_ aβΒΉ aβ)) β Holds D I (V β Ο) E (pred_var_ aβΒΉ aβ)
case eq_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ aβ : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (eq_ aβΒΉ aβ)) β Holds D I (V β Ο) E (eq_ aβΒΉ aβ)
case true_
D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c true_) β Holds D I (V β Ο) E true_
case false_
D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c false_) β Holds D I (V β Ο) E false_
case not_
D : Type
I : Interpretation D
E : Env
c : Char
aβ : Formula
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c aβ.not_) β Holds D I (V β Ο) E aβ.not_
case imp_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβΒΉ) β Holds D I (V β Ο) E aβΒΉ
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (aβΒΉ.imp_ aβ)) β Holds D I (V β Ο) E (aβΒΉ.imp_ aβ)
case and_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβΒΉ) β Holds D I (V β Ο) E aβΒΉ
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (aβΒΉ.and_ aβ)) β Holds D I (V β Ο) E (aβΒΉ.and_ aβ)
case or_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβΒΉ) β Holds D I (V β Ο) E aβΒΉ
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (aβΒΉ.or_ aβ)) β Holds D I (V β Ο) E (aβΒΉ.or_ aβ)
case iff_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ aβ : Formula
a_ihβΒΉ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβΒΉ) β Holds D I (V β Ο) E aβΒΉ
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (aβΒΉ.iff_ aβ)) β Holds D I (V β Ο) E (aβΒΉ.iff_ aβ)
case forall_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (forall_ aβΒΉ aβ)) β Holds D I (V β Ο) E (forall_ aβΒΉ aβ)
case exists_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ : VarName
aβ : Formula
a_ihβ : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c aβ) β Holds D I (V β Ο) E aβ
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (exists_ aβΒΉ aβ)) β Holds D I (V β Ο) E (exists_ aβΒΉ aβ)
case def_
D : Type
I : Interpretation D
E : Env
c : Char
aβΒΉ : DefName
aβ : List VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (def_ aβΒΉ aβ)) β Holds D I (V β Ο) E (def_ aβΒΉ aβ) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | case pred_const_ X xs | pred_var_ X xs | eq_ x y =>
simp only [sub]
simp only [Holds]
simp | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (eq_ x y)) β Holds D I (V β Ο) E (eq_ x y) | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | case true_ | false_ =>
simp only [sub]
simp only [Holds] | D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c false_) β Holds D I (V β Ο) E false_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | case not_ phi phi_ih =>
simp only [sub]
simp only [Holds]
congr! 1
exact phi_ih V Ο | D : Type
I : Interpretation D
E : Env
c : Char
phi : Formula
phi_ih : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c phi) β Holds D I (V β Ο) E phi
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c phi.not_) β Holds D I (V β Ο) E phi.not_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [sub] | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c (eq_ x y)) β Holds D I (V β Ο) E (eq_ x y) | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (eq_ (Ο x) (Ο y)) β Holds D I (V β Ο) E (eq_ x y) |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [Holds] | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (eq_ (Ο x) (Ο y)) β Holds D I (V β Ο) E (eq_ x y) | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ V (Ο x) = V (Ο y) β (V β Ο) x = (V β Ο) y |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp | D : Type
I : Interpretation D
E : Env
c : Char
x y : VarName
V : VarAssignment D
Ο : VarName β VarName
β’ V (Ο x) = V (Ο y) β (V β Ο) x = (V β Ο) y | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [sub] | D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c false_) β Holds D I (V β Ο) E false_ | D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E false_ β Holds D I (V β Ο) E false_ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [Holds] | D : Type
I : Interpretation D
E : Env
c : Char
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E false_ β Holds D I (V β Ο) E false_ | no goals |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [sub] | D : Type
I : Interpretation D
E : Env
c : Char
phi : Formula
phi_ih : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c phi) β Holds D I (V β Ο) E phi
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c phi.not_) β Holds D I (V β Ο) E phi.not_ | D : Type
I : Interpretation D
E : Env
c : Char
phi : Formula
phi_ih : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c phi) β Holds D I (V β Ο) E phi
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c phi).not_ β Holds D I (V β Ο) E phi.not_ |
https://github.com/pthomas505/FOL.git | 097a4abea51b641d144539b9a0f7516f3b9d818c | FOL/NV/Sub/Var/All/Rec/Fresh/Sub.lean | FOL.NV.Sub.Var.All.Rec.Fresh.substitution_theorem | [128, 1] | [245, 19] | simp only [Holds] | D : Type
I : Interpretation D
E : Env
c : Char
phi : Formula
phi_ih : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c phi) β Holds D I (V β Ο) E phi
V : VarAssignment D
Ο : VarName β VarName
β’ Holds D I V E (sub Ο c phi).not_ β Holds D I (V β Ο) E phi.not_ | D : Type
I : Interpretation D
E : Env
c : Char
phi : Formula
phi_ih : β (V : VarAssignment D) (Ο : VarName β VarName), Holds D I V E (sub Ο c phi) β Holds D I (V β Ο) E phi
V : VarAssignment D
Ο : VarName β VarName
β’ Β¬Holds D I V E (sub Ο c phi) β Β¬Holds D I (V β Ο) E phi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.