(* Author: Andreas Lochbihler, Digital Asset *) section ‹Laziness tests› theory Code_Lazy_Test imports "HOL-Library.Code_Lazy" "HOL-Library.Stream" "HOL-Library.Code_Test" "HOL-Library.BNF_Corec" begin subsection ‹Linear codatatype› code_lazy_type stream value [code] "cycle ''ab''" value [code] "let x = cycle ''ab''; y = snth x 10 in x"