Agda User Manual v2.5.4.2unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular0 码力 | 216 页 | 207.61 KB | 1 年前3
Agda User Manual v2.5.4unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. __ : {i} {A} → List i A → Lang i A A → Bool [] a = ? a (x w) a = w ? a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular, non-sized0 码力 | 155 页 | 668.67 KB | 1 年前3
Agda User Manual v2.5.4.1unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. __ : {i} {A} → List i A → Lang i A A → Bool [] a = ? a (x w) a = w ? a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular, non-sized0 码力 | 155 页 | 668.90 KB | 1 年前3
Agda User Manual v2.5.4.1unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular0 码力 | 216 页 | 207.64 KB | 1 年前3
Agda User Manual v2.5.4.2unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. __ : {i} {A} → List i A → Lang i A A → Bool [] a = ? a (x w) a = w ? a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular, non-sized0 码力 | 155 页 | 668.75 KB | 1 年前3
Agda User Manual v2.5.4unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular0 码力 | 216 页 | 207.63 KB | 1 年前3
Agda User Manual v2.5.2call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular, followed by “false”, and viceversa. bip-bop = (⟦ true ⟧ · ⟦ false ⟧)* We can now test words for membership in the language bip-bop test₁ : (true ∷ false ∷ true ∷ false ∷ true ∷ false ∷ []) ∈ bip-bop ≡0 码力 | 151 页 | 152.49 KB | 1 年前3
Agda User Manual v2.5.2Types 73 Agda Documentation, Release 2.5.2 Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. __ : {i} {A} → List i A → Lang i A A → Bool [] a = ? a (x w) a = w ? a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular, non-sized is followed by “false”, and viceversa. bip-bop = ( true · false )* We can now test words for membership in the language bip-bop test1 : (true false true false true false []) bip-bop true test1 = refl0 码力 | 107 页 | 510.49 KB | 1 年前3
Agda User Manual v2.6.0.1unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular0 码力 | 256 页 | 247.15 KB | 1 年前3
Agda User Manual v2.6.0unsquash x = proof x Example 3. We can define the subset of x : A satisfying P x with irrelevant membership certificates. record Subset (A : Set) (P : A -> Set) : Set where constructor _#_ field elem call to a * under a function call to _·_. Testing First, we want to give a precise notion of membership in a language. We consider a word as a List of characters. _∈_ : ∀ {i} {A} → List i A → Lang i i A → Bool [] ∈ a = ν a (x ∷ w) ∈ a = w ∈ δ a x Note how the size of the word we test for membership cannot be larger than the depth to which the language tree is defined. If we want to use regular0 码力 | 256 页 | 246.87 KB | 1 年前3
共 35 条
- 1
- 2
- 3
- 4













