diff options
| author | Kazuhiko Sakaguchi | 2020-11-07 00:51:34 +0900 |
|---|---|---|
| committer | GitHub | 2020-11-07 00:51:34 +0900 |
| commit | e1f1d3c5e778f9e427e46b9bca2e12719085a6ef (patch) | |
| tree | 0c288090d2187151538e225e591bfea8c1752e97 /mathcomp/ssreflect | |
| parent | 26a35314966a28880888eefe62ef053f0b9f038f (diff) | |
| parent | aad2327376b2f76950be51a6bf22b32b0a01b2eb (diff) | |
Merge pull request #626 from CohenCyril/inj_card_bij
Generalizing inj_card_onto and inj_card_bij.
Diffstat (limited to 'mathcomp/ssreflect')
| -rw-r--r-- | mathcomp/ssreflect/fintype.v | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mathcomp/ssreflect/fintype.v b/mathcomp/ssreflect/fintype.v index 422d760..91d5c80 100644 --- a/mathcomp/ssreflect/fintype.v +++ b/mathcomp/ssreflect/fintype.v @@ -1300,7 +1300,9 @@ Qed. Lemma leq_card : #|T| <= #|T'|. Proof. exact: (leq_card_in (in2W _)). Qed. -Hypothesis card_range : #|T| = #|T'|. +Hypothesis card_range : #|T| >= #|T'|. + +Let eq_card : #|T| = #|T'|. Proof. by apply/eqP; rewrite eqn_leq leq_card. Qed. Lemma inj_card_onto y : y \in codom f. Proof. by move: y; apply/subset_cardP; rewrite ?card_codom ?subset_predT. Qed. |
