Description: Define the derangement function, which counts the number of bijections from a set to itself such that no element is mapped to itself. (Contributed by Mario Carneiro, 19-Jan-2015)
Ref | Expression | ||
---|---|---|---|
Hypothesis | derang.d | |
|
Assertion | derangval | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | derang.d | |
|
2 | f1oeq2 | |
|
3 | f1oeq3 | |
|
4 | 2 3 | bitrd | |
5 | raleq | |
|
6 | 4 5 | anbi12d | |
7 | 6 | abbidv | |
8 | 7 | fveq2d | |
9 | fvex | |
|
10 | 8 1 9 | fvmpt | |