Zulip Chat Archive

Stream: new members

Topic: Ranges of naturals


Michael Wahlberg (Apr 18 2023 at 22:04):

If we have finite ranges, how do we trivially say that the number will be in one of the ranges mentioned? This is a lean4 code

example (n : )(hn1 : 2  n)(hn2 : n < 4)  : n = 2  n = 3 := by
  sorry

Alex J. Best (Apr 18 2023 at 22:35):

Looks like a perfect job for tactic#interval_cases (it should work in lean 4 too after Mathlib.Tactic.IntervalCases)


Last updated: Dec 20 2023 at 11:08 UTC