Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit a248bef

Browse files
committed
feat(data/pnat/basic): 0 < n as a fact (#11729)
1 parent dde904e commit a248bef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/data/pnat/basic.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ subtype.linear_order _
8484

8585
@[simp] theorem pos (n : ℕ+) : 0 < (n : ℕ) := n.2
8686

87+
-- see note [fact non_instances]
88+
lemma fact_pos (n : ℕ+) : fact (0 < ↑n) := ⟨n.pos⟩
89+
8790
theorem eq {m n : ℕ+} : (m : ℕ) = n → m = n := subtype.eq
8891

8992
@[simp] lemma coe_inj {m n : ℕ+} : (m : ℕ) = n ↔ m = n := set_coe.ext_iff

0 commit comments

Comments
 (0)