lean2/tests/lean/run/override1.lean

25 lines
589 B
Text
Raw Normal View History

import data.finset data.set
open set
example (A : Type) (x : A) (S H : set A) (Pin : x ∈ S)
(Psub : S ⊆ H) : x ∈ H := Psub Pin
open finset
section
override set -- set notation overrides existing one
example (A : Type) (x : A) (S H : set A) (Pin : x ∈ S)
(Psub : S ⊆ H) : x ∈ H := Psub Pin
end
-- ⊆ is now overloaded
example (A : Type) (x : A) (S H : set A) (Pin : x ∈ S)
(Psub : S ⊆ H) : x ∈ H := Psub _ Pin
override set -- overrides existing notation
example (A : Type) (x : A) (S H : set A) (Pin : x ∈ S) (Psub : S ⊆ H) : x ∈ H := Psub Pin