Zulip Chat Archive
Stream: new members
Topic: simp
petercommand (Nov 15 2018 at 04:56):
is it possible to tell which rules/lemmas simp used to simplify a type?
Mario Carneiro (Nov 15 2018 at 04:58):
use squeeze_simp
Mario Carneiro (Nov 15 2018 at 04:58):
or set_option trace.simplify.rewrite true
petercommand (Nov 15 2018 at 04:59):
thanks!
petercommand (Nov 15 2018 at 05:00):
will try both
toc (Sep 03 2020 at 16:38):
If I've got
⊢ k * (a * k_n) + k * (b * k_m) = a * (k * k_n) + b * (k * k_m)
this _seems_ like something I should be able to just simp
. Am I missing imports or something similar?
Ruben Van de Velde (Sep 03 2020 at 16:40):
I'd be somewhat surprised if simp
worked on that, but maybe ring
will?
toc (Sep 03 2020 at 16:46):
Well that got me
type mismatch at application
tactic.istep 102 0 102 0 ring
term
ring
has type
Type ? → Type ? : Type (?+1)
but is expected to have type
tactic ?m_1 : Type ?
is ring
supposed to be the "do some algebra" tactic, then?
Bryan Gin-ge Chen (Sep 03 2020 at 16:46):
That looks like you haven't put import tactic
at the top of your file.
Bryan Gin-ge Chen (Sep 03 2020 at 16:47):
Here's the documentation on ring: tactic#ring
toc (Sep 03 2020 at 16:51):
(trying that now, it is... taking a while to load/run)
toc (Sep 03 2020 at 16:52):
But that did ultimately work. Thanks!
Bryan Gin-ge Chen (Sep 03 2020 at 16:55):
I think you'll hit the limits of the web editor pretty soon. I'd definitely recommend following the directions here #install if at all possible.
toc (Sep 03 2020 at 17:07):
Yep! I'm in vscode now.
Last updated: Dec 20 2023 at 11:08 UTC