Debian Codegraph @

src/Util/ZUtil/Lxor.v

raw
1 From Coq Require Import ZArith.
2 From Coq Require Import Lia.
3 From Coq Require Import Bool.
4 From Coq Require Import Btauto.
5 Require Import Crypto.Util.ZUtil.Notations.
6 Require Import Crypto.Util.ZUtil.Definitions.
7 Require Import Crypto.Util.ZUtil.Hints.Core.
8 Require Import Crypto.Util.ZUtil.Testbit.
9 Local Open Scope bool_scope. Local Open Scope Z_scope.
10
11 Module Z.
12 Lemma land_lxor_distr_l : forall a b c, (Z.lxor a b) &' c = (Z.lxor (a &' c) b) &' c.
13 Proof. intros; apply Z.bits_inj; intro; autorewrite with Ztestbit; btauto. Qed.
14 Lemma land_lxor_distr_r : forall a b c, (Z.lxor a b) &' c = (Z.lxor a (b &' c)) &' c.
15 Proof. intros; apply Z.bits_inj; intro; autorewrite with Ztestbit; btauto. Qed.
16 Lemma land_lxor_distr_both : forall a b c, (Z.lxor a b) &' c = (Z.lxor (a &' c) (b &' c)) &' c.
17 Proof. intros; apply Z.bits_inj; intro; autorewrite with Ztestbit; btauto. Qed.
18 End Z.