File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 44
55### Added
66
7+ - in ` finmap.v ` :
8+ + lemma ` fset_nat_maximum `
9+
710### Changed
811
912### Renamed
Original file line number Diff line number Diff line change @@ -1800,6 +1800,15 @@ rewrite -cardfs_eq0 cardfE; apply: (equivP existsP).
18001800by split=> [] [a aP]; [exists (val a); apply: valP|exists [` aP]].
18011801Qed .
18021802
1803+ Lemma fset_nat_maximum A (f : K -> nat) : A != fset0 ->
1804+ (exists i, i \in A /\ forall j, j \in A -> f j <= f i)%N.
1805+ Proof .
1806+ move=> /fset0Pn[x Ax].
1807+ have [/= y _ /(_ _ isT) mf] := @arg_maxnP _ [` Ax]%fset xpredT (f \o val) isT.
1808+ exists (val y); split; first exact: valP.
1809+ by move=> z Az; have := mf [` Az]%fset.
1810+ Qed .
1811+
18031812Lemma cardfs_gt0 A : (0 < #|` A|)%N = (A != fset0).
18041813Proof . by rewrite lt0n cardfs_eq0. Qed .
18051814
You can’t perform that action at this time.
0 commit comments