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

Commit f700edc

Browse files
committed
BasicTypes翻訳 (#15)
* 翻訳開始 * 翻訳完了
1 parent 1b145f0 commit f700edc

File tree

7 files changed

+461
-4
lines changed

7 files changed

+461
-4
lines changed

GLOSSARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
| identifier component | 識別子要素 | |
112112
| identifier continuation character | 識別子継続文字 | |
113113
| identity function | 恒等関数 | |
114+
| immediate value | 即値 | |
114115
| imperative | 命令型 | |
115116
| implicit parameter | 暗黙のパラメータ | |
116117
| inaccessible | (仮定のアクセス可否の文脈で)アクセス不能 | |
@@ -134,6 +135,7 @@
134135
| interface | インタフェース | |
135136
| interleave | 交互に実行する | |
136137
| intermediate representation | 中間表現 | |
138+
| interpolate | 補間 | |
137139
| invariant | 不変量 | |
138140
| kernel | カーネル | |
139141
| keyword | キーワード | |
@@ -289,6 +291,7 @@
289291
| choice node | |
290292
| cumulative | |
291293
| impredicativity, predicativity | |
294+
| no confusion | |
292295
| packed array | System Verilogという言語にこの名前の文法要素がある? |
293296
| strict positively, negatively | 自己言及される定義の分類、定訳は無い模様 |
294297
| prelude | |

Manual/BasicTypes.lean

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,24 @@ open Verso.Genre Manual
1818
set_option pp.rawOnError true
1919

2020

21+
/-
2122
#doc (Manual) "Basic Types" =>
23+
-/
24+
#doc (Manual) "基本的な型(Basic Types)" =>
2225
%%%
2326
tag := "basic-types"
2427
%%%
2528

2629

30+
:::comment
2731
Lean includes a number of built-in types that are specially supported by the compiler.
2832
Some, such as {lean}`Nat`, additionally have special support in the kernel.
2933
Other types don't have special compiler support _per se_, but rely in important ways on the internal representation of types for performance reasons.
3034

35+
:::
36+
37+
Lean にはコンパイラが特別にサポートする組み込みの型が多数あります。 {lean}`Nat` のように、カーネルで特別にサポートされているものもあります。その他の型はコンパイラからの特別なサポート _自体_ はありませんが、パフォーマンス上の理由から型の内部表現に依存しています。
38+
3139
{include 0 Manual.BasicTypes.Nat}
3240

3341
# Integers
@@ -106,46 +114,80 @@ tag := "Float"
106114
* Relationship between IEEE floats and decidable equality
107115
:::
108116

117+
:::comment
109118
# Characters
110119
%%%
111120
tag := "Char"
112121
%%%
113122

114123

124+
:::
125+
126+
# 文字(Characters)
127+
115128
{docstring Char}
116129

130+
:::comment
117131
## Syntax
118132
%%%
119133
tag := "char-syntax"
120134
%%%
121135

122136

137+
:::
138+
139+
## 構文(Syntax)
140+
141+
:::comment
123142
## Logical Model
124143
%%%
125144
tag := "char-model"
126145
%%%
127146

147+
:::
148+
149+
## 論理モデル(Logical Model)
150+
151+
:::comment
128152
## Run-Time Representation
129153
%%%
130154
tag := "char-runtime"
131155
%%%
132156

157+
:::
158+
159+
## ランタイム表現(Run-Time Representation)
133160

161+
:::comment
134162
In monomorphic contexts, characters are represented as 32-bit immediate values. In other words, a field of a constructor or structure of type {lean}`Char` does not require indirection to access. In polymorphic contexts, characters are boxed.
135163

136164

165+
:::
166+
167+
モノ射なコンテキストでは、文字は32ビットの即値として表現されます。言い換えると、{lean}`Char` 型のコンストラクタや構造体のフィールドにアクセスする際にインダイレクトは必要ありません。多相なコンテキストでは文字はボックス化されます。
168+
169+
:::comment
137170
## API Reference
138171
%%%
139172
tag := "char-api"
140173
%%%
141174

142175

176+
:::
177+
178+
## API リファレンス(API Reference)
179+
180+
:::comment
143181
### Character Classes
144182
%%%
145183
tag := "char-api-classes"
146184
%%%
147185

148186

187+
:::
188+
189+
### 文字クラス(Character Classes)
190+
149191
{docstring Char.isAlpha}
150192

151193
{docstring Char.isAlphanum}

0 commit comments

Comments
 (0)