trying to prove distribution
This commit is contained in:
parent
bc9cd1934a
commit
ab8c9aa7aa
1 changed files with 8 additions and 8 deletions
|
@ -166,14 +166,14 @@ Distribution of `×` over `⊎` is an isomorphism.
|
|||
×-distributes-+ : ∀ {A B C : Set} → ((A ⊎ B) × C) ≃ ((A × C) ⊎ (B × C))
|
||||
×-distributes-+ =
|
||||
record {
|
||||
to = λ { (inj₁ a , c) → inj₁ (a , c) ;
|
||||
(inj₂ b , c) → inj₂ (b , c) } ;
|
||||
fro = {!!} ; -- λ { inj₁ (a , c) → (inj₁ a , c) ;
|
||||
-- inj₂ (b , c) → (inj₂ b , c) } ;
|
||||
invˡ = {!!} ; -- λ { (inj₁ a , c) → refl ;
|
||||
-- (inj₂ b , c) → refl } ;
|
||||
invʳ = {!!} -- λ { inj₁ (a , c) → refl ;
|
||||
-- inj₂ (b , c) → refl }
|
||||
to = λ { (inj₁ a , c) → (inj₁ (a , c)) ;
|
||||
(inj₂ b , c) → (inj₂ (b , c)) } ;
|
||||
fro = λ { (inj₁ (a , c)) → (inj₁ a , c) ;
|
||||
(inj₂ (b , c)) → (inj₂ b , c) } ;
|
||||
invˡ = λ { (inj₁ a , c) → refl ;
|
||||
(inj₂ b , c) → refl } ;
|
||||
invʳ = λ { (inj₁ (a , c)) → refl ;
|
||||
(inj₂ (b , c)) → refl }
|
||||
}
|
||||
\end{code}
|
||||
|
||||
|
|
Loading…
Reference in a new issue