File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments