我有一个非常基本的表达式,涉及实数字面值和
+
也就是说,
4 = 1 + 1 + 1 + 1
.
我正在设法用尽可能少的聪明来证明这个事实。
Require Export RIneq. (* probably overkill, but it pulls in
enough real number stuff to be useful *)
Open Scope R_scope.
Lemma test_sum2 : 4 = 1 + 1 + 1 + 1.
我试图通过使用战略选择的断言和垃圾邮件来证明这一点。
intuition
但是我似乎不能在上面建立积分实域
3
使用这种技术。
Require Export RIneq.
Open Scope R_scope.
Lemma test_sum2 : 4 = 1 + 1 + 1 + 1.
Proof.
assert (1 + 1 = 2).
intuition.
rewrite H.
assert (1 + 2 = 3).
intuition.
assert (1 + 2 = 2 + 1).
intuition.
rewrite H1 in H0.
rewrite H0.
assert (1 + 3 = 3 + 1).
intuition.
使我处于证明状态
1 subgoal
H : 1 + 1 = 2
H0 : 2 + 1 = 3
H1 : 1 + 2 = 2 + 1
H2 : 1 + 3 = 3 + 1
______________________________________(1/1)
4 = 3 + 1