Zulip Chat Archive
Stream: general
Topic: Unfolding a semireducible definition outside of tactics
Vilim Lendvaj (Nov 04 2025 at 21:24):
I want to build a certain structure, where the type of one field is dependent on the value of another.
If I set the value of the dependee to a semireducible definition, then the name of that definition shows up in the inferred type of the dependent.
Is it possible to unfold that definition so that the type of the dependent uses its right-hand side instead?
I know I can unfold definitions using tactics, but is there a simple way to do it directly in functional code?
Kenny Lau (Nov 04 2025 at 21:26):
Do you have an example? (#mwe)
Last updated: Dec 20 2025 at 21:32 UTC