gpt4 book ai didi

agda - _≡⟨_⟩_ Agda 标准库在哪里?

转载 作者:行者123 更新时间:2023-12-03 21:15:23 28 4
gpt4 key购买 nike

我在plfa读到这样一段代码。

import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; cong; sym)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _≡⟨_⟩_; _∎)

但是 _≡⟨_⟩_不是命题平等
The module Eq.≡-Reasoning doesn't export the following: _≡⟨_⟩_
when scope checking the declaration
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; _≡⟨_⟩_; _∎)

我只在 Function.Related 中找到它和 Relation.Binary.HeterogeneousEquality .怎么了?

最佳答案

_≡⟨_⟩_step-≡ 的语法符号正如您在 Relation.Binary.PropositionalEquality.Core 中看到的那样.

所以如果你想控制你导入的东西,你需要引用step-≡反而。

关于agda - _≡⟨_⟩_ Agda 标准库在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61317732/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com