Skip to content

Commit

Permalink
chore: remove triv tactic (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em authored Apr 1, 2024
1 parent 09ff097 commit 67c40f8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Std/Tactic/Init.lean
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ example (h : ∀ x : Nat, x = x → True) : True := by
elab "eapply " e:term : tactic =>
evalApplyLikeTactic (·.apply (cfg := {newGoals := .nonDependentOnly})) e

/--
Tries to solve the goal using a canonical proof of `True`, or the `rfl` tactic.
Unlike `trivial` or `trivial'`, does not use the `contradiction` tactic.
-/
macro (name := triv) "triv" : tactic =>
`(tactic| first | exact trivial | rfl | fail "triv tactic failed")
/-- Deprecated variant of `trivial`. -/
elab (name := triv) "triv" : tactic => throwError "`triv` has been removed; use `trivial` instead"

/-- `conv` tactic to close a goal using an equality theorem. -/
macro (name := Conv.exact) "exact " t:term : conv => `(conv| tactic => exact $t)
Expand Down

0 comments on commit 67c40f8

Please sign in to comment.