Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ Hmm, okay, that works better than anything I've tried so far, even if we introduce an operation foo : X -> X and rewrite by eq: foo x ≡ y. It probably shouldn't be too hard to write an elaborator reflection macro that takes a record type and re-declares each of its fields as an abstract... $\endgroup$ Commented Jun 22, 2023 at 19:58
  • $\begingroup$ Hmmm, interesting development, it looks like the problem is that I was using a relation other than the normal builtin equality. If I use e.g. HeterogeneousEquality, the example you give fails to compile. I'll see if there's an existing bug report $\endgroup$ Commented Jun 22, 2023 at 20:18
  • $\begingroup$ Huzzah, it works! I'll leave the question open a bit though, since I am genuinely curious how this would work in Coq or Lean. $\endgroup$ Commented Jun 22, 2023 at 21:26