Commit 2021-10-31 17:26 f2b77d7d
View on Github →refactor(set_theory/cardinal): swap sides of simp
lemmas (#10040)
API changes
Swap sides of simp lemmas
cardinal.add_def
is no loner asimp
lemma,cardinal.mk_sum
(renamed fromcardinal.add
) simplifies#(α ⊕ β)
tolift.{v u} (#α) + lift.{u v} (#β)
;cardinal.mul_def
is no loner asimp
lemma,cardinal.mk_prod
(merged withcardinal.mul
) simplifies#(α × β)
tolift.{v u} (#α) * lift.{u v} (#β)
;cardinal.power_def
is no longer asimp
lemma. New lemmacardinal.mk_arrow
computes#(α → β)
. It is not asimp
lemma because it follows from othersimp
lemmas.- replace
cardinal.sum_mk
withcardinal.mk_sigma
andcardinal.prod_mk
withcardinal.mk_pi
;
Other changes
- new lemmas
@[simp] cardinal.lift_uzero
andcardinal.lift_umax'
; - split
cardinal.linear_order
intocardinal.preorder
(doesn't rely onclassical.choice
),cardinal.partial_order
(needsclassical.choice
, computable), andcardinal.linear_order
(noncomputable); - add
cardinal.lift_order_embedding
; - add
cardinal.mk_psum
; - rename
cardinal.prop_eq_two
tocardinal.mk_Prop
, drop the oldmk_Prop
; - use local notation for natural power;
- rename old
sum_const
tosum_const'
, the new@[simp] lemma sum_const
is what used to besum_const_eq_lift_mul
; - rename old
prod_const
toprod_const'
, the new@[simp] lemma prod_const
deals with types in different universes; - add
@[simp]
tocardinal.prod_eq_zero
andcardinal.omega_le_mk
; - add
@[simp]
lemmascardinal.mk_eq_one
,cardinal.mk_vector
,cardinal.omega_mul_eq
, andcardinal.mul_omega_eq
; - replace
mk_plift_of_true
andmk_plift_of_false
withmk_plift_true
andmk_plift_false
; mk_list_eq_mk
andmk_finset_eq_mk
now assume[infinite α]
instead ofω ≤ #α
.