chore(hott) minor corrections

This commit is contained in:
Jakob von Raumer 2014-12-16 15:10:12 -05:00 committed by Leonardo de Moura
parent 9607518ce0
commit 71cffd29a0
7 changed files with 16 additions and 8 deletions

View file

@ -2,7 +2,7 @@
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jakob von Raumer
-- Ported from Coq HoTT
import init.equiv init.axioms.funext
open eq function funext
namespace is_equiv

View file

@ -3,7 +3,7 @@
-- Author: Jakob von Raumer
-- Ported from Coq HoTT
prelude
import ..equiv ..datatypes
import ..equiv ..datatypes ..types.prod
import .funext_varieties .ua .funext
open eq function prod sigma truncation equiv is_equiv unit ua_type

View file

@ -2,6 +2,7 @@
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jakob von Raumer
-- Ported from Coq HoTT
prelude
import ..path ..trunc ..equiv .funext
open eq truncation sigma function

View file

@ -2,11 +2,11 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Authors: Leonardo de Moura, Jakob von Raumer
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.priority init.relation init.wf
import init.types.sigma init.types.prod
import init.types.sigma init.types.prod init.types.empty
import init.trunc init.path init.equiv
import init.axioms.funext
import init.axioms.ua init.axioms.funext init.axioms.funext_from_ua

View file

@ -6,6 +6,7 @@ Author: Leonardo de Moura
General operations on functions.
-/
prelude
import init.reserved_notation
namespace function
@ -36,7 +37,6 @@ definition flip {A : Type} {B : Type} {C : A → B → Type} (f : Πx y, C x y)
definition app {A : Type} {B : A → Type} (f : Πx, B x) (x : A) : B x :=
f x
precedence `∘`:60
precedence `∘'`:60
precedence `on`:1
precedence `$`:1
@ -44,7 +44,7 @@ precedence `$`:1
variables {f g : A → B}
infixr ∘ := compose
infixr ∘ := compose
infixr ∘' := dcompose
infixl on := on_fun
infixr $ := app

View file

@ -4,12 +4,15 @@
prelude
import ..datatypes ..logic
-- Empty type
-- ----------
namespace empty
protected theorem elim (A : Type) (H : empty) : A :=
rec (λe, A) H
end empty
protected definition empty.has_decidable_eq [instance] : decidable_eq empty :=

View file

@ -2,7 +2,6 @@
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.prod.decl
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
@ -11,13 +10,18 @@ import ..wf
definition pair := @prod.mk
namespace prod
notation A * B := prod A B
notation A × B := prod A B
namespace low_precedence_times
reserve infixr `*`:30 -- conflicts with notation for multiplication
infixr `*` := prod
end low_precedence_times
-- TODO: add lemmas about flip to /hott/types/prod.hlean
definition flip {A B : Type} (a : A × B) : B × A := pair (pr2 a) (pr1 a)
notation `pr₁` := pr1