Zulip Chat Archive

Stream: maths

Topic: Incorrect number of universe levels parameters


Thomas Browning (Oct 15 2021 at 19:04):

The following lemma and def each throw the cryptic error message "incorrect number of universe levels parameters for 'quotient_add_group.quotient_ker_equiv_of_right_inverse', #2 expected, #1 provided"

Seems like this is an issue with to_additive, but I'm a bit puzzled.

import group_theory.quotient_group

--incorrect number of universe levels parameters for 'quotient_add_group.quotient_ker_equiv_of_right_inverse', #2 expected, #1 provided
@[to_additive] lemma subgroup.card_quotient_bot {G : Type*} [group G] [fintype G]
  [fintype (quotient_group.quotient ( : subgroup G))] :
 (fintype.card (quotient_group.quotient ( : subgroup G))) = fintype.card G :=
fintype.card_congr (quotient_group.quotient_bot.to_equiv)

--incorrect number of universe levels parameters for 'quotient_add_group.quotient_ker_equiv_of_right_inverse', #2 expected, #1 provided
@[to_additive] def subgroup.quotient_bot_equiv {G : Type*} [group G] :
 quotient_group.quotient ( : subgroup G)  G :=
quotient_group.quotient_bot.to_equiv

Eric Wieser (Oct 15 2021 at 19:22):

Try putting the {G : Type*} in a variables statement?

Thomas Browning (Oct 15 2021 at 19:24):

Eric Wieser said:

Try putting the {G : Type*} in a variables statement?

Doesn't seem to help

Eric Wieser (Oct 15 2021 at 19:25):

docs#quotient_add_group.quotient_ker_equiv_of_right_inverse, docs#quotient_group.quotient_ker_equiv_of_right_inverse for reference

Eric Wieser (Oct 15 2021 at 19:26):

I'm curious why it's even mentioning that definition

Eric Wieser (Oct 15 2021 at 19:27):

Does the additive version of docs#quotient_group.quotient_bot even exist? docs#quotient_add_group.quotient_bot seems missing

Thomas Browning (Oct 15 2021 at 19:34):

I presume so, since docs#quotient_group.quotient_bot is marked with to_additive

Eric Wieser (Oct 15 2021 at 22:22):

The to-additive name is nonsense

Eric Wieser (Oct 15 2021 at 22:22):

It's a copy-paste error

Eric Wieser (Oct 15 2021 at 22:23):

The error is about universes because it checks that first, but the lemma is just not related at all

Thomas Browning (Oct 16 2021 at 06:52):

Great, thanks for the help!


Last updated: Dec 20 2023 at 11:08 UTC