coq - What are inductive predicates? -


how explain inductive predicates? used for? what's theory behind them? present in dependent type systems, or in other systems well? related gadt's in way? why true default in coq?

this example coq:

inductive : nat -> prop := | even0 : 0 | evens : forall p:nat, p -> (s (s p)) 

how use definition? datatype or proposition?

i think call inductive predicates objects defined inductively , sorted in prop.

they used defining properties inductively (duh). theory behind can found in literature inductive constructions. search papers cic (the calculus of inductive constructions) instance.

they related gadts, though dependent types can express more things. if not mistaken, gadts each constructor lives in 1 particular family, whereas addition of dependent types allows constructors inhabit different families based on arguments.

i not know mean "true default in coq".

even define inductive datatype. not proposition yet, type nat -> prop indicates. proposition even 0 or even 1. can inhabited (provable) in even 0, or not in even 1.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -