Zulip Chat Archive

Stream: general

Topic: naming a metavariable


Scott Morrison (Feb 28 2021 at 10:44):

Say I have a goal P ?m_1, and a second goal nat. I want to work on the first goal for a while, deferring the actual choice of the nat for pedagogical reasons. In the interim, how do I make the goal look like P n instead of P ?m_1?

Scott Morrison (Feb 28 2021 at 10:44):

Surely there is some trick! I feel like I've done this in the past but can't for the life of me remember how.

Scott Morrison (Feb 28 2021 at 10:50):

In particular I want to refer to ?m_1 all through a calc proof. I can leave it as _, and unify them all afterwards, but that's dirty.

Johan Commelin (Feb 28 2021 at 11:02):

let n : _ := _, use n

Scott Morrison (Feb 28 2021 at 11:32):

I wonder if this should be defer n.

Eric Wieser (Feb 28 2021 at 11:58):

It would be neat if ?n were syntax for '_ but call the metavariable "n"'

Eric Wieser (Feb 28 2021 at 11:59):

So that you didn't need a separate tactic line to defer it


Last updated: Dec 20 2023 at 11:08 UTC