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/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply IsDeduct.mp_ P
|
case h1.h1.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} Q
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (P.imp_ Q)
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply IsDeduct.mp_ ((P.imp_ Q).and_ (Q.imp_ P))
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (P.imp_ Q)
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (((P.imp_ Q).and_ (Q.imp_ P)).imp_ (P.imp_ Q))
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} ((P.imp_ Q).and_ (Q.imp_ P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp only [def_and_]
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (((P.imp_ Q).and_ (Q.imp_ P)).imp_ (P.imp_ Q))
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_}
(((P.imp_ Q).imp_ (Q.imp_ P).not_).not_.imp_ (P.imp_ Q))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
SC
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_}
(((P.imp_ Q).imp_ (Q.imp_ P).not_).not_.imp_ (P.imp_ Q))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply specId v
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} ((P.imp_ Q).and_ (Q.imp_ P))
|
case h1.h1.h1.a.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply IsDeduct.assume_
|
case h1.h1.h1.a.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
case h1.h1.h1.a.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v ((P.imp_ Q).and_ (Q.imp_ P)) β {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp
|
case h1.h1.h1.a.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v ((P.imp_ Q).and_ (Q.imp_ P)) β {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply specId v
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} P
|
case h1.h1.h1.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
apply IsDeduct.assume_
|
case h1.h1.h1.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v P)
|
case h1.h1.h1.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v P β {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp
|
case h1.h1.h1.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v P β {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ β H β {forall_ v P, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}, Β¬isFreeIn v H
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬isFreeIn v (forall_ v P) β§ Β¬isFreeIn v (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp only [isFreeIn]
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬isFreeIn v (forall_ v P) β§ Β¬isFreeIn v (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬(Β¬True β§ isFreeIn v P) β§ Β¬(Β¬True β§ ((isFreeIn v P β¨ isFreeIn v Q) β¨ isFreeIn v Q β¨ isFreeIn v P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_left
|
[654, 1]
|
[678, 9]
|
simp
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬(Β¬True β§ isFreeIn v P) β§ Β¬(Β¬True β§ ((isFreeIn v P β¨ isFreeIn v Q) β¨ isFreeIn v Q β¨ isFreeIn v P))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp only [def_iff_]
|
P Q : Formula
v : VarName
β’ IsProof ((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
P Q : Formula
v : VarName
β’ IsProof ((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply deduction_theorem
|
P Q : Formula
v : VarName
β’ IsProof ((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
case h1
P Q : Formula
v : VarName
β’ IsDeduct (β
βͺ {forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}) ((forall_ v Q).imp_ (forall_ v P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply deduction_theorem
|
case h1
P Q : Formula
v : VarName
β’ IsDeduct (β
βͺ {forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}) ((forall_ v Q).imp_ (forall_ v P))
|
case h1.h1
P Q : Formula
v : VarName
β’ IsDeduct (β
βͺ {forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} βͺ {forall_ v Q}) (forall_ v P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp
|
case h1.h1
P Q : Formula
v : VarName
β’ IsDeduct (β
βͺ {forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} βͺ {forall_ v Q}) (forall_ v P)
|
case h1.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply generalization
|
case h1.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v P)
|
case h1.h1.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} P
case h1.h1.h2
P Q : Formula
v : VarName
β’ β H β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}, Β¬isFreeIn v H
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply IsDeduct.mp_ Q
|
case h1.h1.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} P
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (Q.imp_ P)
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} Q
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply IsDeduct.mp_ ((P.imp_ Q).and_ (Q.imp_ P))
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (Q.imp_ P)
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (((P.imp_ Q).and_ (Q.imp_ P)).imp_ (Q.imp_ P))
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} ((P.imp_ Q).and_ (Q.imp_ P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp only [def_and_]
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (((P.imp_ Q).and_ (Q.imp_ P)).imp_ (Q.imp_ P))
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_}
(((P.imp_ Q).imp_ (Q.imp_ P).not_).not_.imp_ (Q.imp_ P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
SC
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_}
(((P.imp_ Q).imp_ (Q.imp_ P).not_).not_.imp_ (Q.imp_ P))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply specId v
|
case h1.h1.h1.a.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} ((P.imp_ Q).and_ (Q.imp_ P))
|
case h1.h1.h1.a.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply IsDeduct.assume_
|
case h1.h1.h1.a.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
case h1.h1.h1.a.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v ((P.imp_ Q).and_ (Q.imp_ P)) β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp
|
case h1.h1.h1.a.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v ((P.imp_ Q).and_ (Q.imp_ P)) β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply specId v
|
case h1.h1.h1.a
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} Q
|
case h1.h1.h1.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v Q)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
apply IsDeduct.assume_
|
case h1.h1.h1.a.h1
P Q : Formula
v : VarName
β’ IsDeduct {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))} (forall_ v Q)
|
case h1.h1.h1.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v Q β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp
|
case h1.h1.h1.a.h1.a
P Q : Formula
v : VarName
β’ forall_ v Q β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ β H β {forall_ v Q, forall_ v ((P.imp_ Q).and_ (Q.imp_ P))}, Β¬isFreeIn v H
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬isFreeIn v (forall_ v Q) β§ Β¬isFreeIn v (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp only [isFreeIn]
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬isFreeIn v (forall_ v Q) β§ Β¬isFreeIn v (forall_ v ((P.imp_ Q).and_ (Q.imp_ P)))
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬(Β¬True β§ isFreeIn v Q) β§ Β¬(Β¬True β§ ((isFreeIn v P β¨ isFreeIn v Q) β¨ isFreeIn v Q β¨ isFreeIn v P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1_right
|
[681, 1]
|
[705, 9]
|
simp
|
case h1.h1.h2
P Q : Formula
v : VarName
β’ Β¬(Β¬True β§ isFreeIn v Q) β§ Β¬(Β¬True β§ ((isFreeIn v P β¨ isFreeIn v Q) β¨ isFreeIn v Q β¨ isFreeIn v P))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
apply IsDeduct.mp_ ((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
P Q : Formula
v : VarName
β’ IsProof ((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).iff_ (forall_ v Q)))
|
case a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).iff_ (forall_ v Q))))
case a
P Q : Formula
v : VarName
β’ IsDeduct β
((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
apply IsDeduct.mp_ ((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).imp_ (forall_ v Q)))
|
case a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).iff_ (forall_ v Q))))
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).iff_ (forall_ v Q)))))
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).imp_ (forall_ v Q)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
simp only [def_iff_]
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).iff_ (forall_ v Q)))))
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_
(((forall_ v P).imp_ (forall_ v Q)).and_ ((forall_ v Q).imp_ (forall_ v P))))))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
simp only [def_and_]
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v ((P.imp_ Q).and_ (Q.imp_ P))).imp_
(((forall_ v P).imp_ (forall_ v Q)).and_ ((forall_ v Q).imp_ (forall_ v P))))))
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_
(((forall_ v P).imp_ (forall_ v Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)).not_).not_)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
SC
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
(((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_ ((forall_ v P).imp_ (forall_ v Q))).imp_
(((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_ ((forall_ v Q).imp_ (forall_ v P))).imp_
((forall_ v ((P.imp_ Q).imp_ (Q.imp_ P).not_).not_).imp_
(((forall_ v P).imp_ (forall_ v Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)).not_).not_)))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
apply T_18_1_left
|
case a.a
P Q : Formula
v : VarName
β’ IsDeduct β
((forall_ v (P.iff_ Q)).imp_ ((forall_ v P).imp_ (forall_ v Q)))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_1
|
[708, 1]
|
[721, 23]
|
apply T_18_1_right
|
case a
P Q : Formula
v : VarName
β’ IsDeduct β
((forall_ v (P.iff_ Q)).imp_ ((forall_ v Q).imp_ (forall_ v P)))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
induction xs
|
xs : List VarName
P : Formula
β’ IsProof ((Forall_ xs P).imp_ P)
|
case nil
P : Formula
β’ IsProof ((Forall_ [] P).imp_ P)
case cons
P : Formula
headβ : VarName
tailβ : List VarName
tail_ihβ : IsProof ((Forall_ tailβ P).imp_ P)
β’ IsProof ((Forall_ (headβ :: tailβ) P).imp_ P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
case nil =>
simp only [Forall_]
apply prop_id
|
P : Formula
β’ IsProof ((Forall_ [] P).imp_ P)
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
case cons xs_hd xs_tl xs_ih =>
simp only [Forall_]
apply deduction_theorem
simp
apply IsDeduct.mp_ (Forall_ xs_tl P)
apply proof_imp_deduct
exact xs_ih
apply specId xs_hd
apply IsDeduct.assume_
simp
rfl
|
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((Forall_ (xs_hd :: xs_tl) P).imp_ P)
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
simp only [Forall_]
|
P : Formula
β’ IsProof ((Forall_ [] P).imp_ P)
|
P : Formula
β’ IsProof ((List.foldr forall_ P []).imp_ P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply prop_id
|
P : Formula
β’ IsProof ((List.foldr forall_ P []).imp_ P)
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
simp only [Forall_]
|
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((Forall_ (xs_hd :: xs_tl) P).imp_ P)
|
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((List.foldr forall_ P (xs_hd :: xs_tl)).imp_ P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply deduction_theorem
|
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((List.foldr forall_ P (xs_hd :: xs_tl)).imp_ P)
|
case h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct (β
βͺ {List.foldr forall_ P (xs_hd :: xs_tl)}) P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
simp
|
case h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct (β
βͺ {List.foldr forall_ P (xs_hd :: xs_tl)}) P
|
case h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply IsDeduct.mp_ (Forall_ xs_tl P)
|
case h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} P
|
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} ((Forall_ xs_tl P).imp_ P)
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply proof_imp_deduct
|
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} ((Forall_ xs_tl P).imp_ P)
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
case h1.a.h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((Forall_ xs_tl P).imp_ P)
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
exact xs_ih
|
case h1.a.h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsProof ((Forall_ xs_tl P).imp_ P)
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply specId xs_hd
|
case h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (Forall_ xs_tl P)
|
case h1.a.h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (forall_ xs_hd (Forall_ xs_tl P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
apply IsDeduct.assume_
|
case h1.a.h1
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ IsDeduct {forall_ xs_hd (List.foldr forall_ P xs_tl)} (forall_ xs_hd (Forall_ xs_tl P))
|
case h1.a.h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ forall_ xs_hd (Forall_ xs_tl P) β {forall_ xs_hd (List.foldr forall_ P xs_tl)}
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
simp
|
case h1.a.h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ forall_ xs_hd (Forall_ xs_tl P) β {forall_ xs_hd (List.foldr forall_ P xs_tl)}
|
case h1.a.h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ Forall_ xs_tl P = List.foldr forall_ P xs_tl
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id
|
[724, 1]
|
[743, 8]
|
rfl
|
case h1.a.h1.a
P : Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsProof ((Forall_ xs_tl P).imp_ P)
β’ Forall_ xs_tl P = List.foldr forall_ P xs_tl
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
induction xs
|
xs : List VarName
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (Forall_ xs P)
β’ IsDeduct Ξ P
|
case nil
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (Forall_ [] P)
β’ IsDeduct Ξ P
case cons
P : Formula
Ξ : Set Formula
headβ : VarName
tailβ : List VarName
tail_ihβ : IsDeduct Ξ (Forall_ tailβ P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (Forall_ (headβ :: tailβ) P)
β’ IsDeduct Ξ P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
case nil =>
simp only [Forall_] at h1
simp at h1
exact h1
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (Forall_ [] P)
β’ IsDeduct Ξ P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
case cons xs_hd xs_tl xs_ih =>
simp only [Forall_] at h1
simp at h1
apply xs_ih
simp only [Forall_]
apply specId xs_hd
exact h1
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (Forall_ (xs_hd :: xs_tl) P)
β’ IsDeduct Ξ P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
simp only [Forall_] at h1
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (Forall_ [] P)
β’ IsDeduct Ξ P
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (List.foldr forall_ P [])
β’ IsDeduct Ξ P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
simp at h1
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ (List.foldr forall_ P [])
β’ IsDeduct Ξ P
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ P
β’ IsDeduct Ξ P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
exact h1
|
P : Formula
Ξ : Set Formula
h1 : IsDeduct Ξ P
β’ IsDeduct Ξ P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
simp only [Forall_] at h1
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (Forall_ (xs_hd :: xs_tl) P)
β’ IsDeduct Ξ P
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (List.foldr forall_ P (xs_hd :: xs_tl))
β’ IsDeduct Ξ P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
simp at h1
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (List.foldr forall_ P (xs_hd :: xs_tl))
β’ IsDeduct Ξ P
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
apply xs_ih
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ P
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (Forall_ xs_tl P)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
simp only [Forall_]
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (Forall_ xs_tl P)
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (List.foldr forall_ P xs_tl)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
apply specId xs_hd
|
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (List.foldr forall_ P xs_tl)
|
case h1
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_spec_id'
|
[746, 1]
|
[764, 13]
|
exact h1
|
case h1
P : Formula
Ξ : Set Formula
xs_hd : VarName
xs_tl : List VarName
xs_ih : IsDeduct Ξ (Forall_ xs_tl P) β IsDeduct Ξ P
h1 : IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
β’ IsDeduct Ξ (forall_ xs_hd (List.foldr forall_ P xs_tl))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
simp only [Formula.Forall_]
|
P : Formula
xs : List VarName
x : VarName
β’ isBoundIn x (Forall_ xs P) β x β xs β¨ isBoundIn x P
|
P : Formula
xs : List VarName
x : VarName
β’ isBoundIn x (List.foldr forall_ P xs) β x β xs β¨ isBoundIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
induction xs
|
P : Formula
xs : List VarName
x : VarName
β’ isBoundIn x (List.foldr forall_ P xs) β x β xs β¨ isBoundIn x P
|
case nil
P : Formula
x : VarName
β’ isBoundIn x (List.foldr forall_ P []) β x β [] β¨ isBoundIn x P
case cons
P : Formula
x headβ : VarName
tailβ : List VarName
tail_ihβ : isBoundIn x (List.foldr forall_ P tailβ) β x β tailβ β¨ isBoundIn x P
β’ isBoundIn x (List.foldr forall_ P (headβ :: tailβ)) β x β headβ :: tailβ β¨ isBoundIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
case nil =>
simp
|
P : Formula
x : VarName
β’ isBoundIn x (List.foldr forall_ P []) β x β [] β¨ isBoundIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
case cons xs_hd xs_tl xs_ih =>
simp
simp only [isBoundIn]
simp only [xs_ih]
tauto
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ isBoundIn x (List.foldr forall_ P (xs_hd :: xs_tl)) β x β xs_hd :: xs_tl β¨ isBoundIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
simp
|
P : Formula
x : VarName
β’ isBoundIn x (List.foldr forall_ P []) β x β [] β¨ isBoundIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
simp
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ isBoundIn x (List.foldr forall_ P (xs_hd :: xs_tl)) β x β xs_hd :: xs_tl β¨ isBoundIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ isBoundIn x (forall_ xs_hd (List.foldr forall_ P xs_tl)) β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
simp only [isBoundIn]
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ isBoundIn x (forall_ xs_hd (List.foldr forall_ P xs_tl)) β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ x = xs_hd β¨ isBoundIn x (List.foldr forall_ P xs_tl) β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
simp only [xs_ih]
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ x = xs_hd β¨ isBoundIn x (List.foldr forall_ P xs_tl) β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ x = xs_hd β¨ x β xs_tl β¨ isBoundIn x P β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isBoundIn
|
[767, 1]
|
[781, 10]
|
tauto
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isBoundIn x (List.foldr forall_ P xs_tl) β x β xs_tl β¨ isBoundIn x P
β’ x = xs_hd β¨ x β xs_tl β¨ isBoundIn x P β (x = xs_hd β¨ x β xs_tl) β¨ isBoundIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
simp only [Formula.Forall_]
|
P : Formula
xs : List VarName
x : VarName
β’ isFreeIn x (Forall_ xs P) β x β xs β§ isFreeIn x P
|
P : Formula
xs : List VarName
x : VarName
β’ isFreeIn x (List.foldr forall_ P xs) β x β xs β§ isFreeIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
induction xs
|
P : Formula
xs : List VarName
x : VarName
β’ isFreeIn x (List.foldr forall_ P xs) β x β xs β§ isFreeIn x P
|
case nil
P : Formula
x : VarName
β’ isFreeIn x (List.foldr forall_ P []) β x β [] β§ isFreeIn x P
case cons
P : Formula
x headβ : VarName
tailβ : List VarName
tail_ihβ : isFreeIn x (List.foldr forall_ P tailβ) β x β tailβ β§ isFreeIn x P
β’ isFreeIn x (List.foldr forall_ P (headβ :: tailβ)) β x β headβ :: tailβ β§ isFreeIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
case nil =>
simp
|
P : Formula
x : VarName
β’ isFreeIn x (List.foldr forall_ P []) β x β [] β§ isFreeIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
case cons xs_hd xs_tl xs_ih =>
simp
simp only [isFreeIn]
simp only [xs_ih]
tauto
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ isFreeIn x (List.foldr forall_ P (xs_hd :: xs_tl)) β x β xs_hd :: xs_tl β§ isFreeIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
simp
|
P : Formula
x : VarName
β’ isFreeIn x (List.foldr forall_ P []) β x β [] β§ isFreeIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
simp
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ isFreeIn x (List.foldr forall_ P (xs_hd :: xs_tl)) β x β xs_hd :: xs_tl β§ isFreeIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ isFreeIn x (forall_ xs_hd (List.foldr forall_ P xs_tl)) β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
simp only [isFreeIn]
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ isFreeIn x (forall_ xs_hd (List.foldr forall_ P xs_tl)) β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ Β¬x = xs_hd β§ isFreeIn x (List.foldr forall_ P xs_tl) β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
simp only [xs_ih]
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ Β¬x = xs_hd β§ isFreeIn x (List.foldr forall_ P xs_tl) β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ Β¬x = xs_hd β§ x β xs_tl β§ isFreeIn x P β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.Forall_isFreeIn
|
[784, 1]
|
[798, 10]
|
tauto
|
P : Formula
x xs_hd : VarName
xs_tl : List VarName
xs_ih : isFreeIn x (List.foldr forall_ P xs_tl) β x β xs_tl β§ isFreeIn x P
β’ Β¬x = xs_hd β§ x β xs_tl β§ isFreeIn x P β (Β¬x = xs_hd β§ x β xs_tl) β§ isFreeIn x P
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
induction h1
|
U V P_U P_V : Formula
l : List VarName
h1 : IsReplOfFormulaInFormula U V P_U P_V
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_U β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (P_U.iff_ P_V))
|
case same_
U V P_U P_V : Formula
l : List VarName
P_uβ P_vβ : Formula
aβ : P_uβ = P_vβ
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
case diff_
U V P_U P_V : Formula
l : List VarName
P_uβ P_vβ : Formula
aβΒΉ : P_uβ = U
aβ : P_vβ = V
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
case not_
U V P_U P_V : Formula
l : List VarName
P_uβ P_vβ : Formula
aβ : IsReplOfFormulaInFormula U V P_uβ P_vβ
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ.not_ β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.not_.iff_ P_vβ.not_))
case imp_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.imp_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.imp_ Q_uβ).iff_ (P_vβ.imp_ Q_vβ)))
case and_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.and_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.and_ Q_uβ).iff_ (P_vβ.and_ Q_vβ)))
case or_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.or_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.or_ Q_uβ).iff_ (P_vβ.or_ Q_vβ)))
case iff_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.iff_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.iff_ Q_uβ).iff_ (P_vβ.iff_ Q_vβ)))
case forall_
U V P_U P_V : Formula
l : List VarName
xβ : VarName
P_uβ P_vβ : Formula
aβ : IsReplOfFormulaInFormula U V P_uβ P_vβ
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (forall_ xβ P_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((forall_ xβ P_uβ).iff_ (forall_ xβ P_vβ)))
case exists_
U V P_U P_V : Formula
l : List VarName
xβ : VarName
P_uβ P_vβ : Formula
aβ : IsReplOfFormulaInFormula U V P_uβ P_vβ
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (exists_ xβ P_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((exists_ xβ P_uβ).iff_ (exists_ xβ P_vβ)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
case same_ h1_P h1_P' h1_1 =>
subst h1_1
simp only [def_iff_]
simp only [def_and_]
SC
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : h1_P = h1_P'
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
case diff_ h1_P h1_P' h1_1 h1_2 =>
subst h1_1
subst h1_2
apply Forall_spec_id
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : h1_P = U
h1_2 : h1_P' = V
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
all_goals
sorry
|
case and_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.and_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.and_ Q_uβ).iff_ (P_vβ.and_ Q_vβ)))
case or_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.or_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.or_ Q_uβ).iff_ (P_vβ.or_ Q_vβ)))
case iff_
U V P_U P_V : Formula
l : List VarName
P_uβ Q_uβ P_vβ Q_vβ : Formula
aβΒΉ : IsReplOfFormulaInFormula U V P_uβ P_vβ
aβ : IsReplOfFormulaInFormula U V Q_uβ Q_vβ
a_ihβΒΉ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v Q_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (Q_uβ.iff_ Q_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (P_uβ.iff_ Q_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((P_uβ.iff_ Q_uβ).iff_ (P_vβ.iff_ Q_vβ)))
case exists_
U V P_U P_V : Formula
l : List VarName
xβ : VarName
P_uβ P_vβ : Formula
aβ : IsReplOfFormulaInFormula U V P_uβ P_vβ
a_ihβ :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v P_uβ β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (P_uβ.iff_ P_vβ))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v (exists_ xβ P_uβ) β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ ((exists_ xβ P_uβ).iff_ (exists_ xβ P_vβ)))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
subst h1_1
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : h1_P = h1_P'
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
simp only [def_iff_]
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P))
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.imp_ h1_P).and_ (h1_P.imp_ h1_P)))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
simp only [def_and_]
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.imp_ h1_P).and_ (h1_P.imp_ h1_P)))
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_ ((h1_P.imp_ h1_P).imp_ (h1_P.imp_ h1_P).not_).not_)
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
SC
|
U V P_U P_V : Formula
l : List VarName
h1_P : Formula
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_ ((h1_P.imp_ h1_P).imp_ (h1_P.imp_ h1_P).not_).not_)
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
subst h1_1
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : h1_P = U
h1_2 : h1_P' = V
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_2 : h1_P' = V
h2 : β (v : VarName), (isFreeIn v h1_P β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (h1_P.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
subst h1_2
|
V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_2 : h1_P' = V
h2 : β (v : VarName), (isFreeIn v h1_P β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (h1_P.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h2 : β (v : VarName), (isFreeIn v h1_P β¨ isFreeIn v h1_P') β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (h1_P.iff_ h1_P')).imp_ (h1_P.iff_ h1_P'))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
apply Forall_spec_id
|
P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h2 : β (v : VarName), (isFreeIn v h1_P β¨ isFreeIn v h1_P') β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (h1_P.iff_ h1_P')).imp_ (h1_P.iff_ h1_P'))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
simp only [isBoundIn] at h2
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P.not_ β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.not_.iff_ h1_P'.not_))
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.not_.iff_ h1_P'.not_))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
apply IsDeduct.mp_ ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.not_.iff_ h1_P'.not_))
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P')).imp_ ((Forall_ l (U.iff_ V)).imp_ (h1_P.not_.iff_ h1_P'.not_)))
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
simp only [def_iff_]
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P')).imp_ ((Forall_ l (U.iff_ V)).imp_ (h1_P.not_.iff_ h1_P'.not_)))
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.imp_ h1_P').and_ (h1_P'.imp_ h1_P))).imp_
((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.not_.imp_ h1_P'.not_).and_ (h1_P'.not_.imp_ h1_P.not_))))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
simp only [def_and_]
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.imp_ h1_P').and_ (h1_P'.imp_ h1_P))).imp_
((Forall_ l ((U.imp_ V).and_ (V.imp_ U))).imp_ ((h1_P.not_.imp_ h1_P'.not_).and_ (h1_P'.not_.imp_ h1_P.not_))))
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_ ((h1_P.imp_ h1_P').imp_ (h1_P'.imp_ h1_P).not_).not_).imp_
((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_
((h1_P.not_.imp_ h1_P'.not_).imp_ (h1_P'.not_.imp_ h1_P.not_).not_).not_))
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
SC
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
(((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_ ((h1_P.imp_ h1_P').imp_ (h1_P'.imp_ h1_P).not_).not_).imp_
((Forall_ l ((U.imp_ V).imp_ (V.imp_ U).not_).not_).imp_
((h1_P.not_.imp_ h1_P'.not_).imp_ (h1_P'.not_.imp_ h1_P.not_).not_).not_))
|
no goals
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/NV/Margaris/Fol.lean
|
FOL.NV.T_18_2
|
[802, 1]
|
[886, 10]
|
exact h1_ih h2
|
case a
U V P_U P_V : Formula
l : List VarName
h1_P h1_P' : Formula
h1_1 : IsReplOfFormulaInFormula U V h1_P h1_P'
h1_ih :
(β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l) β
IsProof ((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
h2 : β (v : VarName), (isFreeIn v U β¨ isFreeIn v V) β§ isBoundIn v h1_P β v β l
β’ IsDeduct β
((Forall_ l (U.iff_ V)).imp_ (h1_P.iff_ h1_P'))
|
no goals
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.