Skip to content

Commit 1566ef1

Browse files
authored
Merge pull request #1272 from lean-ja/Seasawher/issue1268
複数ファイルからなる記事の扱いについて
2 parents 6eea554 + 78caf20 commit 1566ef1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

LeanByExample/Declarative/DeclareAesopRuleSets.lean

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@
99
## 基本的な使い方
1010
1111
`declare_aesop_rule_sets` で宣言されたルールセットは、宣言したそのファイルの中では有効になりません。`import` する必要があります。前提として以下の内容のファイルを `import` しているとしましょう。
12-
```lean
13-
/- import されているファイルの内容 -/
14-
import Aesop
1512
16-
declare_aesop_rule_sets [HogeRules]
17-
```
13+
{{#include ./DeclareAesopRuleSetsLib.md}}
1814
1915
このとき、以下のように `aesop` の `rule_sets` に `HogeRules` を渡すことで、`HogeRules` に登録されたルールセットを使用することができます。
2016
-/
21-
import LeanByExample.Declarative.DeclareAesopRuleSetsLib --#
17+
import LeanByExample.Declarative.DeclareAesopRuleSetsLib -- インポートで有効になる
2218
import Mathlib.Tactic.Says --#
2319

2420
example : True := by
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-- import されているファイルの内容
12
import Aesop
23

34
declare_aesop_rule_sets [HogeRules]

0 commit comments

Comments
 (0)