This PR implements iteration over ranges for `Fin` and `Char`. To this end, we introduce machinery for pulling back lawfulness of `UpwardEnumerable` along an injective map and study the function `Char.ordinal : Char -> Fin Char.numCodePoints`.
12 lines
323 B
Text
12 lines
323 B
Text
/-
|
|
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
Authors: Leonardo de Moura
|
|
-/
|
|
module
|
|
|
|
prelude
|
|
public import Init.Data.Char.Basic
|
|
public import Init.Data.Char.Lemmas
|
|
public import Init.Data.Char.Order
|
|
public import Init.Data.Char.Ordinal
|