fixes #3770 Also start `rfl` with a `fail` message that is hopefully more helpful than what we get now (see updated test output). This would be a cheaper way to address #3302 without changing the implementation of rfl (as tried in #3714).
39 lines
2 KiB
Text
39 lines
2 KiB
Text
runTacticMustCatchExceptions.lean:2:25-2:28: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
⊢ 1 ≤ a + b
|
|
runTacticMustCatchExceptions.lean:3:25-3:28: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
this : 1 ≤ a + b
|
|
⊢ a + b ≤ b
|
|
runTacticMustCatchExceptions.lean:4:25-4:28: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
this✝ : 1 ≤ a + b
|
|
this : a + b ≤ b
|
|
⊢ b ≤ 2
|
|
runTacticMustCatchExceptions.lean:9:18-9:21: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
⊢ 1 ≤ a + b
|
|
runTacticMustCatchExceptions.lean:10:14-10:17: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
⊢ a + b ≤ b
|
|
runTacticMustCatchExceptions.lean:11:14-11:17: error: The rfl tactic failed. Possible reasons:
|
|
- The goal is not a reflexive relation (neither `=` nor a relation with a @[refl] lemma).
|
|
- The arguments of the relation are not equal.
|
|
Try using the reflexivitiy lemma for your relation explicitly, e.g. `exact Eq.rfl`.
|
|
a b : Nat
|
|
⊢ b ≤ 2
|