text‹ Now, the function Quickcheck.mk_batch_validator : Proof.context -> term list -> (int -> bool) list option takes formulas of type bool with free variables, and returns a list of testing functions. ›
ML ‹ val SOME testers = Quickcheck.mk_batch_validator 🍋 [🍋‹x = (1 :: nat)›,🍋‹x = (0 :: nat)›, 🍋‹x 🚫(5 :: nat)›, 🍋‹0 ≤ (x :: nat)›] ›
text‹ It is up to the user with which strategy the conjectures should be tested. For example, one could check all conjectures up to a given size, and check the different conjectures in sequence. This is implemented by: ›
ML ‹ fun check_upto f i j = if i > j then true else f i andalso check_upto f (i + 1) j ›
ML_val ‹ map (fn test => check_upto test 0 1) testers ›
ML_val ‹ map (fn test => check_upto test 0 2) testers ›
ML_val ‹ map (fn test => check_upto test 0 3) testers ›
ML_val ‹ map (fn test => check_upto test 0 7) testers ›
text‹Note that all conjectures must be executable to obtain the testers with the function above.›
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-04-27)
¤
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 und die Messung sind noch experimentell.