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
|
2015-10-14 01:35:16 +00:00
|
|
|
local abbreviation S [parsing_only] := relation
|
2015-05-29 22:08:49 +00:00
|
|
|
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'
|
2015-10-14 01:35:16 +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 ~1 a
|
|
|
|
check a ~2 a
|
|
|
|
end
|
|
|
|
|
|
|
|
section
|
|
|
|
parameter {A : Type}
|
|
|
|
definition relation'' : A → A → Type := λa b, a = b
|
2015-10-14 01:35:16 +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
|
2015-10-14 01:35:16 +00:00
|
|
|
local abbreviation S [parsing_only] := relation'''
|
2015-05-29 22:08:49 +00:00
|
|
|
variable {a : A}
|
|
|
|
check relation''' a a
|
|
|
|
check S a a
|
|
|
|
end
|