Skip to content

Commit 8a5d4b8

Browse files
authored
Merge pull request #132 from arthuraa/fintype-instances
Add finType instances for fmap and fsfun.
2 parents 9fc632e + 580260d commit 8a5d4b8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

finmap.v

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3059,6 +3059,14 @@ HB.instance Definition _ := Countable.copy {fmap K -> V}
30593059

30603060
End FinMapCountType.
30613061

3062+
Section FinMapFinType.
3063+
Variable (K V : finType).
3064+
3065+
HB.instance Definition _ := Finite.copy {fmap K -> V}
3066+
(can_type (@finMap_codeK K V)).
3067+
3068+
End FinMapFinType.
3069+
30623070
End FinMapCanonicals.
30633071

30643072
Section FinMapTheory.
@@ -3845,6 +3853,9 @@ HB.instance Definition _ (K V : choiceType) (d : K -> V) :=
38453853
HB.instance Definition _ (K V : countType) (d : K -> V) :=
38463854
[Countable of fsfun d by <:].
38473855

3856+
HB.instance Definition _ (K V : finType) (d : K -> V) :=
3857+
[Finite of fsfun d by <:].
3858+
38483859
Declare Scope fsfun_scope.
38493860
Delimit Scope fsfun_scope with fsfun.
38503861

0 commit comments

Comments
 (0)