Skip to content
Snippets Groups Projects
Commit 41b8ca41 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Merge branch 'fix-unused-variable-warnings' into 'master'

Replace unused pattern variables with underscore

See merge request !203
parents 94d45b1c b920e707
No related branches found
No related tags found
1 merge request!203Replace unused pattern variables with underscore
Pipeline #38699 passed
...@@ -26,7 +26,7 @@ Fixpoint coPset_wf (t : coPset_raw) : bool := ...@@ -26,7 +26,7 @@ Fixpoint coPset_wf (t : coPset_raw) : bool :=
| coPLeaf _ => true | coPLeaf _ => true
| coPNode true (coPLeaf true) (coPLeaf true) => false | coPNode true (coPLeaf true) (coPLeaf true) => false
| coPNode false (coPLeaf false) (coPLeaf false) => false | coPNode false (coPLeaf false) (coPLeaf false) => false
| coPNode b l r => coPset_wf l && coPset_wf r | coPNode _ l r => coPset_wf l && coPset_wf r
end. end.
Arguments coPset_wf !_ / : simpl nomatch, assert. Arguments coPset_wf !_ / : simpl nomatch, assert.
......
...@@ -22,12 +22,12 @@ Definition htail {A As} (xs : hlist (tcons A As)) : hlist As := ...@@ -22,12 +22,12 @@ Definition htail {A As} (xs : hlist (tcons A As)) : hlist As :=
Fixpoint hheads {As Bs} : hlist (tapp As Bs) hlist As := Fixpoint hheads {As Bs} : hlist (tapp As Bs) hlist As :=
match As with match As with
| tnil => λ _, hnil | tnil => λ _, hnil
| tcons A As => λ xs, hcons (hhead xs) (hheads (htail xs)) | tcons _ _ => λ xs, hcons (hhead xs) (hheads (htail xs))
end. end.
Fixpoint htails {As Bs} : hlist (tapp As Bs) hlist Bs := Fixpoint htails {As Bs} : hlist (tapp As Bs) hlist Bs :=
match As with match As with
| tnil => id | tnil => id
| tcons A As => λ xs, htails (htail xs) | tcons _ _ => λ xs, htails (htail xs)
end. end.
Fixpoint himpl (As : tlist) (B : Type) : Type := Fixpoint himpl (As : tlist) (B : Type) : Type :=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment