37
複数の subgoal を証明する必要があるとき、各証明の区切りとして next コマンドを用いる。
context(factなど)は next を挟んで共有されない。
Output
thy
next
Slide 38
Slide 38 text
38
thy
複数の subgoal を証明する必要があるとき、各証明の区切りとして next コマンドを用いる。
context(factなど)は next を挟んで共有されない。
next
Slide 39
Slide 39 text
39
next の代わりに { … } を使っても良い。
thy
{ }
Slide 40
Slide 40 text
then = from this
40
thus = then show
hence = then have
with facts = from facts and this
. = by this
.. = by standard
from facts (have|show) φ = (have|show) φ using facts
TIPS (1/3)
standard:
自動証明メソッドの一つ。context から
rule の引数になりうるものを集めて
rule を適用する。
sorry
証明したことにして次に進むためのコマンド
証明したことにした式はfactとして使える
oops
証明を打ち切るためのコマンド
Slide 41
Slide 41 text
rule a を2回適用する。
41
proof
proof -
メソッドを適用しない場合は - をつける。
引数なしの場合、proof standard と同じ。
proof (rule a, rule b, …)
複数のメソッドを順に適用する。
proof ((rule a)+)
TIPS (2/3)
定理中の変数に値を当てはめる
定理を当てはめて推論を前向きに進める
sledgehammer
Isabelleが自動で証明を進めるコマンド。
proof (rule a; rule b, …)
1番目のsubgoalに rule a を適用し、新しくできた各ゴールに
rule b を適用する。