possible bug revealed by failure to apply simple rel
, warning/error is confusing
#20232
Open
3 tasks done
rel
, warning/error is confusing
#20232
Prerequisites
Please put an X between the brackets as you perform the following steps:
https://github.com/leanprover/lean4/issues
Avoid dependencies to Mathlib or Batteries.
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
The following is an MWE reproducing an issue I found working on a wider exercise.
The
rel [h]
fails.The error message is confusing:
The code and error message have been verified on the online environment:
https://live.lean-lang.org/#codez=JYWwDg9gTgLgBAWQIYwBYBtgCMB0AVJAYxmEICgyBTADyXHUrgG8A7ALjkFRCAXzgApUHAKxxAJkRwWASg4AmAHos4gUyI4AZgAMcNgF44WAJ5k4cQknTljx+YpXyROvfrhRK6OAG1UAXTgBaX3AAPH4BAGZIwOgAziG+RpYA+spqmg4GEtAgCSwAriBkQA
Context
The issue was mentioned on the lean zulipchat and it was recommended a bug report was raised (forgive me if I misunderstood that bit)
https://leanprover.zulipchat.com/#narrow/channel/113489-new-members/topic/can't.20apply.20simple.20inequality.20by.20.60rel.60
Steps to Reproduce
Expected behavior: [Clear and concise description of what you expect to happen]
It is expected that the
rel [h]
succeeds with no error or warning.There may be some discussion about (0.5)^n ≥ (0.5)^5 but the MWE above only uses natural numbers, not reals or irrationals, not even integers.
Actual behavior: [Clear and concise description of what actually happens]
The
rel [h]
fails.The error message is confusing:
Additional
Adding an explicit hypothesis
g: 1 ≤ 2
in response to the error message is also fails.Even if it worked, this should not be considered a satisfactory solution.
Versions
using macOS 15.2 VSC 1.96.2 the lean version is "4.3.0"
using live.lean-lang.org "4.15.0-rc1"
The text was updated successfully, but these errors were encountered: