statement
stringlengths
1
510
proof
stringlengths
0
12.8k
type
stringclasses
24 values
symbolic_name
stringlengths
1
50
library
stringclasses
14 values
filename
stringclasses
114 values
imports
listlengths
1
47
deps
listlengths
0
64
docstring
stringclasses
241 values
source_url
stringclasses
1 value
commit
stringclasses
1 value
or_andl : left_distributive or and.
Proof. by move=> P Q R; rewrite -!(orC R) or_andr. Qed.
Lemma
or_andl
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "orC", "or_andr" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
and_orr : right_distributive and or.
Proof. by move=> P Q R; apply/not_inj; rewrite !(not_andE, not_orE) or_andr. Qed.
Lemma
and_orr
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "not_andE", "not_inj", "not_orE", "or_andr" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
and_orl : left_distributive and or.
Proof. by move=> P Q R; apply/not_inj; rewrite !(not_andE, not_orE) or_andl. Qed.
Lemma
and_orl
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "not_andE", "not_inj", "not_orE", "or_andl" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
forallNE {T} (P : T -> Prop) : (forall x, ~ P x) = (~ exists x, P x).
Proof. by rewrite propeqE; split => [fP [x /fP]//|nexP x Px]; apply: nexP; exists x. Qed.
Lemma
forallNE
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "propeqE", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
existsNE {T} (P : T -> Prop) : (exists x, ~ P x) = (~ forall x, P x).
Proof. rewrite propeqE; split=> [[x Px] aP //|NaP]. by apply: contrapT; rewrite -forallNE => aP; apply: NaP => x; apply: contrapT. Qed.
Lemma
existsNE
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "contrapT", "forallNE", "propeqE", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
existsNP T (P : T -> Prop) : (exists x, ~ P x) <-> ~ forall x, P x.
Proof. by rewrite existsNE. Qed.
Lemma
existsNP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNE" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
not_existsP T (P : T -> Prop) : (exists x, P x) <-> ~ forall x, ~ P x.
Proof. by rewrite forallNE notK. Qed.
Lemma
not_existsP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "forallNE", "notK" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
forallNP T (P : T -> Prop) : (forall x, ~ P x) <-> ~ exists x, P x.
Proof. by rewrite forallNE. Qed.
Lemma
forallNP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "forallNE" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
not_forallP T (P : T -> Prop) : (forall x, P x) <-> ~ exists x, ~ P x.
Proof. by rewrite existsNE notK. Qed.
Lemma
not_forallP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNE", "notK" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
exists2E A P Q : (exists2 x : A, P x & Q x) = (exists x, P x /\ Q x).
Proof. by eqProp=> -[x]; last case; exists x. Qed.
Lemma
exists2E
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "eqProp" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
exists2P T (P Q : T -> Prop) : (exists2 x, P x & Q x) <-> exists x, P x /\ Q x.
Proof. by rewrite exists2E. Qed.
Lemma
exists2P
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "exists2E" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
not_exists2P T (P Q : T -> Prop) : (exists2 x, P x & Q x) <-> ~ forall x, ~ P x \/ ~ Q x.
Proof. rewrite exists2P not_existsP. by split; apply: contra_not => PQx x; apply/not_andP; apply: PQx. Qed.
Lemma
not_exists2P
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "exists2P", "not_andP", "not_existsP", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
forall2NP T (P Q : T -> Prop) : (forall x, ~ P x \/ ~ Q x) <-> ~ (exists2 x, P x & Q x).
Proof. split=> [PQ [t Pt Qt]|PQ t]; first by have [] := PQ t. by rewrite -not_andP => -[Pt Qt]; apply PQ; exists t. Qed.
Lemma
forall2NP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "not_andP", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
forallPNP T (P Q : T -> Prop) : (forall x, P x -> ~ Q x) <-> ~ (exists2 x, P x & Q x).
Proof. split=> [PQ [t Pt Qt]|PQ t]; first by have [] := PQ t. by move=> Pt Qt; apply: PQ; exists t. Qed.
Lemma
forallPNP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
existsPNP T (P Q : T -> Prop) : (exists2 x, P x & ~ Q x) <-> ~ (forall x, P x -> Q x).
Proof. split=> [[x Px NQx] /(_ x Px)//|]; apply: contra_notP => + x Px. by apply: contra_notP => NQx; exists x. Qed.
Lemma
existsPNP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "contra_notP", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
forallp_asboolPn2 {T} {P Q : T -> Prop} : reflect (forall x : T, ~ P x \/ ~ Q x) (~~ `[<exists2 x : T, P x & Q x>]).
Proof. apply: (iffP idP)=> [/asboolPn NP x|NP]. by move/forallPNP : NP => /(_ x)/and_rec/not_andP. by apply/asboolP=> -[x Px Qx]; have /not_andP := NP x; exact. Qed.
Lemma
forallp_asboolPn2
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "asboolPn", "forallPNP", "not_andP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
max
:= Order.max.
Notation
max
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
min
:= Order.min.
Notation
min
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
bigmax_geP : reflect (m <= x \/ exists2 i, P i & m <= F i) (m <= \big[max/x]_(i | P i) F i).
Proof. apply: (iffP idP) => [|[mx|[i Pi mFi]]]. - rewrite leNgt => /bigmax_ltP /not_andP[/negP|]; first by rewrite -leNgt; left. by move=> /existsNP[i /not_implyP[Pi /negP]]; rewrite -leNgt; right; exists i. - by rewrite bigmax_idl le_max mx. - by rewrite (bigmaxD1 i)// le_max mFi. Qed.
Lemma
bigmax_geP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNP", "max", "not_andP", "not_implyP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
bigmax_gtP : reflect (m < x \/ exists2 i, P i & m < F i) (m < \big[max/x]_(i | P i) F i).
Proof. apply: (iffP idP) => [|[mx|[i Pi mFi]]]. - rewrite ltNge => /bigmax_leP /not_andP[/negP|]; first by rewrite -ltNge; left. by move=> /existsNP[i /not_implyP[Pi /negP]]; rewrite -ltNge; right; exists i. - by rewrite bigmax_idl lt_max mx. - by rewrite (bigmaxD1 i)// lt_max mFi. Qed.
Lemma
bigmax_gtP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNP", "max", "not_andP", "not_implyP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
bigmin_leP : reflect (x <= m \/ exists2 i, P i & F i <= m) (\big[min/x]_(i | P i) F i <= m).
Proof. apply: (iffP idP) => [|[xm|[i Pi Fim]]]. - rewrite leNgt => /bigmin_gtP /not_andP[/negP|]; first by rewrite -leNgt; left. by move=> /existsNP[i /not_implyP[Pi /negP]]; rewrite -leNgt; right; exists i. - by rewrite bigmin_idl ge_min xm. - by rewrite (bigminD1 i)// ge_min Fim. Qed.
Lemma
bigmin_leP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNP", "min", "not_andP", "not_implyP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
bigmin_ltP : reflect (x < m \/ exists2 i, P i & F i < m) (\big[min/x]_(i | P i) F i < m).
Proof. apply: (iffP idP) => [|[xm|[i Pi Fim]]]. - rewrite ltNge => /bigmin_geP /not_andP[/negP|]; first by rewrite -ltNge; left. by move=> /existsNP[i /not_implyP[Pi /negP]]; rewrite -ltNge; right; exists i. - by rewrite bigmin_idl gt_min xm. - by rewrite (bigminD1 _ _ _ Pi) gt_min Fim. Qed.
Lemma
bigmin_ltP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "existsNP", "min", "not_andP", "not_implyP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
fun_display : Order.disp_t.
Proof. exact: Order.default_display. Qed.
Lemma
fun_display
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "default_display" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lef f g
:= `[< forall x, (f x <= g x)%O >].
Definition
lef
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"f <= g"
:= (lef f g).
Notation
f <= g
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "lef" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
ltf f g
:= `[< (forall x, (f x <= g x)%O) /\ exists x, f x != g x >].
Definition
ltf
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"f < g"
:= (ltf f g).
Notation
f < g
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "ltf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
ltf_def f g : (f < g) = (g != f) && (f <= g).
Proof. apply/idP/andP => [fg|[gf fg]]; [split|apply/asboolP; split; [exact/asboolP|]]. - by apply/eqP => gf; move: fg => /asboolP[fg] [x /eqP]; apply; rewrite gf. - apply/asboolP => x; rewrite le_eqVlt; move/asboolP : fg => [fg [y gfy]]. by have [//|gfx /=] := boolP (f x == g x); rewrite lt_neqAle gfx /= fg. - apply/...
Lemma
ltf_def
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "fg", "funeqE", "gf", "not_existsP", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lef_refl : reflexive lef.
Proof. by move=> f; apply/asboolP => x. Qed.
Fact
lef_refl
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "lef" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lef_anti : antisymmetric lef.
Proof. move=> f g => /andP[/asboolP fg /asboolP gf]; rewrite funeqE => x. by apply/eqP; rewrite eq_le fg gf. Qed.
Fact
lef_anti
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "fg", "funeqE", "gf", "lef" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lef_trans : transitive lef.
Proof. move=> g f h /asboolP fg /asboolP gh; apply/asboolP => x. by rewrite (le_trans (fg x)). Qed.
Fact
lef_trans
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "fg", "lef" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
meetf f g
:= fun x => Order.meet (f x) (g x).
Definition
meetf
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
joinf f g
:= fun x => Order.join (f x) (g x).
Definition
joinf
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "join" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
meetfC : commutative meetf.
Proof. move=> f g; apply/funext => x; exact: meetC. Qed.
Lemma
meetfC
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "meetf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
joinfC : commutative joinf.
Proof. move=> f g; apply/funext => x; exact: joinC. Qed.
Lemma
joinfC
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "joinf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
meetfA : associative meetf.
Proof. move=> f g h; apply/funext => x; exact: meetA. Qed.
Lemma
meetfA
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "meetf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
joinfA : associative joinf.
Proof. move=> f g h; apply/funext => x; exact: joinA. Qed.
Lemma
joinfA
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "joinf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
joinfKI g f : meetf f (joinf f g) = f.
Proof. apply/funext => x; exact: joinKI. Qed.
Lemma
joinfKI
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "joinKI", "joinf", "meetf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
meetfKU g f : joinf f (meetf f g) = f.
Proof. apply/funext => x; exact: meetKU. Qed.
Lemma
meetfKU
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funext", "joinf", "meetKU", "meetf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lef_meet f g : (f <= g)%O = (meetf f g == f).
Proof. apply/idP/idP => [/asboolP f_le_g|/eqP <-]. - apply/eqP/funext => x; exact/meet_l/f_le_g. - apply/asboolP => x; exact: leIr. Qed.
Lemma
lef_meet
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "funext", "meetf" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
lefP (aT : Type) d (T : porderType d) (f g : aT -> T) : reflect (forall x, (f x <= g x)%O) (f <= g)%O.
Proof. by apply: (iffP idP) => [fg|fg]; [exact/asboolP | exact/asboolP]. Qed.
Lemma
lefP
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "asboolP", "fg" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
meetfE (aT : Type) d (T : latticeType d) (f g : aT -> T) x : ((f `&` g) x = f x `&` g x)%O.
Proof. by []. Qed.
Lemma
meetfE
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
joinfE (aT : Type) d (T : latticeType d) (f g : aT -> T) x : ((f `|` g) x = f x `|` g x)%O.
Proof. by []. Qed.
Lemma
joinfE
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
iterfS {T} (f : T -> T) (n : nat) : iter n.+1 f = f \o iter n f.
Proof. by []. Qed.
Lemma
iterfS
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
iterfSr {T} (f : T -> T) (n : nat) : iter n.+1 f = iter n f \o f.
Proof. by apply/funeqP => ?; rewrite iterSr. Qed.
Lemma
iterfSr
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funeqP" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
iter0 {T} (f : T -> T) : iter 0 f = id.
Proof. by []. Qed.
Lemma
iter0
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
inhabitedE : inhabited T = exists x : T, True.
Proof. by eqProp; case. Qed.
Lemma
inhabitedE
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "eqProp" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
inhabited_witness : inhabited T -> T.
Proof. by rewrite inhabitedE => /cid[]. Qed.
Lemma
inhabited_witness
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "cid", "inhabitedE" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
uncurryK {X Y Z : Type} : cancel (@uncurry X Y Z) curry.
Proof. by move=> f; rewrite funeq2E. Qed.
Lemma
uncurryK
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funeq2E" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
curryK {X Y Z : Type} : cancel curry (@uncurry X Y Z).
Proof. by move=> f; rewrite funeqE=> -[]. Qed.
Lemma
curryK
classical
classical/boolp.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "mathcomp_extra", "internal_Eqdep_dec", "Order.TTheory", "FunOrder.Exports" ]
[ "funeqE" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le T U (A : set T) (B : set U)
:= `[< $|{injfun [set: A] >-> [set: B]}| >].
Definition
card_le
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"A '#<=' B"
:= (card_le A B) : card_scope.
Notation
A '#<=' B
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_le" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"A '#>=' B"
:= (card_le B A) (only parsing) : card_scope.
Notation
A '#>=' B
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_le" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eq T U (A : set T) (B : set U)
:= `[< $|{bij [set: A] >-> [set: B]}| >].
Definition
card_eq
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "bij", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"A '#=' B"
:= (card_eq A B) : card_scope.
Notation
A '#=' B
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eq" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
"A '#!=' B"
:= (~~ (card_eq A B)) : card_scope.
Notation
A '#!=' B
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eq" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
finite_set {T} (A : set T)
:= exists n, A #= `I_n.
Definition
finite_set
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
infinite_set A
:= (~ finite_set A).
Notation
infinite_set
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "finite_set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
cofinite_set A
:= (finite_set (~` A)).
Notation
cofinite_set
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "finite_set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
injPex {T U} {A : set T} : $|{inj A >-> U}| <-> exists f : T -> U, set_inj A f.
Proof. by split=> [[f]|[_ /Pinj[f _]]]; first by exists f. Qed.
Lemma
injPex
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Pinj", "inj", "set", "set_inj", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
surjPex {T U} {A : set T} {B : set U} : $|{surj A >-> B}| <-> exists f, set_surj A B f.
Proof. by split=> [[f]|[_ /Psurj[f _]]]; first by exists f. Qed.
Lemma
surjPex
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Psurj", "set", "set_surj", "split", "surj" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
bijPex {T U} {A : set T} {B : set U} : $|{bij A >-> B}| <-> exists f, set_bij A B f.
Proof. by split=> [[f]|[_ /Pbij[f _]]]; first by exists f. Qed.
Lemma
bijPex
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Pbij", "bij", "set", "set_bij", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
surjfunPex {T U} {A : set T} {B : set U} : $|{surjfun A >-> B}| <-> exists f, B = f @` A.
Proof. split=> [[f]|[f ->]]; last by squash [fun f in A]. by exists f; apply/seteqP; split=> //; apply: surj. Qed.
Lemma
surjfunPex
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "set", "seteqP", "split", "surj" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
injfunPex {T U} {A : set T} {B : set U}: $|{injfun A >-> B}| <-> exists2 f : T -> U, set_fun A B f & set_inj A f.
Proof. by split=> [[f]|[_ /Pfun[? ->] /funPinj[f]]]; [exists f | squash f]. Qed.
Lemma
injfunPex
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Pfun", "funPinj", "set", "set_fun", "set_inj", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_leP {T U} {A : set T} {B : set U} : reflect $|{injfun [set: A] >-> [set: B]}| (A #<= B).
Proof. exact: asboolP. Qed.
Lemma
card_leP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "asboolP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
inj_card_le {T U} {A : set T} {B : set U} : {injfun A >-> B} -> (A #<= B).
Proof. by move=> f; apply/card_leP; squash (sigLR f). Qed.
Lemma
inj_card_le
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "set", "sigLR" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
pcard_leP {T} {U : pointedType} {A : set T} {B : set U} : reflect $|{injfun A >-> B}| (A #<= B).
Proof. by apply: (iffP card_leP) => -[f]; [squash (valLR point f) | squash (sigLR f)]. Qed.
Lemma
pcard_leP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "set", "sigLR", "valLR" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
pcard_leTP {T} {U : pointedType} {A : set T} : reflect $|{inj A >-> U}| (A #<= [set: U]).
Proof. by apply: (iffP pcard_leP) => -[f]; [squash f | squash ('totalfun_A f)]. Qed.
Lemma
pcard_leTP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "inj", "pcard_leP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
pcard_injP {T} {U : pointedType} {A : set T} : reflect (exists f : T -> U, {in A &, injective f}) (A #<= [set: U]).
Proof. by apply: (iffP pcard_leTP); rewrite injPex. Qed.
Lemma
pcard_injP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "injPex", "pcard_leTP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
ppcard_leP {T U : pointedType} {A : set T} {B : set U} : reflect $|{splitinjfun A >-> B}| (A #<= B).
Proof. by apply: (iffP pcard_leP) => -[f]; squash (split f). Qed.
Lemma
ppcard_leP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "pcard_leP", "set", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_ge0 T U (S : set U) : @set0 T #<= S.
Proof. by apply/card_leP; squash set0fun. Qed.
Lemma
card_ge0
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "set", "set0", "set0fun" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le0P T U (A : set T) : reflect (A = set0) (A #<= @set0 U).
Proof. apply: (iffP idP) => [/card_leP[f]|->//]. by rewrite -subset0 => a /mem_set aA; have [x /set_mem] := f (SigSub aA). Qed.
Lemma
card_le0P
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "SigSub", "card_leP", "mem_set", "set", "set0", "set_mem", "subset0" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le0 T U (A : set T) : (A #<= @set0 U) = (A == set0).
Proof. exact/card_le0P/eqP. Qed.
Lemma
card_le0
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_le0P", "set", "set0" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eqP {T U} {A : set T} {B : set U} : reflect $|{bij [set: A] >-> [set: B]}| (A #= B).
Proof. exact: asboolP. Qed.
Lemma
card_eqP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "asboolP", "bij", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
pcard_eq {T U} {A : set T} {B : set U} : {bij A >-> B} -> A #= B.
Proof. by move=> f; apply/card_eqP; squash (sigLR f). Qed.
Lemma
pcard_eq
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "bij", "card_eqP", "set", "sigLR" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
pcard_eqP {T} {U : pointedType} {A : set T} {B : set U} : reflect $| {bij A >-> B} | (A #= B).
Proof. by apply: (iffP card_eqP) => -[f]; [squash (valLR point f) | squash (sigLR f)]. Qed.
Lemma
pcard_eqP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "bij", "card_eqP", "set", "sigLR", "valLR" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_bijP {T U} {A : set T} {B : set U} : reflect (exists f : A -> B, bijective f) (A #= B).
Proof. by apply: (iffP card_eqP) => [[f]|[_ /PbijTT[f _]]]; [exists f|squash f]. Qed.
Lemma
card_bijP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "PbijTT", "card_eqP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eqVP {T U} {A : set T} {B : set U} : reflect $|{splitbij [set: A] >-> [set: B]}| (A #= B).
Proof. by apply: (iffP card_bijP) => [[_ /PbijTT[f _]]//|[f]]; exists f. Qed.
Lemma
card_eqVP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "PbijTT", "card_bijP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_set_bijP {T} {U : pointedType} {A : set T} {B : set U} : reflect (exists f, set_bij A B f) (A #= B).
Proof. by apply: (iffP pcard_eqP) => [[f]|[_ /Pbij[f _]]]; [exists f|squash f]. Qed.
Lemma
card_set_bijP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Pbij", "pcard_eqP", "set", "set_bij" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
ppcard_eqP {T U : pointedType} {A : set T} {B : set U} : reflect $| {splitbij A >-> B} | (A #= B).
Proof. by apply: (iffP pcard_eqP) => -[f]; [squash (split f)|squash f]. Qed.
Lemma
ppcard_eqP
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "pcard_eqP", "set", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eqxx T (A : set T) : A #= A.
Proof. by apply/card_eqP; squash idfun. Qed.
Lemma
card_eqxx
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eqP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eq00 T U : @set0 T #= @set0 U.
Proof. apply/card_eqP/squash; apply: @bijection_of_bijective set0fun _. by exists set0fun => -[x x0]; have := set_mem x0. Qed.
Lemma
card_eq00
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "bijection_of_bijective", "card_eqP", "set0", "set0fun", "set_mem", "x0" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
empty_eq0 T : all_equal_to (set0 : set T).
Proof. by move=> X; apply/setF_eq0/no. Qed.
Lemma
empty_eq0
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "no", "set", "set0", "setF_eq0" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le_emptyl T U (A : set T) (B : set U) : A #<= B.
Proof. by rewrite empty_eq0. Qed.
Lemma
card_le_emptyl
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "empty_eq0", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le_emptyr T U (A : set T) (B : set U) : (B #<= A) = (B == set0).
Proof. by rewrite empty_eq0; apply/idP/eqP=> [/card_le0P|->//]. Qed.
Lemma
card_le_emptyr
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_le0P", "empty_eq0", "set", "set0" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
emptyE_subdef
:= (empty_eq0, card_le_emptyl, card_le_emptyr, eq_opE).
Definition
emptyE_subdef
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_le_emptyl", "card_le_emptyr", "empty_eq0", "eq_opE" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
Cantor_Bernstein T U (A : set T) (B : set U) : A #<= B -> B #<= A -> A #= B.
Proof. elim/Ppointed: T => T in A *; first by rewrite !emptyE_subdef => _ ->. elim/Ppointed: U => U in B *; first by rewrite !emptyE_subdef => ->. suff {A B} card_eq (A B : set U) : B `<=` A -> A #<= B -> A #= B. move=> /ppcard_leP[f] /ppcard_leP[g]. have /(_ _)/ppcard_eqP[|h] := card_eq _ _ (fun_image_sub f). ...
Theorem
Cantor_Bernstein
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Ppointed", "card_eq", "card_set_bijP", "contra_notP", "emptyE_subdef", "fun_image_sub", "inE", "pcard_eqP", "pcard_leP", "ppcard_eqP", "ppcard_leP", "set", "split", "swap" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_esym T U (A : set T) (B : set U) : A #= B -> B #= A.
Proof. by move=> /card_eqVP[f]; apply/card_eqP; squash f^-1. Qed.
Lemma
card_esym
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eqP", "card_eqVP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eq_le T U (A : set T) (B : set U) : (A #= B) = (A #<= B) && (B #<= A).
Proof. apply/idP/andP => [/card_eqVP[f]|[]]; last exact: Cantor_Bernstein. by split; apply/card_leP; [squash f|squash f^-1]. Qed.
Lemma
card_eq_le
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Cantor_Bernstein", "card_eqVP", "card_leP", "set", "split" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eqPle T U (A : set T) (B : set U) : (A #= B) <-> (A #<= B) /\ (B #<= A).
Proof. by rewrite card_eq_le (rwP andP). Qed.
Lemma
card_eqPle
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eq_le", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_lexx T (A : set T) : A #<= A.
Proof. by apply/card_leP; squash idfun. Qed.
Lemma
card_lexx
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_leT T (S : set T) : S #<= [set: T].
Proof. by apply/card_leP; squash (to_setT \o inclT _ \o val). Qed.
Lemma
card_leT
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "inclT", "set", "to_setT" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
subset_card_le T (A B : set T) : A `<=` B -> A #<= B.
Proof. by move=> AB; apply/card_leP; squash (inclT _ \o subfun AB). Qed.
Lemma
subset_card_le
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "inclT", "set", "subfun" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_image_le {T U} (f : T -> U) (A : set T) : f @` A #<= A.
Proof. elim/Ppointed: T => T in A f *; first by rewrite !emptyE_subdef image_set0. by apply/pcard_leP; squash (pinv A f). Qed.
Lemma
card_image_le
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "Ppointed", "emptyE_subdef", "image_set0", "pcard_leP", "pinv", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
inj_card_eq {T U} {A} {f : T -> U} : {in A &, injective f} -> f @` A #= A.
Proof. by move=> /inj_bij/pcard_eq/card_esym. Qed.
Lemma
inj_card_eq
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_esym", "inj_bij", "pcard_eq" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_some {T} {A : set T} : some @` A #= A.
Proof. exact: inj_card_eq. Qed.
Lemma
card_some
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "inj_card_eq", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_image {T U} {A : set T} (f : {inj A >-> U}) : f @` A #= A.
Proof. exact: inj_card_eq. Qed.
Lemma
card_image
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "inj", "inj_card_eq", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_imsub {T U} (A : set T) (f : {inj A >-> U}) X : X `<=` A -> f @` X #= X.
Proof. by move=> XA; rewrite (card_image [inj of f \o incl XA]). Qed.
Lemma
card_imsub
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_image", "incl", "inj", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_le_trans (T U V : Type) (B : set U) (A : set T) (C : set V) : A #<= B -> B #<= C -> A #<= C.
Proof. by move=> /card_leP[f]/card_leP[g]; apply/card_leP; squash (g \o f). Qed.
Lemma
card_le_trans
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_leP", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad
card_eq_sym T U (A : set T) (B : set U) : (A #= B) = (B #= A).
Proof. by rewrite !card_eq_le andbC. Qed.
Lemma
card_eq_sym
classical
classical/cardinality.v
[ "HB", "structures", "mathcomp", "all_ssreflect_compat", "finmap", "ssralg", "ssrnum", "ssrint", "rat", "mathcomp_extra", "boolp", "classical_sets", "functions", "Order.Theory", "GRing.Theory" ]
[ "card_eq_le", "set" ]
https://github.com/math-comp/analysis
723425a8e25ee4d32ff8409d0294d25d4e43f9ad