-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.lean
More file actions
29 lines (21 loc) · 942 Bytes
/
Copy pathExample.lean
File metadata and controls
29 lines (21 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/-
EXAMPLE-001: Hello-world claim for refineforge.
This file exists to prove the refineforge pipeline works end-to-end:
no-sorry policy gate → `lake build` → bundle export/verify. Once
you've confirmed it runs green, replace this with your own claim
(`refine new --template <name> --module <Mod.Path> <CLAIM_ID>`).
Doctrine
--------
LLM may propose. Lean must verify. Human operator must approve.
Policy
------
No `sorry`. No `admit`. No `axiom` declarations beyond Lean core.
Lean toolchain: pinned in `lean/lean-toolchain` (currently v4.29.1).
-/
namespace Refineforge.Example
/-- Hello-world theorem: addition is commutative on Nat.
Lean's standard library already proves this (`Nat.add_comm`); this
wrapper exists so refineforge has a non-trivial theorem to drive
through the policy gate, build, and bundle pipeline. -/
theorem add_comm_demo (a b : Nat) : a + b = b + a := Nat.add_comm a b
end Refineforge.Example