初始化项目,由ModelHub XC社区提供模型
Model: EPFL-LARA/lean-world-model-qwen3-4b-grpo Source: Original Platform
This commit is contained in:
23
example_proof.lean
Normal file
23
example_proof.lean
Normal file
@@ -0,0 +1,23 @@
|
||||
import Mathlib
|
||||
|
||||
-- Theorem: For any natural number n, n + 0 = n.
|
||||
theorem demo (n : ℕ) : n + 0 = n := by
|
||||
/- <feedback>
|
||||
-- proof state:
|
||||
n : ℕ
|
||||
⊢ n + 0 = n
|
||||
</feedback> -/
|
||||
induction n with
|
||||
/- <feedback>
|
||||
-- proof state:
|
||||
case zero
|
||||
⊢ 0 + 0 = 0
|
||||
</feedback> -/
|
||||
| zero => rfl
|
||||
/- <feedback>
|
||||
-- proof state:
|
||||
ih : n + 0 = n
|
||||
case succ
|
||||
⊢ n + 1 + 0 = n + 1
|
||||
</feedback> -/
|
||||
| succ n ih => simp_all
|
||||
Reference in New Issue
Block a user