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
| input
stringlengths 73
2.09M
|
---|---|---|---|---|---|---|---|---|---|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
visited_subset_dft_aux
|
[388, 1]
|
[409, 17]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β dft_aux g (x :: stack) visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β dft_aux g (x :: stack) visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
visited_subset_dft_aux
|
[388, 1]
|
[409, 17]
|
simp only [if_neg c1]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
visited_subset_dft_aux
|
[388, 1]
|
[409, 17]
|
trans (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β x :: visited
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
visited_subset_dft_aux
|
[388, 1]
|
[409, 17]
|
simp
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β x :: visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ visited β x :: visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
visited_subset_dft_aux
|
[388, 1]
|
[409, 17]
|
exact ih
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_1
|
[412, 1]
|
[424, 15]
|
simp
|
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x :: zs β xs
|
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs β§ zs β xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x :: zs β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_1
|
[412, 1]
|
[424, 15]
|
constructor
|
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs β§ zs β xs
|
case left
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs
case right
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ zs β xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs β§ zs β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_1
|
[412, 1]
|
[424, 15]
|
apply Set.mem_of_subset_of_mem h3 h2
|
case left
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case left
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ x β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_1
|
[412, 1]
|
[424, 15]
|
exact h1
|
case right
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ zs β xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case right
Ξ± : Type
xs ys zs : List Ξ±
x : Ξ±
h1 : zs β xs
h2 : x β ys
h3 : ys β xs
β’ zs β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_2
|
[427, 1]
|
[436, 10]
|
simp at *
|
Ξ± : Type
ws xs ys zs : List Ξ±
x : Ξ±
h1 : ws ++ ys β zs
h2 : x :: xs β zs
β’ x :: ys β zs
|
Ξ± : Type
ws xs ys zs : List Ξ±
x : Ξ±
h1 : ws β zs β§ ys β zs
h2 : x β zs β§ xs β zs
β’ x β zs β§ ys β zs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
ws xs ys zs : List Ξ±
x : Ξ±
h1 : ws ++ ys β zs
h2 : x :: xs β zs
β’ x :: ys β zs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_2
|
[427, 1]
|
[436, 10]
|
tauto
|
Ξ± : Type
ws xs ys zs : List Ξ±
x : Ξ±
h1 : ws β zs β§ ys β zs
h2 : x β zs β§ xs β zs
β’ x β zs β§ ys β zs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
ws xs ys zs : List Ξ±
x : Ξ±
h1 : ws β zs β§ ys β zs
h2 : x β zs β§ xs β zs
β’ x β zs β§ ys β zs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
induction stack, visited using dft_aux.induct g
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack visited : List Node
β’ stack β dft_aux g stack visited
|
case case1
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
β’ [] β dft_aux g [] visitedβ
case case2
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
xβ : Node
xsβ : List Node
hβ : xβ β visitedβ
ih1β : xsβ β dft_aux g xsβ visitedβ
β’ xβ :: xsβ β dft_aux g (xβ :: xsβ) visitedβ
case case3
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
xβ : Node
xsβ : List Node
hβ : xβ β visitedβ
ih1β : direct_succ_list g xβ ++ xsβ β dft_aux g (direct_succ_list g xβ ++ xsβ) (xβ :: visitedβ)
β’ xβ :: xsβ β dft_aux g (xβ :: xsβ) visitedβ
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack visited : List Node
β’ stack β dft_aux g stack visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
case _ visited =>
simp only [dft_aux]
simp
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β dft_aux g [] visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β dft_aux g [] visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
case _ visited x stack c1 ih =>
simp only [dft_aux]
simp only [if_pos c1]
apply extracted_1 (dft_aux g stack visited) visited stack x ih c1
exact visited_subset_dft_aux g stack visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g (x :: stack) visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g (x :: stack) visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
case _ visited x stack c1 ih =>
simp only [dft_aux]
simp only [if_neg c1]
apply extracted_2 (direct_succ_list g x) visited stack (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) x ih
apply visited_subset_dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (x :: stack) visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (x :: stack) visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β dft_aux g [] visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β visited
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β dft_aux g [] visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
β’ [] β visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g (x :: stack) visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g (x :: stack) visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp only [if_pos c1]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g stack visited
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
apply extracted_1 (dft_aux g stack visited) visited stack x ih c1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g stack visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ visited β dft_aux g stack visited
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ x :: stack β dft_aux g stack visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
exact visited_subset_dft_aux g stack visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ visited β dft_aux g stack visited
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : stack β dft_aux g stack visited
β’ visited β dft_aux g stack visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (x :: stack) visited
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (x :: stack) visited
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
simp only [if_neg c1]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
apply extracted_2 (direct_succ_list g x) visited stack (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) x ih
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
stack_subset_dft_aux
|
[439, 1]
|
[460, 84]
|
apply visited_subset_dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih : direct_succ_list g x ++ stack β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
β’ x :: visited β dft_aux g (direct_succ_list g x ++ stack) (x :: visited)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
simp only [list_cons_to_set_union]
|
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ β(x :: ys).toFinset βͺ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
|
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset βͺ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ β(x :: ys).toFinset βͺ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
apply Set.union_subset
|
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset βͺ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
|
case sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset β βys.toFinset βͺ βxs.toFinset
case tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset βͺ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
apply Set.union_subset
|
case sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset β βys.toFinset βͺ βxs.toFinset
|
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} β βys.toFinset βͺ βxs.toFinset
case sr.tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βys.toFinset β βys.toFinset βͺ βxs.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
case sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} βͺ βys.toFinset β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
simp
|
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} β βys.toFinset βͺ βxs.toFinset
|
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β ys β¨ x β xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ {x} β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
right
|
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β ys β¨ x β xs
|
case sr.sr.h
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
case sr.sr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β ys β¨ x β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
exact h1
|
case sr.sr.h
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case sr.sr.h
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ x β xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
exact Set.subset_union_left ys.toFinset.toSet xs.toFinset.toSet
|
case sr.tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βys.toFinset β βys.toFinset βͺ βxs.toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case sr.tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βys.toFinset β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_3
|
[463, 1]
|
[478, 71]
|
exact Set.subset_union_right ys.toFinset.toSet xs.toFinset.toSet
|
case tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case tr
Ξ± : Type
inst : DecidableEq Ξ±
xs ys : List Ξ±
x : Ξ±
h1 : x β xs
β’ βxs.toFinset β βys.toFinset βͺ βxs.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp only [list_cons_to_set_union] at h1
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : S β β(x :: zs).toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : S β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : S β β(x :: zs).toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp only [Set.subset_def] at h1
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : S β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, x_1 β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : S β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp at h1
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, x_1 β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, x_1 β {x} βͺ βzs.toFinset βͺ βys.toFinset
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp only [list_cons_to_set_union]
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ ({x} βͺ βys.toFinset)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ β(x :: ys).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp only [list_append_to_set_union]
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ ({x} βͺ βys.toFinset)
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β β(xs ++ zs).toFinset βͺ ({x} βͺ βys.toFinset)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp only [Set.subset_def]
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β x_1 β βxs.toFinset βͺ S, x_1 β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ βxs.toFinset βͺ S β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
simp
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β x_1 β βxs.toFinset βͺ S, x_1 β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β (x_1 : Node), x_1 β xs β¨ x_1 β S β x_1 = x β¨ (x_1 β xs β¨ x_1 β zs) β¨ x_1 β ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β x_1 β βxs.toFinset βͺ S, x_1 β βxs.toFinset βͺ βzs.toFinset βͺ ({x} βͺ βys.toFinset)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
intro a a1
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β (x_1 : Node), x_1 β xs β¨ x_1 β S β x_1 = x β¨ (x_1 β xs β¨ x_1 β zs) β¨ x_1 β ys
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
a : Node
a1 : a β xs β¨ a β S
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
β’ β (x_1 : Node), x_1 β xs β¨ x_1 β S β x_1 = x β¨ (x_1 β xs β¨ x_1 β zs) β¨ x_1 β ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
specialize h1 a
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
a : Node
a1 : a β xs β¨ a β S
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x a : Node
a1 : a β xs β¨ a β S
h1 : a β S β (a = x β¨ a β zs) β¨ a β ys
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x : Node
h1 : β x_1 β S, (x_1 = x β¨ x_1 β zs) β¨ x_1 β ys
a : Node
a1 : a β xs β¨ a β S
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
extracted_4
|
[481, 1]
|
[500, 10]
|
tauto
|
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x a : Node
a1 : a β xs β¨ a β S
h1 : a β S β (a = x β¨ a β zs) β¨ a β ys
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
xs ys zs : List Node
S : Set Node
x a : Node
a1 : a β xs β¨ a β S
h1 : a β S β (a = x β¨ a β zs) β¨ a β ys
β’ a = x β¨ (a β xs β¨ a β zs) β¨ a β ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
induction stack, visited using dft_aux.induct g
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack visited : List Node
h1 : list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
|
case case1
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
h1 : list_direct_succ_set g visitedβ β β[].toFinset βͺ βvisitedβ.toFinset
β’ list_direct_succ_set g (dft_aux g [] visitedβ) β β(dft_aux g [] visitedβ).toFinset
case case2
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
xβ : Node
xsβ : List Node
hβ : xβ β visitedβ
ih1β :
list_direct_succ_set g visitedβ β βxsβ.toFinset βͺ βvisitedβ.toFinset β
list_direct_succ_set g (dft_aux g xsβ visitedβ) β β(dft_aux g xsβ visitedβ).toFinset
h1 : list_direct_succ_set g visitedβ β β(xβ :: xsβ).toFinset βͺ βvisitedβ.toFinset
β’ list_direct_succ_set g (dft_aux g (xβ :: xsβ) visitedβ) β β(dft_aux g (xβ :: xsβ) visitedβ).toFinset
case case3
Node : Type
instβ : DecidableEq Node
g : Graph Node
visitedβ : List Node
xβ : Node
xsβ : List Node
hβ : xβ β visitedβ
ih1β :
list_direct_succ_set g (xβ :: visitedβ) β β(direct_succ_list g xβ ++ xsβ).toFinset βͺ β(xβ :: visitedβ).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g xβ ++ xsβ) (xβ :: visitedβ)) β
β(dft_aux g (direct_succ_list g xβ ++ xsβ) (xβ :: visitedβ)).toFinset
h1 : list_direct_succ_set g visitedβ β β(xβ :: xsβ).toFinset βͺ βvisitedβ.toFinset
β’ list_direct_succ_set g (dft_aux g (xβ :: xsβ) visitedβ) β β(dft_aux g (xβ :: xsβ) visitedβ).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack visited : List Node
h1 : list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
case _ visited =>
simp at h1
simp only [dft_aux]
simp
exact h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β β[].toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β β[].toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
case _ visited x stack c1 ih =>
simp only [dft_aux]
simp only [if_neg c1]
apply ih
simp only [list_direct_succ_set_cons]
exact extracted_4 (direct_succ_list g x) visited stack (list_direct_succ_set g visited) x h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp at h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β β[].toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β β[].toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β βvisited.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g (dft_aux g [] visited) β β(dft_aux g [] visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β βvisited.toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β {a | a β visited}
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β βvisited.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
exact h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β {a | a β visited}
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
h1 : list_direct_succ_set g visited β {a | a β visited}
β’ list_direct_succ_set g visited β {a | a β visited}
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [if_pos c1]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
apply ih
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
trans (x :: stack).toFinset.toSet βͺ visited.toFinset.toSet
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(x :: stack).toFinset βͺ βvisited.toFinset β βstack.toFinset βͺ βvisited.toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
exact h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
exact extracted_3 visited stack x c1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(x :: stack).toFinset βͺ βvisited.toFinset β βstack.toFinset βͺ βvisited.toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g visited β βstack.toFinset βͺ βvisited.toFinset β
list_direct_succ_set g (dft_aux g stack visited) β β(dft_aux g stack visited).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(x :: stack).toFinset βͺ βvisited.toFinset β βstack.toFinset βͺ βvisited.toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [dft_aux]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (x :: stack) visited) β β(dft_aux g (x :: stack) visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [if_neg c1]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g
(if x β visited then dft_aux g stack visited else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(if x β visited then dft_aux g stack visited
else dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
apply ih
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
simp only [list_direct_succ_set_cons]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(direct_succ_list g x).toFinset βͺ list_direct_succ_set g visited β
β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux_aux
|
[503, 1]
|
[531, 99]
|
exact extracted_4 (direct_succ_list g x) visited stack (list_direct_succ_set g visited) x h1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(direct_succ_list g x).toFinset βͺ list_direct_succ_set g visited β
β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
visited : List Node
x : Node
stack : List Node
c1 : x β visited
ih :
list_direct_succ_set g (x :: visited) β β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset β
list_direct_succ_set g (dft_aux g (direct_succ_list g x ++ stack) (x :: visited)) β
β(dft_aux g (direct_succ_list g x ++ stack) (x :: visited)).toFinset
h1 : list_direct_succ_set g visited β β(x :: stack).toFinset βͺ βvisited.toFinset
β’ β(direct_succ_list g x).toFinset βͺ list_direct_succ_set g visited β
β(direct_succ_list g x ++ stack).toFinset βͺ β(x :: visited).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux
|
[534, 1]
|
[543, 9]
|
apply list_direct_succ_set_closed_dft_aux_aux
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ list_direct_succ_set g (dft_aux g stack []) β β(dft_aux g stack []).toFinset
|
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ list_direct_succ_set g [] β βstack.toFinset βͺ β[].toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ list_direct_succ_set g (dft_aux g stack []) β β(dft_aux g stack []).toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux
|
[534, 1]
|
[543, 9]
|
simp only [list_direct_succ_set]
|
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ list_direct_succ_set g [] β βstack.toFinset βͺ β[].toFinset
|
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ {y | β x β [], β ys, y β ys β§ (x, ys) β g} β βstack.toFinset βͺ β[].toFinset
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ list_direct_succ_set g [] β βstack.toFinset βͺ β[].toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
list_direct_succ_set_closed_dft_aux
|
[534, 1]
|
[543, 9]
|
simp
|
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ {y | β x β [], β ys, y β ys β§ (x, ys) β g} β βstack.toFinset βͺ β[].toFinset
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h1
Node : Type
instβ : DecidableEq Node
g : Graph Node
stack : List Node
β’ {y | β x β [], β ys, y β ys β§ (x, ys) β g} β βstack.toFinset βͺ β[].toFinset
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
base_of_reachable_from_list_is_subset_of_reachable_from_list
|
[613, 1]
|
[623, 40]
|
simp only [Set.subset_def]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
β’ βxs.toFinset β reachable_from_list g xs
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
β’ β x β βxs.toFinset, x β reachable_from_list g xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
β’ βxs.toFinset β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
base_of_reachable_from_list_is_subset_of_reachable_from_list
|
[613, 1]
|
[623, 40]
|
intro x a1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
β’ β x β βxs.toFinset, x β reachable_from_list g xs
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β βxs.toFinset
β’ x β reachable_from_list g xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
β’ β x β βxs.toFinset, x β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
base_of_reachable_from_list_is_subset_of_reachable_from_list
|
[613, 1]
|
[623, 40]
|
simp at a1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β βxs.toFinset
β’ x β reachable_from_list g xs
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β xs
β’ x β reachable_from_list g xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β βxs.toFinset
β’ x β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
base_of_reachable_from_list_is_subset_of_reachable_from_list
|
[613, 1]
|
[623, 40]
|
exact reachable_from_list.base x a1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β xs
β’ x β reachable_from_list g xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs : List Node
x : Node
a1 : x β xs
β’ x β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
simp only [Set.subset_def]
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
β’ reachable_from_list g xs β reachable_from_list g ys
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
β’ β x β reachable_from_list g xs, x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
β’ reachable_from_list g xs β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
intro x a1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
β’ β x β reachable_from_list g xs, x β reachable_from_list g ys
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x : Node
a1 : x β reachable_from_list g xs
β’ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
β’ β x β reachable_from_list g xs, x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
induction a1
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x : Node
a1 : x β reachable_from_list g xs
β’ x β reachable_from_list g ys
|
case base
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x xβ : Node
aβ : xβ β xs
β’ xβ β reachable_from_list g ys
case step
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x xβ : Node
eβ : Node Γ List Node
aβΒ² : eβ β g
aβΒΉ : xβ β eβ.2
aβ : reachable_from_list g xs eβ.1
a_ihβ : eβ.1 β reachable_from_list g ys
β’ xβ β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x : Node
a1 : x β reachable_from_list g xs
β’ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
case base a ih =>
apply reachable_from_list.base
apply Set.mem_of_subset_of_mem h1 ih
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
case step x e ih_1 ih_2 _ ih_4 =>
exact reachable_from_list.step x e ih_1 ih_2 ih_4
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
aβ : reachable_from_list g xs e.1
ih_4 : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
aβ : reachable_from_list g xs e.1
ih_4 : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
apply reachable_from_list.base
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β reachable_from_list g ys
|
case a
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
apply Set.mem_of_subset_of_mem h1 ih
|
case a
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case a
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
x a : Node
ih : a β xs
β’ a β ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_mono
|
[626, 1]
|
[641, 56]
|
exact reachable_from_list.step x e ih_1 ih_2 ih_4
|
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
aβ : reachable_from_list g xs e.1
ih_4 : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
instβ : DecidableEq Node
g : Graph Node
xs ys : List Node
h1 : xs β ys
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
aβ : reachable_from_list g xs e.1
ih_4 : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
simp only [Set.subset_def]
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ reachable_from_list g (xs ++ ys) β reachable_from_list g xs βͺ reachable_from_list g ys
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g (xs ++ ys), x β reachable_from_list g xs βͺ reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ reachable_from_list g (xs ++ ys) β reachable_from_list g xs βͺ reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
intro x a1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g (xs ++ ys), x β reachable_from_list g xs βͺ reachable_from_list g ys
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs βͺ reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g (xs ++ ys), x β reachable_from_list g xs βͺ reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
simp
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs βͺ reachable_from_list g ys
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs βͺ reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
induction a1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case base
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x xβ : Node
aβ : xβ β xs ++ ys
β’ xβ β reachable_from_list g xs β¨ xβ β reachable_from_list g ys
case step
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x xβ : Node
eβ : Node Γ List Node
aβΒ² : eβ β g
aβΒΉ : xβ β eβ.2
aβ : reachable_from_list g (xs ++ ys) eβ.1
a_ihβ : eβ.1 β reachable_from_list g xs β¨ eβ.1 β reachable_from_list g ys
β’ xβ β reachable_from_list g xs β¨ xβ β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g (xs ++ ys)
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case _ x ih =>
simp at ih
cases ih
case inl c1 =>
left
exact reachable_from_list.base x c1
case inr c1 =>
right
exact reachable_from_list.base x c1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs ++ ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs ++ ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case _ x e ih_1 ih_2 ih_3 ih_4 =>
cases ih_4
case _ left =>
left
exact reachable_from_list.step x e ih_1 ih_2 left
case _ right =>
right
exact reachable_from_list.step x e ih_1 ih_2 right
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
ih_4 : e.1 β reachable_from_list g xs β¨ e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
ih_4 : e.1 β reachable_from_list g xs β¨ e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
simp at ih
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs ++ ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs β¨ x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs ++ ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
cases ih
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs β¨ x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case inl
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
hβ : x β xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
case inr
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
hβ : x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
ih : x β xs β¨ x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case inl c1 =>
left
exact reachable_from_list.base x c1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case inr c1 =>
right
exact reachable_from_list.base x c1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
left
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
exact reachable_from_list.base x c1
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β xs
β’ x β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
right
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
exact reachable_from_list.base x c1
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
c1 : x β ys
β’ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
cases ih_4
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
ih_4 : e.1 β reachable_from_list g xs β¨ e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case inl
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
hβ : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
case inr
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
hβ : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
ih_4 : e.1 β reachable_from_list g xs β¨ e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case _ left =>
left
exact reachable_from_list.step x e ih_1 ih_2 left
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
case _ right =>
right
exact reachable_from_list.step x e ih_1 ih_2 right
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
left
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
exact reachable_from_list.step x e ih_1 ih_2 left
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
left : e.1 β reachable_from_list g xs
β’ x β reachable_from_list g xs
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
right
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g xs β¨ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_left
|
[644, 1]
|
[671, 59]
|
exact reachable_from_list.step x e ih_1 ih_2 right
|
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
|
no goals
|
Please generate a tactic in lean4 to solve the state.
STATE:
case h
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
xβ x : Node
e : Node Γ List Node
ih_1 : e β g
ih_2 : x β e.2
ih_3 : reachable_from_list g (xs ++ ys) e.1
right : e.1 β reachable_from_list g ys
β’ x β reachable_from_list g ys
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_right
|
[674, 1]
|
[692, 20]
|
simp only [Set.subset_def]
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ reachable_from_list g xs βͺ reachable_from_list g ys β reachable_from_list g (xs ++ ys)
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g xs βͺ reachable_from_list g ys, x β reachable_from_list g (xs ++ ys)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ reachable_from_list g xs βͺ reachable_from_list g ys β reachable_from_list g (xs ++ ys)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_right
|
[674, 1]
|
[692, 20]
|
intro x a1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g xs βͺ reachable_from_list g ys, x β reachable_from_list g (xs ++ ys)
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g xs βͺ reachable_from_list g ys
β’ x β reachable_from_list g (xs ++ ys)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
β’ β x β reachable_from_list g xs βͺ reachable_from_list g ys, x β reachable_from_list g (xs ++ ys)
TACTIC:
|
https://github.com/pthomas505/FOL.git
|
097a4abea51b641d144539b9a0f7516f3b9d818c
|
FOL/Parsing/DFT.lean
|
reachable_from_list_of_append_right
|
[674, 1]
|
[692, 20]
|
simp at a1
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g xs βͺ reachable_from_list g ys
β’ x β reachable_from_list g (xs ++ ys)
|
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g xs β¨ x β reachable_from_list g ys
β’ x β reachable_from_list g (xs ++ ys)
|
Please generate a tactic in lean4 to solve the state.
STATE:
Node : Type
inst : DecidableEq Node
g : Graph Node
xs ys : List Node
x : Node
a1 : x β reachable_from_list g xs βͺ reachable_from_list g ys
β’ x β reachable_from_list g (xs ++ ys)
TACTIC:
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.