fix: tacticSeqBracketed

This commit is contained in:
Leonardo de Moura 2020-09-28 16:24:27 -07:00
parent 2755972447
commit d4c1432574
2 changed files with 10 additions and 1 deletions

View file

@ -24,7 +24,7 @@ namespace Tactic
def tacticSeq1Indented : Parser :=
parser! many1Indent $ tacticParser >> optional "; "
def tacticSeqBracketed : Parser :=
parser! "{" >> sepBy tacticParser "; " true >> "}"
parser! "{" >> many (tacticParser >> optional "; ") >> "}"
def tacticSeq :=
nodeWithAntiquot "tacticSeq" `Lean.Parser.Tactic.tacticSeq $ tacticSeqBracketed <|> tacticSeq1Indented

View file

@ -160,6 +160,15 @@ case b => exact y
traceState
repeat assumption
theorem simple13b (x y z : Nat) : y = z → x = x → x = y → x = z := by {
intros h1 h2 h3;
traceState;
apply @Eq.trans;
case b => exact y;
traceState;
repeat assumption
}
theorem simple14 (x y z : Nat) : y = z → x = x → x = y → x = z := by
intros
apply @Eq.trans