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