Zulip Chat Archive

Stream: general

Topic: meta questions


Yury G. Kudryashov (May 08 2020 at 18:56):

Hi, what of the following is available in meta programs? I'm asking about a function running as a cmd, not inside a proof.

  • list of available variables;
  • list of open namespaces;
  • current namespace?

Another question: can I add a proof of, e.g., monoid_hom.id or monoid_hom.comp_apply from a command without making definition-specific code much less readable?

Kevin Buzzard (May 08 2020 at 19:04):

You know about #where, of course.

Johan Commelin (May 08 2020 at 19:07):

And I think that recently this stuff got exposed. You might want to look at recent commits by Keeley to core

Gabriel Ebner (May 08 2020 at 19:47):

You mean Simon.

Johan Commelin (May 08 2020 at 19:48):

Ooh, I guess I do. Sorry @Simon Hudon

Simon Hudon (May 08 2020 at 20:07):

indeed :)

Yury G. Kudryashov (May 08 2020 at 20:54):

Thank you, I didn't know about #where. I'll look into its source to find out how it works.


Last updated: Dec 20 2023 at 11:08 UTC