Zulip Chat Archive
Stream: lean4
Topic: rec_on
Dean Young (Aug 06 2023 at 19:24):
What happened to eq.rec_on
in Lean 4?
Dean Young (Aug 06 2023 at 22:19):
I thought it would become Eq.rec_on
but that doesn't work.
What is a motive? I think I have one, that I want to demonstrate extensionality for these dependent structures.
Alex J. Best (Aug 06 2023 at 22:20):
It's Eq.recOn
now
Dean Young (Aug 06 2023 at 23:50):
@Alex J. Best Can you link me to some documentation for it?
Alex J. Best (Aug 06 2023 at 23:53):
I don't know anything specifically for Eq.recOn
but it works in the same way as other recursors which you can read about in https://leanprover.github.io/theorem_proving_in_lean4/inductive_types.html (and the chapter after)
Alex J. Best (Aug 06 2023 at 23:54):
If you look at docs#Eq you can read a bit about how equality is defined inductively
Richard Copley (Aug 07 2023 at 00:15):
https://xenaproject.wordpress.com/2021/04/18/induction-on-equality/ is also fun
Last updated: Dec 20 2023 at 11:08 UTC