Coqã§ã¯ä¸éã®å帰çãªãã¼ã¿ã¯ä¾ãã°æ¬¡ã®æ§ã«å®ç¾©ã§ããã Inductive list (A: Set) : Set := Nil | Cons (x: A) (xs: list A). Coqã§ã¯å帰çãã¼ã¿åãInductiveã³ãã³ãã§å®ç¾©ããå ´åããã®åã®ä»ã« list_ind ã¨ãããã®ãã¤ãã§ã«å®ç¾©ãããã list_indã¯æ¬¡ã®æ§ãªåãæã£ã¦ããã Coq < Check list_ind. list_ind : forall (A : Set) (P : list A -> Prop), P (Nil A) -> (forall (x : A) (xs : list A), P xs -> P (Cons A x xs)) -> forall l : list A, P l ãã®list_indã¯å¸°ç´æ³ã«é¢ãã¦é常ã«å¼·åã§ããã ãªã¹ããå¼æ°ã«æã¤ãããªä»»æã®è¿°èªPã«å¯¾ã
{{#tags}}- {{label}}
{{/tags}}