2015-05-29 22:08:49 +00:00
|
|
|
section
|
|
|
|
parameter {A : Type}
|
|
|
|
definition relation : A → A → Type := λa b, a = b
|
|
|
|
local abbreviation R := relation
|
|
|
|
local abbreviation S [parsing-only] := relation
|
|
|
|
variable {a : A}
|
|
|
|
check relation a a
|
|
|
|
check R a a
|
|
|
|
check S a a
|
|
|
|
end
|
|
|
|
|
|
|
|
section
|
|
|
|
parameter {A : Type}
|
|
|
|
definition relation' : A → A → Type := λa b, a = b
|
2015-09-30 23:52:56 +00:00
|
|
|
local infix ` ~1 `:50 := relation'
|
|
|
|
local infix [parsing-only] ` ~2 `:50 := relation'
|
2015-05-29 22:08:49 +00:00
|
|
|
variable {a : A}
|
|
|
|
check relation' a a
|
|
|
|
check a ~1 a
|
|
|
|
check a ~2 a
|
|
|
|
end
|
|
|
|
|
|
|
|
section
|
|
|
|
parameter {A : Type}
|
|
|
|
definition relation'' : A → A → Type := λa b, a = b
|
2015-09-30 23:52:56 +00:00
|
|
|
local infix [parsing-only] ` ~2 `:50 := relation''
|
2015-05-29 22:08:49 +00:00
|
|
|
variable {a : A}
|
|
|
|
check relation'' a a
|
|
|
|
check a ~2 a
|
|
|
|
check a ~2 a
|
|
|
|
end
|
|
|
|
|
|
|
|
section
|
|
|
|
parameter {A : Type}
|
|
|
|
definition relation''' : A → A → Type := λa b, a = b
|
|
|
|
local abbreviation S [parsing-only] := relation'''
|
|
|
|
variable {a : A}
|
|
|
|
check relation''' a a
|
|
|
|
check S a a
|
|
|
|
end
|