Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions theories/Word.v
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,19 @@ Proof.
unfold wor; induction sz; shatterer.
Qed.

Lemma wor_idemp
: forall (n : nat) (x0 : word n), x0 ^| x0 = x0.
Proof.
(intros).
(induction x0).
reflexivity.
(rewrite <- IHx0 at 3).
(unfold wor).
(simpl).
(rewrite orb_diag).
reflexivity.
Qed.

Lemma wand_wones : forall sz w, wones sz ^& w = w.
Proof.
unfold wand; induction sz; shatterer.
Expand Down