Zulip Chat Archive

Stream: new members

Topic: formulization


Alex Zhang (Jul 24 2021 at 15:23):

Is it possible to formulize that for every natural number n, there is a fintype whose card is n?

import data.fintype.card
example :  n : ,  I : Type*, fintype.card I = n

Bryan Gin-ge Chen (Jul 24 2021 at 15:29):

I was able to find all the proofs using tactic#library_search

import data.fintype.card
example :  n : ,  (I : Type*) (h : fintype I), @fintype.card I h = n :=
λ n, fin n, fin.fintype n, fintype.card_fin n

Kevin Buzzard (Jul 24 2021 at 15:30):

That's the second new member question we've had today for which the answer was by library_search :-)

Bryan Gin-ge Chen (Jul 24 2021 at 15:35):

Ah, actually, I had to know that docs#fin existed too.

Kevin Buzzard (Jul 24 2021 at 15:35):

Aah yes, you need to know that mathlib has a "canonical" type of size n.


Last updated: Dec 20 2023 at 11:08 UTC