Description: Define the floor (greatest integer less than or equal to) function. See flval for its value, fllelt for its basic property, and flcl for its closure. For example, ( |_( 3 / 2 ) ) = 1 while ( |_-u ( 3 / 2 ) ) = -u 2 ( ex-fl ).
The term "floor" was coined by Ken Iverson. He also invented a mathematical notation for floor, consisting of an L-shaped left bracket and its reflection as a right bracket. In APL, the left-bracket alone is used, and we borrow this idea. (Thanks to Paul Chapman for this information.) (Contributed by NM, 14-Nov-2004)
| Ref | Expression | ||
|---|---|---|---|
| Assertion | df-fl |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 0 | cfl | ||
| 1 | vx | ||
| 2 | cr | ||
| 3 | vy | ||
| 4 | cz | ||
| 5 | 3 | cv | |
| 6 | cle | ||
| 7 | 1 | cv | |
| 8 | 5 7 6 | wbr | |
| 9 | clt | ||
| 10 | caddc | ||
| 11 | c1 | ||
| 12 | 5 11 10 | co | |
| 13 | 7 12 9 | wbr | |
| 14 | 8 13 | wa | |
| 15 | 14 3 4 | crio | |
| 16 | 1 2 15 | cmpt | |
| 17 | 0 16 | wceq |