fix: tacticSeqBracketed
This commit is contained in:
parent
2755972447
commit
d4c1432574
2 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue