refactor(library/data/fin): put fin.val coercion in fin namespace
This commit is contained in:
parent
a54fb42f87
commit
e6ce5d9b72
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue