Zulip Chat Archive

Stream: general

Topic: zmod


petercommand (Nov 15 2018 at 07:26):

https://github.com/leanprover/mathlib/blob/master/data/zmod/basic.lean#L302
Why is there an explicit argument (underscore) to eq_iff_modeq_int here?
When I move cursor onto eq_iff_modeq_int at line 302, the type of eq_iff_modeq_int is inferred with an extra (hp : prime p), but that argument isn't there when I jump to the def of eq_iff_modeq_int

Moses Schönfinkel (Nov 15 2018 at 07:28):

Because line 224 declares a variable (hpp : prime p).

petercommand (Nov 15 2018 at 07:29):

but eq_iff_modeq_int is defined outside of this file

petercommand (Nov 15 2018 at 07:30):

oh sorry, it's defined in the same file

petercommand (Nov 15 2018 at 07:30):

thanks!

petercommand (Nov 15 2018 at 07:30):

:D


Last updated: Dec 20 2023 at 11:08 UTC