definition"t4 f x = rev (f x (f x (rev x)))"
parametric_constant t4_thm: t4_def
definition"t5 x y = zip x (rev y)"
parametric_constant t5_thm: t5_def
(* Conditional Parametricity*)
definition"t6_1 x y = inf y x"
parametric_constant t6_1_thm: t6_1_def
definition"t6_2 x y = sup y x"
parametric_constant t6_2_thm: t6_2_def
definition"t6_3 x z y = sup (inf x y) z"
parametric_constant t6_3_thm: t6_3_def
definition"t6_4 x xs y = map (sup (inf y x)) xs"
parametric_constant t6_4_thm: t6_4_def
definition"t7 x y = (y = x)"
parametric_constant t7_thm: t7_def
definition"t8 x y = ((x=y) \ (y=x))"
parametric_constant t8_thm: t8_def
(* Definition via primrec*) primrec delete where "delete _ [] = []"
| "delete x (y # ys) = (if x = y then ys else y # (delete x ys))"
parametric_constant delete_thm: delete_def
definition"foo f x y = (if f x = f y then x else sup y x)"
parametric_constant foo_parametricity: foo_def
end
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.