Zulip Chat Archive

Stream: new members

Topic: semantics of induction


Aleksei (Feb 09 2022 at 18:48):

Hi guys. Can someone explain semantics of induction n with d hd. I don't get what n, d and hd are. Maybe I can find some docs explaining this commands?

Johan Commelin (Feb 09 2022 at 18:50):

I moved your message. Please ask new questions in new streams. That way the discussion remains organized.

Johan Commelin (Feb 09 2022 at 18:50):

n should be the name of a variable in your context. d and hd are names for the variables to be used in the "induction step", the case P d → P (d+1).

Johan Commelin (Feb 09 2022 at 18:51):

So in that case, hd : P d will be the assumption that "the claim I'm trying to prove is true for d" and your goal will be "prove the claim for d+1"

Arthur Paulino (Feb 09 2022 at 18:51):

This might help: https://leanprover.github.io/reference/tactics.html#inductive-types
(I'm afraid it might not be very beginner friendly)

Kevin Buzzard (Feb 09 2022 at 19:28):

Do you understand mathematical induction? Knowing the mathematics behind what's going on will help with understanding what the variables mean.


Last updated: Dec 20 2023 at 11:08 UTC