refactor(library/data/fin): put fin.val coercion in fin namespace

This commit is contained in:
Jeremy Avigad 2015-06-29 21:24:38 +10:00
parent a54fb42f87
commit e6ce5d9b72

View file

@ -9,12 +9,13 @@ import data.list.basic data.finset.basic data.fintype.card algebra.group
open eq.ops nat function list finset fintype
structure fin (n : nat) := (val : nat) (is_lt : val < n)
attribute fin.val [coercion]
definition less_than [reducible] := fin
namespace fin
attribute fin.val [coercion]
section def_equal
variable {n : nat}