Zulip Chat Archive

Stream: maths

Topic: simp-normal form in `set_theory.cardinal`


Yury G. Kudryashov (Sep 24 2021 at 03:31):

simp lemmas in set_theory.cardinal simplify, e.g., #α * #β to #(α×β), and similarly for other operations. This seems counter-intuitive for me. I think that simp should be able to compute cardinality of a complex type by applying simp lemmas (e.g., simplify #(nat → rat) to ω ^ ω). Any objections to a refactor?

Yury G. Kudryashov (Sep 24 2021 at 03:59):

@Mario Carneiro @Floris van Doorn :up:

Mario Carneiro (Sep 24 2021 at 04:11):

I agree, the simp lemma should go the other way there

Floris van Doorn (Sep 25 2021 at 07:33):

Yes, that seems good.

presumably the original motivation was "we just defined multiplication, how do we evaluate it on constructors," but the other way around makes more sense.


Last updated: Dec 20 2023 at 11:08 UTC