Agda User Manual v2.5.3Installation - Language Reference - Abstract definitions - Built-ins - Coinduction - Copatterns - Core language - Data Types - Foreign Function Interface - Function Definitions values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing.patterns and co-patterns - Core language - Data (ys : Stream A) : Set where coinductive field hd-≈ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Stream such that one returns a Stream with the elements in0 码力 | 185 页 | 185.00 KB | 2 年前3
Agda User Manual v2.6.2Tutorials - Language Reference - Abstract definitions - Built-ins - Coinduction - Copatterns - Core language - Coverage Checking - Cubical - Cumulativity - Data Types - Flat values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing.patterns and co-patterns - Core language - Grammar (ys : Stream A) : Set where coinductive field hd-≡ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Streams such that one returns the elements in the even positions0 码力 | 348 页 | 414.11 KB | 2 年前3
Agda User Manual v2.6.3Tutorials • Language Reference • Abstract definitions • Built-ins • Coinduction • Copatterns • Core language • Coverage Checking • Cubical • Cubical compatible • Cumulativity values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing.patterns and co-patterns - Core language - Grammar it is not necessary to give an explicit constructor to the record type Stream. Now we can use copatterns to create Streams, like one that repeats a given element a infinitely many times: repeat : {A0 码力 | 379 页 | 354.83 KB | 2 年前3
Agda User Manual v2.6.2.2Tutorials • Language Reference • Abstract definitions • Built-ins • Coinduction • Copatterns • Core language • Coverage Checking • Cubical • Cumulativity • Data Types values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing.patterns and co-patterns - Core language - Grammar (ys : Stream A) : Set where coinductive field hd-≡ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Streams such that one returns the elements in the even positions0 码力 | 354 页 | 433.60 KB | 2 年前3
Agda User Manual v2.6.2.1Tutorials - Language Reference - Abstract definitions - Built-ins - Coinduction - Copatterns - Core language - Coverage Checking - Cubical - Cumulativity - Data Types - Flat values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing.patterns and co-patterns - Core language - Grammar (ys : Stream A) : Set where coinductive field hd-≡ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Streams such that one returns the elements in the even positions0 码力 | 350 页 | 416.80 KB | 2 年前3
Agda User Manual v2.6.1.1of Tutorials • Language Reference ☐ Abstract definitions ☐ Built-ins ○ Coinduction • Copatterns Core language Cubical o Cumulativity. ○ Data Types ○ Flat Modality. Foreign Function Interface values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing patterns and co-patterns - Core language - Cubical (ys : Stream A) : Set where coinductive field hd-= : hd xs ≡ hd ys tl-= : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Stream such that one returns a Stream with the elements in0 码力 | 297 页 | 375.42 KB | 2 年前3
Agda User Manual v2.6.1of Tutorials • Language Reference ☐ Abstract definitions ☐ Built-ins ○ Coinduction • Copatterns Core language Cubical o Cumulativity. ○ Data Types ○ Flat Modality. Foreign Function Interface values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing patterns and co-patterns - Core language - Cubical (ys : Stream A) : Set where coinductive field hd-= : hd xs ≡ hd ys tl-= : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Stream such that one returns a Stream with the elements in0 码力 | 297 页 | 375.42 KB | 2 年前3
Agda User Manual v2.5.3Language Reference 5 3.1 Abstract definitions 5 3.2 Built-ins 8 3.3 Coinduction 17 3.4 Copatterns 19 3.5 Core language 22 3.6 Data Types 23 3.7 Foreign Function Interface 25 3.8 Function Stream A) (ys : Stream A) : Set where coinductive field hd- : hd xs hd ys tl- : tl xs tl ys Using copatterns we can define a pair of functions on Stream such that one returns a Stream with the elements in → suc m suc n The current implementation of coinductive types comes with some limitations. ## Copatterns Consider the following record: record Enumeration A : Set where constructor enumeration field0 码力 | 135 页 | 600.40 KB | 2 年前3
Agda User Manual v2.6.3Language Reference 27 3.1 Abstract definitions 27 3.2 Built-ins 30 3.3 Coinduction 43 3.4 Copatterns 46 3.5 Core language 50 3.6 Coverage Checking 53 3.7 Cubical 56 3.8 Cubical compatible it is not necessary to give an explicit constructor to the record type Stream. Now we can use copatterns to create Streams, like one that repeats a given element a infinitely many times: repeat : {A (ys : Stream A) : Set where coinductive field hd-≡ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Streams such that one returns the elements in the even positions0 码力 | 288 页 | 1.24 MB | 2 年前3
Agda User Manual v2.5.4.2Language Reference o Abstract definitions o Built-ins o Coinduction o Copatterns o Core language o Data Types o Foreign Function Interface o Function Definitions values - Strictness - Coinduction - Coinductive Records - Old Coinduction - Copatterns - Copatterns in function definitions - Mixing patterns and co-patterns - Core language - Data (ys : Stream A) : Set where coinductive field hd-≈ : hd xs ≡ hd ys tl-≈ : tl xs ≈ tl ys Using copatterns we can define a pair of functions on Stream such that one returns a Stream with the elements in0 码力 | 216 页 | 207.61 KB | 2 年前3
共 34 条
- 1
- 2
- 3
- 4
相关搜索词













