Zulip Chat Archive

Stream: new members

Topic: Renaming terms for calc proof


Adrian Wüthrich (Mar 18 2024 at 21:02):

Is there a way of renaming terms in a calc proof in order to increase readability and make lines shorter? For example if I had a goal containing SimpleGraph.lapMatrix G R I'd like to denote this term by just L.

Kevin Buzzard (Mar 18 2024 at 21:20):

What happens if you just write let L := SimpleGraph.lapMatrix G R before the calc block?

Adrian Wüthrich (Mar 18 2024 at 21:28):

That does indeed work. It adds L to the context and then it can be used in calc, thanks!

Kevin Buzzard (Mar 18 2024 at 21:30):

If you need the definition of L in your local context (for example, for rewriting) you can use set L := ... with hL.

Adrian Wüthrich (Mar 18 2024 at 21:32):

This is even better, exactly what I was looking for.


Last updated: May 02 2025 at 03:31 UTC