Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: Working with Qq


Heather Macbeth (Feb 23 2023 at 01:35):

I wrote a norm_num extension in Lean 4. It's for teaching purposes so its scope is very limited, and paradoxically this makes it messier to write: I want it to disprove abmodna \equiv b \mod n only in the "obvious" case when 0a<n0 \le a < n and 0b<n0 \le b < n and aba\ne b.

My code is basically copy-pasta and I feel like I have made rather heavy weather of it, with clunky handling of Qq. Does anyone with some experience have time to look at it and teach me some tricks?


Last updated: Dec 20 2023 at 11:08 UTC