Zulip Chat Archive
Stream: metaprogramming / tactics
Topic: How to distinguish constructors from functions
Segev Elazar Mittelman (Oct 03 2025 at 15:29):
Hi, I want to examine an Expr and decide whether the expr const being applied is a function or a constructor. I've tried to use Environment.isConstructor but that seems to return true for both functions and constructors. Any suggestions?
Segev Elazar Mittelman (Oct 03 2025 at 15:36):
Specifically I want to distinguish inductive constructors
Sebastian Ullrich (Oct 03 2025 at 15:39):
That certainly is supposed to be the right function
Segev Elazar Mittelman (Oct 03 2025 at 15:44):
My mistake, had a bug elsewhere in my code, that function works correctly.
Last updated: Dec 20 2025 at 21:32 UTC