{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wno-overlapping-patterns #-}
module MAlonzo.Code.Relation.Nullary.Decidable where
import MAlonzo.RTE (coe, erased, AgdaAny, addInt, subInt, mulInt,
quotInt, remInt, geqInt, ltInt, eqInt, add64, sub64, mul64, quot64,
rem64, lt64, eq64, word64FromNat, word64ToNat)
import qualified MAlonzo.RTE
import qualified Data.Text
import qualified MAlonzo.Code.Agda.Builtin.Equality
import qualified MAlonzo.Code.Agda.Builtin.Unit
import qualified MAlonzo.Code.Agda.Primitive
import qualified MAlonzo.Code.Function.Bundles
import qualified MAlonzo.Code.Relation.Binary.Bundles
import qualified MAlonzo.Code.Relation.Nullary
import qualified MAlonzo.Code.Relation.Nullary.Decidable.Core
import qualified MAlonzo.Code.Relation.Nullary.Reflects
d_map_14 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Function.Bundles.T_Equivalence_928 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
d_map_14 ~v0 ~v1 ~v2 ~v3 v4 = du_map_14 v4
du_map_14 ::
MAlonzo.Code.Function.Bundles.T_Equivalence_928 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
MAlonzo.Code.Relation.Nullary.T_Dec_32
du_map_14 v0
= coe
MAlonzo.Code.Relation.Nullary.Decidable.Core.du_map'8242'_168
(coe MAlonzo.Code.Function.Bundles.d_f_938 (coe v0))
d__'8776'__114 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Function.Bundles.T_Injection_704 ->
AgdaAny -> AgdaAny -> ()
d__'8776'__114 = erased
d__'8776'__118 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Function.Bundles.T_Injection_704 ->
AgdaAny -> AgdaAny -> ()
d__'8776'__118 = erased
d_via'45'injection_120 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Relation.Binary.Bundles.T_Setoid_44 ->
MAlonzo.Code.Function.Bundles.T_Injection_704 ->
(AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32) ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32
d_via'45'injection_120 ~v0 ~v1 ~v2 ~v3 ~v4 ~v5 v6 v7 v8 v9
= du_via'45'injection_120 v6 v7 v8 v9
du_via'45'injection_120 ::
MAlonzo.Code.Function.Bundles.T_Injection_704 ->
(AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32) ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Relation.Nullary.T_Dec_32
du_via'45'injection_120 v0 v1 v2 v3
= coe
MAlonzo.Code.Relation.Nullary.Decidable.Core.du_map'8242'_168
(coe MAlonzo.Code.Function.Bundles.d_injective_716 v0 v2 v3)
(coe
v1 (coe MAlonzo.Code.Function.Bundles.d_f_712 v0 v2)
(coe MAlonzo.Code.Function.Bundles.d_f_712 v0 v3))
d_True'45''8596'_130 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
(AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12) ->
MAlonzo.Code.Function.Bundles.T_Inverse_1052
d_True'45''8596'_130 ~v0 ~v1 v2 ~v3 = du_True'45''8596'_130 v2
du_True'45''8596'_130 ::
MAlonzo.Code.Relation.Nullary.T_Dec_32 ->
MAlonzo.Code.Function.Bundles.T_Inverse_1052
du_True'45''8596'_130 v0
= case coe v0 of
MAlonzo.Code.Relation.Nullary.C__because__46 v1 v2
-> if coe v1
then coe
MAlonzo.Code.Function.Bundles.du_mk'8596''8242'_1386
(coe
(\ v3 ->
coe MAlonzo.Code.Relation.Nullary.Reflects.du_invert_20 (coe v2)))
(coe (\ v3 -> coe MAlonzo.Code.Agda.Builtin.Unit.C_tt_8)) erased
erased
else coe
seq (coe v2)
(coe
MAlonzo.Code.Function.Bundles.du_mk'8596''8242'_1386 erased
(coe
MAlonzo.Code.Relation.Nullary.Reflects.du_invert_20
(coe MAlonzo.Code.Relation.Nullary.C_of'8319'_26))
erased erased)
_ -> MAlonzo.RTE.mazUnreachableError