refactor(library/logic): rename connectives -> core, basic -> connectives
This commit is contained in:
parent
2d78387541
commit
00a049a667
32 changed files with 31 additions and 40 deletions
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
|
|
||||||
import logic.connectives.basic logic.classes.decidable logic.classes.inhabited
|
import logic.core.connectives logic.classes.decidable logic.classes.inhabited
|
||||||
|
|
||||||
using eq_ops decidable
|
using eq_ops decidable
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
|
|
||||||
import logic.connectives.basic logic.connectives.eq logic.classes.inhabited logic.classes.decidable
|
import logic.core.eq logic.classes.inhabited logic.classes.decidable
|
||||||
using eq_ops decidable
|
using eq_ops decidable
|
||||||
|
|
||||||
namespace option
|
namespace option
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
-- The cartesian product.
|
-- The cartesian product.
|
||||||
|
|
||||||
import logic.classes.inhabited logic.connectives.eq logic.classes.decidable
|
import logic.classes.inhabited logic.core.eq logic.classes.decidable
|
||||||
|
|
||||||
using inhabited decidable
|
using inhabited decidable
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
-- Theory data.quotient
|
-- Theory data.quotient
|
||||||
-- ====================
|
-- ====================
|
||||||
|
|
||||||
import logic tools.tactic ..subtype logic.connectives.cast struc.relation data.prod
|
import logic tools.tactic ..subtype logic.core.cast struc.relation data.prod
|
||||||
import logic.connectives.instances
|
import logic.core.instances
|
||||||
import .aux
|
import .aux
|
||||||
|
|
||||||
using relation prod inhabited nonempty tactic eq_ops
|
using relation prod inhabited nonempty tactic eq_ops
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura, Jeremy Avigad
|
-- Author: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import logic.classes.inhabited logic.connectives.eq
|
import logic.classes.inhabited logic.core.eq
|
||||||
|
|
||||||
using inhabited
|
using inhabited
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura, Jeremy Avigad
|
-- Author: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import logic.classes.inhabited logic.connectives.eq logic.classes.decidable
|
import logic.classes.inhabited logic.core.eq logic.classes.decidable
|
||||||
|
|
||||||
using decidable
|
using decidable
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
-- The sum type, aka disjoint union.
|
-- The sum type, aka disjoint union.
|
||||||
|
|
||||||
import logic.connectives.prop logic.classes.inhabited logic.classes.decidable
|
import logic.core.prop logic.classes.inhabited logic.classes.decidable
|
||||||
|
|
||||||
using inhabited decidable
|
using inhabited decidable
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
----------------------------------------------------------------------------------------------------
|
|
||||||
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
----------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import logic.connectives.basic logic.connectives.quantifiers logic.connectives.cast struc.relation
|
import logic.core.quantifiers logic.core.cast struc.relation
|
||||||
|
|
||||||
using eq_ops
|
using eq_ops
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
import logic.connectives.eq struc.function
|
import logic.core.eq struc.function
|
||||||
using function
|
using function
|
||||||
|
|
||||||
-- Function extensionality
|
-- Function extensionality
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
-- Follows Coq.Logic.ClassicalEpsilon (but our definition of "inhabited" is the
|
-- Follows Coq.Logic.ClassicalEpsilon (but our definition of "inhabited" is the
|
||||||
-- constructive one).
|
-- constructive one).
|
||||||
|
|
||||||
import logic.connectives.eq logic.connectives.quantifiers
|
import logic.core.quantifiers
|
||||||
import logic.classes.inhabited logic.classes.nonempty
|
import logic.classes.inhabited logic.classes.nonempty
|
||||||
import data.subtype data.sum
|
import data.subtype data.sum
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
import logic.classes.inhabited logic.connectives.cast
|
import logic.classes.inhabited logic.core.cast
|
||||||
|
|
||||||
using inhabited
|
using inhabited
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
|
|
||||||
import logic.connectives.basic logic.connectives.eq
|
import logic.core.connectives
|
||||||
|
|
||||||
namespace decidable
|
namespace decidable
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Authors: Leonardo de Moura, Jeremy Avigad
|
-- Authors: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.basic
|
import logic.core.connectives
|
||||||
|
|
||||||
inductive inhabited (A : Type) : Type :=
|
inductive inhabited (A : Type) : Type :=
|
||||||
inhabited_mk : A → inhabited A
|
inhabited_mk : A → inhabited A
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Authors: Leonardo de Moura, Jeremy Avigad
|
-- Authors: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.basic .inhabited
|
import .inhabited
|
||||||
|
|
||||||
using inhabited
|
using inhabited
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ logic.connectives
|
||||||
Logical operations and connectives.
|
Logical operations and connectives.
|
||||||
|
|
||||||
* [prop](prop.lean) : the type Prop
|
* [prop](prop.lean) : the type Prop
|
||||||
* [basic](basic.lean) : propositional connectives
|
|
||||||
* [eq](eq.lean) : equality and disequality
|
* [eq](eq.lean) : equality and disequality
|
||||||
|
* [connectives](connectives.lean) : propositional connectives
|
||||||
* [cast](cast.lean) : casts and heterogeneous equality
|
* [cast](cast.lean) : casts and heterogeneous equality
|
||||||
* [quantifiers](quantifiers.lean) : existential and universal quantifiers
|
* [quantifiers](quantifiers.lean) : existential and universal quantifiers
|
||||||
* [if](if.lean) : if-then-else
|
* [if](if.lean) : if-then-else
|
|
@ -8,13 +8,10 @@
|
||||||
-- Useful logical identities. In the absence of propositional extensionality, some of the
|
-- Useful logical identities. In the absence of propositional extensionality, some of the
|
||||||
-- calculations use the type class support provided by logic.connectives.instances
|
-- calculations use the type class support provided by logic.connectives.instances
|
||||||
|
|
||||||
import logic.connectives.instances
|
import logic.core.instances
|
||||||
|
|
||||||
using relation
|
using relation
|
||||||
|
|
||||||
-- TODO: delete when calc bug is fixed
|
|
||||||
calc_subst subst_iff
|
|
||||||
|
|
||||||
theorem or_right_comm (a b c : Prop) : (a ∨ b) ∨ c ↔ (a ∨ c) ∨ b :=
|
theorem or_right_comm (a b c : Prop) : (a ∨ b) ∨ c ↔ (a ∨ c) ∨ b :=
|
||||||
calc
|
calc
|
||||||
(a ∨ b) ∨ c ↔ a ∨ (b ∨ c) : or_assoc _ _ _
|
(a ∨ b) ∨ c ↔ a ∨ (b ∨ c) : or_assoc _ _ _
|
||||||
|
@ -38,6 +35,3 @@ calc
|
||||||
a ∧ (b ∧ c) ↔ (a ∧ b) ∧ c : iff_symm (and_assoc _ _ _)
|
a ∧ (b ∧ c) ↔ (a ∧ b) ∧ c : iff_symm (and_assoc _ _ _)
|
||||||
... ↔ (b ∧ a) ∧ c : {and_comm a b}
|
... ↔ (b ∧ a) ∧ c : {and_comm a b}
|
||||||
... ↔ b ∧ (a ∧ c) : and_assoc _ _ _
|
... ↔ b ∧ (a ∧ c) : and_assoc _ _ _
|
||||||
|
|
||||||
-- TODO: delete when calc bug is fixed
|
|
||||||
calc_subst subst
|
|
|
@ -2,7 +2,7 @@
|
||||||
--- Released under Apache 2.0 license as described in the file LICENSE.
|
--- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
--- Author: Jeremy Avigad
|
--- Author: Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.basic logic.connectives.eq struc.relation
|
import logic.core.connectives struc.relation
|
||||||
|
|
||||||
namespace relation
|
namespace relation
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Authors: Leonardo de Moura, Jeremy Avigad
|
-- Authors: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import .basic .eq ..classes.nonempty
|
import .connectives ..classes.nonempty
|
||||||
|
|
||||||
using inhabited nonempty
|
using inhabited nonempty
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
--- Released under Apache 2.0 license as described in the file LICENSE.
|
--- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
--- Author: Jeremy Avigad
|
--- Author: Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.basic logic.connectives.eq logic.connectives.cast
|
import logic.core.connectives logic.core.eq logic.core.cast
|
||||||
import logic.connectives.quantifiers logic.connectives.if
|
import logic.core.quantifiers logic.core.if
|
||||||
import logic.classes.decidable logic.classes.inhabited logic.classes.nonempty
|
import logic.classes.decidable logic.classes.inhabited logic.classes.nonempty
|
||||||
import logic.connectives.instances
|
import logic.core.instances
|
||||||
import logic.connectives.identities
|
import logic.core.identities
|
||||||
|
|
|
@ -4,7 +4,7 @@ logic
|
||||||
Logical constructions and axioms. By default, `import logic` does not
|
Logical constructions and axioms. By default, `import logic` does not
|
||||||
import any additional axioms.
|
import any additional axioms.
|
||||||
|
|
||||||
* [connectives](connectives/connectives.md) : logical connectives
|
* [core](core/core.md) : logical connectives
|
||||||
* [axioms](axioms/axioms.md) : additional axioms
|
* [axioms](axioms/axioms.md) : additional axioms
|
||||||
* [classes](classes/classes.md) : classes for inhabited types,
|
* [classes](classes/classes.md) : classes for inhabited types,
|
||||||
decidable types, etc.
|
decidable types, etc.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura
|
-- Author: Leonardo de Moura
|
||||||
|
|
||||||
import logic.connectives.eq
|
import logic.core.eq
|
||||||
using eq_ops
|
using eq_ops
|
||||||
|
|
||||||
namespace binary
|
namespace binary
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Jeremy Avigad
|
-- Author: Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.prop
|
import logic.core.prop
|
||||||
|
|
||||||
|
|
||||||
-- General properties of relations
|
-- General properties of relations
|
||||||
|
|
|
@ -6,5 +6,4 @@ Axiomatic properties and structures.
|
||||||
* [function](function.lean)
|
* [function](function.lean)
|
||||||
* [relation](relation.lean)
|
* [relation](relation.lean)
|
||||||
* [binary](binary.lean) : binary operations
|
* [binary](binary.lean) : binary operations
|
||||||
* [equivalence](equivalence.lean) : equivalence relations
|
|
||||||
* [wf](wf.lean) : well-founded relations
|
* [wf](wf.lean) : well-founded relations
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
--- Released under Apache 2.0 license as described in the file LICENSE.
|
--- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
--- Author: Jeremy Avigad
|
--- Author: Jeremy Avigad
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
import logic.connectives.basic struc.function
|
import logic.core.connectives struc.function
|
||||||
using function
|
using function
|
||||||
|
|
||||||
namespace congr
|
namespace congr
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Author: Leonardo de Moura, Jeremy Avigad
|
-- Author: Leonardo de Moura, Jeremy Avigad
|
||||||
|
|
||||||
import logic.connectives.prop logic.classes.inhabited logic.classes.decidable
|
import logic.core.prop logic.classes.inhabited logic.classes.decidable
|
||||||
|
|
||||||
using inhabited decidable
|
using inhabited decidable
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue