English
lor is the bitwise OR on integers.
Русский
lor — противоположная операция по битам на целых.
LaTeX
$$$\\mathrm{lor}: \\mathbb{Z} \\to \\mathbb{Z} \\to \\mathbb{Z}$$$
Lean4
/-- `lor` takes two integers and returns their bitwise `or` -/
def lor : ℤ → ℤ → ℤ
| (m : ℕ), (n : ℕ) => m ||| n
| (m : ℕ), -[n+1] => -[Nat.ldiff n m+1]
| -[m+1], (n : ℕ) => -[Nat.ldiff m n+1]
| -[m+1], -[n+1] => -[m &&& n+1]