Skip to content

Commit ca96580

Browse files
committed
replace top level rw with apply at
1 parent 6dade74 commit ca96580

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Pullback/SSA/Tactic.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def evalBindSomeElim : Tactic := fun _ =>
2525
let hyp := mkIdent decl.userName
2626
let wit := mkIdent binderName
2727
let hWit := mkIdent (Name.mkSimple s!"h{binderName}")
28-
evalTactic (← `(tactic| rw [Option.bind_eq_some_iff] at $hyp:ident))
28+
evalTactic (← `(tactic| apply Option.bind_eq_some_iff.mp at $hyp:ident))
2929
evalTactic (← `(tactic| obtain ⟨$wit, $hWit, $hyp⟩ := $hyp:ident))
3030
return
3131
throwTacticEx `bind_some_elim (← getMainGoal)
@@ -51,7 +51,7 @@ def evalIsSomeElim : Tactic := fun _ =>
5151
| _ => `a
5252
let hyp := mkIdent decl.userName
5353
let wit := mkIdent (Name.mkSimple s!"{witName}'")
54-
evalTactic (← `(tactic| rw [Option.isSome_iff_exists] at $hyp:ident))
54+
evalTactic (← `(tactic| apply Option.isSome_iff_exists.mp at $hyp:ident))
5555
evalTactic (← `(tactic| obtain ⟨$wit, $hyp⟩ := $hyp:ident))
5656
return
5757
throwTacticEx `is_some_elim (← getMainGoal)
@@ -62,7 +62,7 @@ theorem womp (a c : Option Nat) (b : Nat → Option Nat) (p : Nat → Prop) :
6262
c.isSome →
6363
(do let x ← a; let y ← c; some <| p (← b x)) = some True := by
6464
intro h h1
65-
rw [Option.bind_eq_bind] at *
65+
rewrite [Option.bind_eq_bind] at *
6666
is_some_elim
6767
bind_some_elim
6868
bind_some_elim

0 commit comments

Comments
 (0)