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.
- Int.lorproof · cited by 3
- Int.ldiffproof · cited by 3
- Int.landproof · cited by 3
- Int.bitwise_andproof · cited by 2
- Nat.ldiff_bitstatement · cited by 0
- Nat.testBit_ldiffstatement · cited by 0
- Num.castNum_ldiffstatement · cited by 0