lean4-htt/library/init/data/list/instances.lean
Leonardo de Moura e9b4b811de chore(library/equations_compiler/util): disable generation of equational lemmas
@kha, `eqn_compiler.lemmas` is false by default.
I will keep them disabled until I remove the inductive compiler.
I'm building the new inductive datatype module (to replace the inductive
compiler), and the lemmas will fail to be proved in the next commits
until the transition is complete.
2018-06-12 13:03:25 -07:00

19 lines
461 B
Text

/-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.basic
import init.control.alternative init.control.monad
open list
universes u v
instance : monad list :=
{ pure := @list.ret, map := @list.map, bind := @list.bind }
instance : alternative list :=
{ failure := @list.nil,
orelse := @list.append,
..list.monad }