Skip to content
Snippets Groups Projects
Commit 4073cdff authored by gabrielhdt's avatar gabrielhdt
Browse files

rational numbers (not typechecking)

parent 04a2be3a
No related branches found
No related tags found
No related merge requests found
require open pvs_core booleans equalities notequal
constant symbol rat : Type
constant symbol zero : eta rat
symbol div : eta rat ⇒ eta rat ⇒ eta rat
symbol times : eta rat ⇒ eta rat ⇒ eta rat
set infix 5 "*" ≔ times
set infix 6 "/" ≔ div
symbol zero_times : ∀ x : eta rat, eps (eq rat zero (zero * x))
symbol left_cancellation : ∀ x y : eta rat, eps (eq rat (x * y / x) y)
symbol nonzero : psub rat (λ x : eta rat, neq rat zero x)
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