Skip to content

Commit 47f7aa7

Browse files
committed
math proof
1 parent cedfaa7 commit 47f7aa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AddOperationNew.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import Mathlib
22

33
-- random math fact
4-
instance {p : ℕ} [Fact (Nat.Prime p)] : NoZeroDivisors (Fin p) := sorry
4+
instance {p : ℕ} [hp : Fact (Nat.Prime (p + 1))] : NoZeroDivisors (Fin (p + 1)) := by
5+
have : IsDomain (ZMod (p + 1)) := ZMod.instIsDomain (hp := ⟨hp.1⟩)
6+
simp [ZMod] at this
7+
infer_instance
58

69
macro "WORD_SIZE" : term => `(2)
10+
711
abbrev p := 2013265921
812

913
@[reducible] def Word (T : Type) := Vector T WORD_SIZE

0 commit comments

Comments
 (0)