Zulip Chat Archive
Stream: lean4
Topic: Replace variable with its definition
Op From The Start (Aug 19 2025 at 00:37):
I have a goal of:
⊢ (birthday x).nadd (birthday (yRS yr)) < (birthday (PreNo.mk xL xR xLS xRS)).nadd (birthday (PreNo.mk yL yR yLS yRS))
and I know that x=PreNo.mk xL xR xLS xRS because the latter was made by matching on x. How can I use the definition of x to simplify the inequality?
Aaron Liu (Aug 19 2025 at 00:45):
I don't think you can
Aaron Liu (Aug 19 2025 at 00:47):
maybe with match hx : x with
Aaron Liu (Aug 19 2025 at 00:47):
that will give you a hypothesis called hx saying that x is equal to the match pattern
Op From The Start (Aug 19 2025 at 00:54):
That worked, thank you.
Last updated: Dec 20 2025 at 21:32 UTC