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

Commit

Permalink
Classes翻訳 (#17)
Browse files Browse the repository at this point in the history
* 翻訳開始

* 翻訳完了
  • Loading branch information
s-taiga committed Dec 15, 2024
1 parent 4222209 commit aaeebd4
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 25 deletions.
13 changes: 10 additions & 3 deletions GLOSSARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
| --- | --- | --- |
| abbreviation | 省略形 | |
| abstraction | 抽象 | |
| ad-hoc polymorphism | アドホック多相性 | |
| angle bracket | 角括弧 | square bracketと同じ訳語にしているが、直後にコード例がある場合も多いため文脈で見分けられる想定 |
| annotation | 注釈 | |
| anonymous constructor | 匿名コンストラクタ | |
Expand Down Expand Up @@ -98,6 +99,7 @@
| functional programming language | 関数型プログラミング言語 | |
| function extensionality | 関数外延性 | |
| function type | 関数型 | |
| gadget | ガジェット | |
| goal | ゴール | |
| grammar | 文法 | |
| guillemet | ギュメ | フランス語 |
Expand Down Expand Up @@ -128,8 +130,8 @@
| inheritance | 継承 | |
| initialization | 初期化 | |
| injectivity | 単射性 | |
| instance implicit parameter | インスタンスの暗黙のパラメータ | |
| instances synthesize | インスタンス合成 | |
| instance implicit parameter | 暗黙のインスタンスのパラメータ | |
| instances synthesize | インスタンス統合 | composite instanceという類似表現もあるが、関数合成の意味での合成と使い分けるために統合を採用 |
| instantiate, instantiation | インスタンス化 | |
| intensional | 内包的 | |
| interactive theorem prover | 対話型定理証明器 | |
Expand Down Expand Up @@ -157,6 +159,7 @@
| macro Expansion | マクロ展開 | |
| map | 写像 | |
| mapping | マッピング | |
| membership predicate | メンバシップ述語 | |
| memoization | メモ化 | |
| modifier | 修飾子 | |
| monad | モナド | |
Expand Down Expand Up @@ -228,6 +231,7 @@
| simp set | simp セット | |
| single quote | シングルクォート | |
| singleton | 単集合 | |
| sort | ソート | |
| soundness | 健全性 | |
| square bracket | 角括弧 | |
| specialization | 特殊化 | |
Expand Down Expand Up @@ -269,7 +273,9 @@
| tuple | タプル | |
| turnstile | ターンスタイル | |
| type class | 型クラス | |
| type class instance synthesis | 型クラスインスタンス合成 | |
| type class instance synthesis | 型クラスインスタンス統合 | |
| type-directed | 型指向 | |
| type family | 型族 | |
| type signature | 型シグネチャ | |
| unbox | ボックス化解除 | C#の用語を流用 |
| underscore | アンダースコア | |
Expand All @@ -293,6 +299,7 @@
| cumulative | |
| impredicativity, predicativity | |
| no confusion | |
| out, semi-out | |
| packed array | System Verilogという言語にこの名前の文法要素がある? |
| strict positively, negatively | 自己言及される定義の分類、定訳は無い模様 |
| prelude | |
Expand Down
2 changes: 1 addition & 1 deletion Manual/Elaboration.lean
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Term elaboration may modify all of these fields except the open scopes.
Additionally, it has access to all the machinery needed to create fully-explicit terms in the core language from Lean's terse, friendly syntax, including unification, type class instance synthesis, and type checking.
:::

コマンドエラボレーションと項エラボレーションは異なる能力を持ちます。コマンドエラボレーションは環境に副作用を与える可能性があり、 {lean}`IO` で任意の計算を実行するアクセス権を持っています。Lean の環境は名前から定義への通常のマッピングに加え、 {deftech}[環境拡張] (environment extension)で定義される追加データを含んでいます;環境拡張は {tactic}`simp` 補題・カスタムのプリティプリンタ・コンパイラの中間表現などの内部を含む、Lean コードに関する他のほとんどの情報を追跡するために使用されます。コマンドエラボレーションはまた、コンパイラの情報出力・警告・およびエラー内容を含むメッセージログ・メタデータをもとの構文に関連付ける {tech}[情報木] のセット(証明状態の表示・識別子の補完・ドキュメントの表示などの対話的な機能に使用されます)・蓄積されたデバッグトレース・開いた {tech}[section scope] ・マクロ展開に関連するいくつかの内部状態を維持します。項エラボレーションは開いたスコープを除くこれらすべてのフィールドを変更することができます。さらに、Lean の簡潔で親しみやすい構文からコア言語で完全に明示的な項を作成するために必要な単一化・型クラスインスタンス合成・型チェックを含むすべての機構にアクセスすることができます。
コマンドエラボレーションと項エラボレーションは異なる能力を持ちます。コマンドエラボレーションは環境に副作用を与える可能性があり、 {lean}`IO` で任意の計算を実行するアクセス権を持っています。Lean の環境は名前から定義への通常のマッピングに加え、 {deftech}[環境拡張] (environment extension)で定義される追加データを含んでいます;環境拡張は {tactic}`simp` 補題・カスタムのプリティプリンタ・コンパイラの中間表現などの内部を含む、Lean コードに関する他のほとんどの情報を追跡するために使用されます。コマンドエラボレーションはまた、コンパイラの情報出力・警告・およびエラー内容を含むメッセージログ・メタデータをもとの構文に関連付ける {tech}[情報木] のセット(証明状態の表示・識別子の補完・ドキュメントの表示などの対話的な機能に使用されます)・蓄積されたデバッグトレース・開いた {tech}[section scope] ・マクロ展開に関連するいくつかの内部状態を維持します。項エラボレーションは開いたスコープを除くこれらすべてのフィールドを変更することができます。さらに、Lean の簡潔で親しみやすい構文からコア言語で完全に明示的な項を作成するために必要な単一化・型クラスインスタンス統合・型チェックを含むすべての機構にアクセスすることができます。

:::comment
The first step in both term and command elaboration is macro expansion.
Expand Down
Loading

0 comments on commit aaeebd4

Please sign in to comment.