Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 84b1823

Browse files
committed
Terms翻訳 (#42)
* 翻訳開始 * 翻訳完了 * 用語対応
1 parent 75dd310 commit 84b1823

File tree

6 files changed

+1441
-143
lines changed

6 files changed

+1441
-143
lines changed

GLOSSARY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
| dependent type theory | 依存型理論 | |
6868
| derivation | 導出 | |
6969
| deriving | 導出 | |
70+
| destructure | 分解 | |
7071
| desugar | 脱糖 | |
7172
| diamond | ダイアモンド | 菱形継承問題関連の単語。菱形だとわかりづらいためカタカナにした |
7273
| discriminant | 判別子 | |
@@ -106,13 +107,15 @@
106107
| function extensionality | 関数外延性 | |
107108
| function type | 関数型 | |
108109
| gadget | ガジェット | |
110+
| generalized field notation | 一般化されたフィールド記法 | |
109111
| goal | ゴール | |
110112
| grammar | 文法 | |
111113
| guillemet | ギュメ | フランス語 |
112114
| heap region | ヒープ領域 | |
113115
| hierarchical identifier | 階層的識別子 | |
114116
| hierarchy | 階層 | |
115117
| higher-order function | 高階関数 | |
118+
| hole | ホール | |
116119
| hygiene | (マクロの)健全性 | |
117120
| hypothese | 仮定 | |
118121
| identically | 同一 | |
@@ -158,6 +161,7 @@
158161
| letter | 文字 | |
159162
| letterlike | 文字様 | |
160163
| level expression | レベル式 | |
164+
| lexical | レキシカル | |
161165
| longest match | 最長一致 | |
162166
| main goal | メインゴール | |
163167
| macro | マクロ | |
@@ -166,6 +170,8 @@
166170
| macro Expansion | マクロ展開 | |
167171
| map | 写像 | |
168172
| mapping | マッピング | |
173+
| match alternative | マッチ選択肢 | |
174+
| match discriminant | マッチ判別子 | |
169175
| measure | 測度 | 再帰関数で停止性を証明するために使用する項のこと。普通に「尺度」でも良さそう |
170176
| membership predicate | メンバシップ述語 | |
171177
| memoization | メモ化 | |
@@ -177,6 +183,7 @@
177183
| multi-threading | マルチスレッド | |
178184
| mutation | ミューテーション | |
179185
| mutually inductive | 相互帰納 | |
186+
| named arguments | 名前付き引数 | |
180187
| namespace | 名前空間 | |
181188
| nested | ネストされた | |
182189
| newline | 改行 | |
@@ -215,6 +222,7 @@
215222
| quotient type | 商型 | |
216223
| range | 値域 | |
217224
| raw identifier | 生識別子 | Rust By Exampleの表現を利用 |
225+
| realizing name | 名前実現 | |
218226
| reasoning | 推論 | |
219227
| recovery | 回復 | |
220228
| recursive-descent parser | 再帰下降パーサ | |
@@ -225,12 +233,14 @@
225233
| representation | 表現 | |
226234
| reserved keyword | 予約キーワード | 下のreserved wordの表記ゆれかもしれないがいったん別の訳語を割り当てる |
227235
| reserved word | 予約語 | |
236+
| resolving name | 名前解決 | |
228237
| rewrite | 書き換え | |
229238
| run-length encoding | 連長圧縮 | |
230239
| run-time | ランタイム | |
231240
| rule | 規則 | |
232241
| saturated application | 完全な適用 | 固定訳は無いように思われ、飽和では意味が分かりづらいため |
233242
| schematic definition | スキーマ的定義 | |
243+
| scientific literal | 科学的リテラル | |
234244
| scope | スコープ | |
235245
| scrutinee | 被検査対象 | |
236246
| separator | 区切り文字 | |
@@ -318,6 +328,7 @@
318328
| --- | --- |
319329
| choice node | |
320330
| cumulative | |
331+
| ellipsis | 他言語でも類似概念があるが、そちらでもそのまま英単語で表現されることが多そうだったため |
321332
| idiom bracket | https://wiki.haskell.org/Idiom_brackets |
322333
| impredicativity, predicativity | |
323334
| inhabited | |

Manual/Language.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ The following data are tracked in section scopes:
274274
: The Current Namespace
275275

276276
The {deftech}_current namespace_ is the namespace into which new declarations will be defined.
277-
Additionally, {tech (key:="resolve")}[name resolution] includes all prefixes of the current namespace in the scope for global names.
277+
Additionally, {tech (key:="解決")}[name resolution]resolve includes all prefixes of the current namespace in the scope for global names.
278278

279279
: Opened Namespaces
280280

@@ -287,7 +287,7 @@ The following data are tracked in section scopes:
287287

288288
: Section Variables
289289

290-
{tech}[Section variables] are names (or {tech}[instance implicit] parameters) that are automatically added as parameters to definitions.
290+
{tech}[Section variables] are names (or {tech}[インスタンス暗黙]instance implicit parameters) that are automatically added as parameters to definitions.
291291
They are also added as universally-quantified assumptions to theorems when they occur in the theorem's statement.
292292

293293

Manual/Language/Functions.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ This information is used by the Lean elaborator, but it does not affect type che
168168

169169
:::
170170

171-
コア型理論には {tech}[implicit] パラメータはありませんが、関数型にはパラメータが暗黙かどうかの表示があります。この情報は Lean のエラボレータに使用されますが、コア型理論における型チェックや定義上の等価性には影響しないため、コア型理論についてだけ考える場合は無視しても構いません。
171+
コア型理論には {tech}[暗黙] パラメータはありませんが、関数型にはパラメータが暗黙かどうかの表示があります。この情報は Lean のエラボレータに使用されますが、コア型理論における型チェックや定義上の等価性には影響しないため、コア型理論についてだけ考える場合は無視しても構いません。
172172

173173
:::comment
174174
::example "Definitional Equality of Implicit and Explicit Function Types"

Manual/Language/RecursiveDefs/Structural.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ This definition of {lean}`half` terminates, but this can't be checked by either
424424
This is because the gratuitous tuple in the {tech}[match discriminant] breaks the connection between {lean}`n` and the patterns that match it.
425425
:::
426426

427-
この {lean}`half` の定義は停止しますが、これは構造的再帰でも十分な根拠のある再帰でもチェックできません。これは、 {tech}[match discriminant] の中にある不必要なタプルが {lean}`n` とそれにマッチするパターンとの間のつながりを壊してしまうからです。
427+
この {lean}`half` の定義は停止しますが、これは構造的再帰でも十分な根拠のある再帰でもチェックできません。これは、 {tech}[マッチ判別子] の中にある不必要なタプルが {lean}`n` とそれにマッチするパターンとの間のつながりを壊してしまうからです。
428428

429429
```lean (error := true) (name := badhalfmatch) (keep := false)
430430
def half (n : Nat) : Nat :=

Manual/Tactics.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Metavariables that result from tactics frequently appear as goals whose {tech}[c
567567

568568
:::
569569

570-
疑問符で始まる項は未知の値に対応する _メタ変数_ (metavariable)です。これらは {tech}[宇宙] レベルか項のいずれかを表すこともあります。メタ変数の中には、Lean のエラボレーションプロセスの一環として、値を決定するのに十分な情報が得られていないときに生じるものがあります。このようなメタ変数の名前の最後には `?m.392``?u.498` のように数字が付きます。その他のメタ変数はタクティクや {tech}[synthetic holes] の結果として存在するようになります。これらのメタ変数の名前には数字の要素はありません。タクティクの結果として生じるメタ変数は {tech}[ケースラベル] がメタ変数の名前と一致するゴールとして現れることが多いです。
570+
疑問符で始まる項は未知の値に対応する _メタ変数_ (metavariable)です。これらは {tech}[宇宙] レベルか項のいずれかを表すこともあります。メタ変数の中には、Lean のエラボレーションプロセスの一環として、値を決定するのに十分な情報が得られていないときに生じるものがあります。このようなメタ変数の名前の最後には `?m.392``?u.498` のように数字が付きます。その他のメタ変数はタクティクや {tech}[統合的ホール] の結果として存在するようになります。これらのメタ変数の名前には数字の要素はありません。タクティクの結果として生じるメタ変数は {tech}[ケースラベル] がメタ変数の名前と一致するゴールとして現れることが多いです。
571571

572572
:::comment
573573
::example "Universe Level Metavariables"
@@ -1185,7 +1185,7 @@ Variable references in tactic scripts refer either to names that were in scope a
11851185

11861186
:::
11871187

1188-
Lean のタクティク言語は _健全_ {index subterm := "in tactics"}[hygiene] (hygienic)です。これはタクティク言語が字句スコープを尊重することを意味します:タクティク内で出現する名前は生成されたコードによって決定されるのではなく、ソースコードの束縛を参照しており、タクティクフレームワークはこのプロパティを維持する責任があります。タクティクスクリプトの変数参照は裏側で証明項で使うために選ばれた名前ではなく、スクリプトの最初にスコープにあった名前か、タクティクの一部として明示的に導入された束縛を参照します。
1188+
Lean のタクティク言語は _健全_ {index subterm := "in tactics"}[hygiene] (hygienic)です。これはタクティク言語がレキシカルスコープを尊重することを意味します:タクティク内で出現する名前は生成されたコードによって決定されるのではなく、ソースコードの束縛を参照しており、タクティクフレームワークはこのプロパティを維持する責任があります。タクティクスクリプトの変数参照は裏側で証明項で使うために選ばれた名前ではなく、スクリプトの最初にスコープにあった名前か、タクティクの一部として明示的に導入された束縛を参照します。
11891189

11901190
:::comment
11911191
A consequence of hygienic tactics is that the only way to refer to an assumption is to explicitly name it.

0 commit comments

Comments
 (0)