Mathlib Map

Theorems · Definition · number theory

Nat.ldiff

ℕ → ℕ → ℕ

ldiff a b performs bitwise set difference. For each corresponding pair of bits taken as Booleans, say aᵢ and bᵢ, it applies the Boolean operation aᵢ ∧ ¬bᵢ to obtain the iᵗʰ bit of the result.

Defined in
Mathlib.Data.Nat.Bits
Cited by
4 results in Mathlib
Foundations
Depth 27 from the axioms · uses propext

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites0

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Nothing in Mathlib beyond the foundations.

Cited by7

Results whose statement or proof uses this declaration.