Zulip Chat Archive
Stream: general
Topic: option.induction
Kevin Buzzard (Mar 26 2020 at 09:36):
I'm thinking about teaching materials. Is this definition OK? Would it be the sort of thing one can find in mathlib? Mathematicians find the word recursion
a bit scary maybe.
Kevin Buzzard (Mar 26 2020 at 09:37):
def option.induction : Π {X : Sort*} {C : option X → Prop}, C none → (Π (val : X), C (some val)) → Π (n : option X), C n := @option.rec
Kevin Buzzard (Mar 26 2020 at 09:40):
option.rec
mentions Sort
, and mathematicians do not believe in Sort
.
Kevin Buzzard (Mar 26 2020 at 09:40):
Induction and recursion are two separate things to them.
Kevin Buzzard (Mar 26 2020 at 10:14):
What is the cool type theory name of this function:λ A B C D, F A B D C
?
David Wärn (Mar 26 2020 at 10:19):
((∘) flip) ∘ F
?
Mario Carneiro (Mar 26 2020 at 10:29):
a pointless hobby, I see
David Wärn (Mar 26 2020 at 11:30):
(∘) (∘) (∘) $ flip F
is a more symmetric version
Last updated: Dec 20 2023 at 11:08 UTC