Zulip Chat Archive
Stream: new members
Topic: Give names to expressions
Jakob Scholbach (Feb 26 2021 at 23:31):
Another basic question: inside a proof, how can I give (new) names to objects that have been constructed in the proof. E.g. say, I have constructed some polynomial, but I don't want to repeat / mention its construction every time I use it in the sequel. (E.g., I have some minpoly F x, but I want to say "Let P be the minimal polynomial". If I write have P := minpoly F x, I can't seem to access the fact that it is the minimal polynomial later on(?).
Adam Topaz (Feb 26 2021 at 23:34):
use let or set instead of have
Adam Topaz (Feb 26 2021 at 23:34):
e.g. let F := foo or set F := foo with hF
Adam Topaz (Feb 26 2021 at 23:35):
The difference is that set F := foo with hF will add a proof hF that foo = F, which can be useful sometimes.
Kevin Buzzard (Feb 27 2021 at 01:07):
have is for proofs, let or, better, set...with is for data.
Last updated: May 02 2025 at 03:31 UTC