 Agda User Manual v2.6.3signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private allowed: -- third (cons _ (cons _ (cons x _))) = x Instead, you can use the record fields as projections: third str = str .tl .tl .hd The constructor can be used as usual in the right-hand side of definitions: their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type0 码力 | 379 页 | 354.83 KB | 1 年前3 Agda User Manual v2.6.3signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private allowed: -- third (cons _ (cons _ (cons x _))) = x Instead, you can use the record fields as projections: third str = str .tl .tl .hd The constructor can be used as usual in the right-hand side of definitions: their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type0 码力 | 379 页 | 354.83 KB | 1 年前3
 Agda User Manual v2.6.2.2signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type -> (x : Subset A P) -> P (Subset.elem x) certificate (a # p) = irrAx p Example 4. Irrelevant projections are justified by the irrelevance axiom. .unsquash' : ∀ {A} → Squash A → A unsquash' (squash x)0 码力 | 354 页 | 433.60 KB | 1 年前3 Agda User Manual v2.6.2.2signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type -> (x : Subset A P) -> P (Subset.elem x) certificate (a # p) = irrAx p Example 4. Irrelevant projections are justified by the irrelevance axiom. .unsquash' : ∀ {A} → Squash A → A unsquash' (squash x)0 码力 | 354 页 | 433.60 KB | 1 年前3
 Agda User Manual v2.6.1.3their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 305 页 | 375.80 KB | 1 年前3 Agda User Manual v2.6.1.3their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 305 页 | 375.80 KB | 1 年前3
 Agda User Manual v2.6.1.2their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 304 页 | 375.60 KB | 1 年前3 Agda User Manual v2.6.1.2their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 304 页 | 375.60 KB | 1 年前3
 Agda User Manual v2.6.1.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 297 页 | 375.42 KB | 1 年前3 Agda User Manual v2.6.1.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 297 页 | 375.42 KB | 1 年前3
 Agda User Manual v2.6.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 297 页 | 375.42 KB | 1 年前3 Agda User Manual v2.6.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching time. We can for instance prove that any pair is equal to the pairing of its first and second projections, a property commonly called eta-equality: eta : (p@(a , b) : Σ A B) → p ≡ (a , b) eta p = refl0 码力 | 297 页 | 375.42 KB | 1 年前3
 Agda User Manual v2.6.2signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching0 码力 | 348 页 | 414.11 KB | 1 年前3 Agda User Manual v2.6.2signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching0 码力 | 348 页 | 414.11 KB | 1 年前3
 Agda User Manual v2.6.2.1signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching0 码力 | 350 页 | 416.80 KB | 1 年前3 Agda User Manual v2.6.2.1signatures, even when in an abstract block! To work around this we have to define aliases for the projections functions: -- A property about the representation of zero integers: abstract private their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching0 码力 | 350 页 | 416.80 KB | 1 年前3
 Agda User Manual v2.6.0.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching Copatterns and projections --copatterns Enable definitions by copattern matching (default; see Copatterns) --no-copatterns Disable definitions by copattern matching --postfix-projections Make postfix0 码力 | 256 页 | 247.15 KB | 1 年前3 Agda User Manual v2.6.0.1their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching Copatterns and projections --copatterns Enable definitions by copattern matching (default; see Copatterns) --no-copatterns Disable definitions by copattern matching --postfix-projections Make postfix0 码力 | 256 页 | 247.15 KB | 1 年前3
 Agda User Manual v2.6.0their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching Copatterns and projections --copatterns Enable definitions by copattern matching (default; see Copatterns) --no-copatterns Disable definitions by copattern matching --postfix-projections Make postfix0 码力 | 256 页 | 246.87 KB | 1 年前3 Agda User Manual v2.6.0their name with a dot in the definition of the record type. Projections for irrelevant fields are only created if option --irrelevant-projections is supplied (since Agda > 2.5.4). Example 1. A record type inconsistency. This might be fixed in the future. --experimental-irrelevance and --irrelevant-projections; enables potentially unsound irrelevance features (irrelevant levels, irrelevant data matching Copatterns and projections --copatterns Enable definitions by copattern matching (default; see Copatterns) --no-copatterns Disable definitions by copattern matching --postfix-projections Make postfix0 码力 | 256 页 | 246.87 KB | 1 年前3
共 33 条
- 1
- 2
- 3
- 4














