lean4
lean4 copied to clipboard
`<|>` notation is not pretty-printed
Prerequisites
Please put an X between the brackets as you perform the following steps:
- [x] Check that your issue is not already filed: https://github.com/leanprover/lean4/issues
- [x] Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to Mathlib or Batteries.
- [x] Test your test case against the latest nightly release, for example on https://live.lean-lang.org/#project=lean-nightly (You can also use the settings there to switch to “Lean nightly”)
Description
Running #check Option.none_orElse yields
Option.none_orElse.{u_1} {α : Type u_1} (x : Option α) : (HOrElse.hOrElse none fun x_1 => x) = x
It would be nicer if this was
Option.none_orElse.{u_1} {α : Type u_1} (x : Option α) : (none <|> x) = x
as in the original statement of the theorem.
Versions
4.12.0-nightly-2024-10-10 on live.lean-lang.org
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.