Skip to content

Commit c711b53

Browse files
committed
return value for constructor application
1 parent ca8d245 commit c711b53

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Inhabit/Sequents.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ partial def seqsolve (goal : MVarId) : TacticM Bool :=
1717
let _ ← seqsolve newGoal
1818
return true
1919

20-
matchConstInduct goalType.getAppFn
21-
(fun _ => throwTacticEx `seqsolve goal "target is not an inductive datatype")
20+
returnmatchConstInduct goalType.getAppFn
21+
(fun _ => return false)
2222
fun ival us => do
2323
for ctor in ival.ctors do
2424
try
@@ -27,10 +27,10 @@ partial def seqsolve (goal : MVarId) : TacticM Bool :=
2727
newGoals.forM $ fun newGoal => do
2828
if not $ ← seqsolve newGoal then
2929
failure
30+
return true
3031
catch _ =>
3132
pure ()
32-
33-
return false
33+
return false
3434

3535
elab "seqsolve" : tactic =>
3636
withMainContext do

0 commit comments

Comments
 (0)