Skip to content
Snippets Groups Projects
Commit 708a4d82 authored by gabrielhdt's avatar gabrielhdt
Browse files

ok with let encoding

parent ad9a7004
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,13 @@ symbol frac : Term nat ⇒ Term N.nznat ⇒ Term rat
symbol times : @Term Type rat ⇒ @Term Type rat ⇒ @Term Type rat
rule times (frac &a &b) (frac &c &d) →
let bv ≔ fst N.not_zero &b in
let dv ≔ fst N.not_zero &d in
frac
(N.times &a &c)
(N.nznatc
(N.times (fst N.not_zero &b) (fst N.not_zero &d))
(N.prod_not_zero
(fst N.not_zero &b)
(fst N.not_zero &d)
(N.times bv dv)
(N.prod_not_zero bv dv
(snd N.not_zero &b)
(snd N.not_zero &d)))
......@@ -30,7 +30,4 @@ definition onz : Term N.nznat ≔ N.nznatc 1 N.one_not_zero
theorem right_cancellation (a: Term nat) (b: Term N.nznat):
Term (rateq (times (frac a b) (frac (fst N.not_zero b) onz)) (frac a onz))
proof
assume a b
simpl
refine N.prod_comm a b
qed
admit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment