feat(library/init): create markdown directory file

This commit is contained in:
Jeremy Avigad 2014-12-15 16:43:42 -05:00
parent da719e6ee4
commit 2b56a2b891
11 changed files with 65 additions and 4 deletions

View file

@ -2,6 +2,7 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.default
Authors: Leonardo de Moura
-/
prelude

44
library/init/init.md Normal file
View file

@ -0,0 +1,44 @@
init
====
The modules in this folder are required by low-level operations, and
are always imported by default. You can suppress this behavior by
beginning a file with the keyword "prelude".
Syntax declarations:
* [reserved_notation](reserved_notation.lean)
* [tactic](tactic.lean)
* [priority](priority.lean)
Datatypes and logic:
* [datatypes](datatypes.lean)
* [logic](logic.lean)
* [bool](bool.lean)
* [num](num.lean)
* [nat](nat.lean)
Support for well-founded recursion:
* [relation](relation.lean)
* [wf](wf.lean)
* [wf_k](wf_k.lean)
* [measurable](measurable.lean)
Additional datatypes:
* [prod](prod.lean)
* [sigma](sigma.lean)
The default import:
* [default](default.lean)
Module init.logic defines "inhabited" and "nonempty"
types. Constructively, inhabited types have a witness, while nonempty
types are proof irrelevant. Classically (assuming the axioms in
logic.axioms.hilbert) the two are equivalent. Type class inferences
are set up to use "inhabited" however, so users should use that to
declare that types have an element. Use "nonempty" in the hypothesis
of a theorem when the theorem does not depend on the witness chosen.

View file

@ -2,7 +2,10 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.measurable
Authors: Leonardo de Moura
Types with a nat-valued complexity measure.
-/
prelude
import init.nat

View file

@ -1,6 +1,8 @@
/-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.nat
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude

View file

@ -2,6 +2,7 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.num
Authors: Leonardo de Moura
-/
prelude

View file

@ -2,6 +2,7 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.priority
Authors: Leonardo de Moura
-/
prelude

View file

@ -2,7 +2,7 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.prod.decl
Module: init.prod
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude

View file

@ -1,6 +1,8 @@
/-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module init.relation
Authors: Leonardo de Moura
-/
prelude

View file

@ -1,6 +1,10 @@
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
/-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.sigma
Author: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.num init.wf init.logic init.tactic

View file

@ -2,6 +2,7 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.tactic
Author: Leonardo de Moura
This is just a trick to embed the 'tactic language' as a Lean

View file

@ -1,6 +1,8 @@
/-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.wf
Author: Leonardo de Moura
-/
prelude