{-# 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.Function.Metric.Nat.Structures 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.Sigma
import qualified MAlonzo.Code.Agda.Primitive
import qualified MAlonzo.Code.Data.Nat.Base
import qualified MAlonzo.Code.Function.Metric.Structures
import qualified MAlonzo.Code.Relation.Binary.Structures
d_IsProtoMetric_14 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsProtoMetric_14 = erased
d_IsPreMetric_18 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsPreMetric_18 = erased
d_IsQuasiSemiMetric_22 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsQuasiSemiMetric_22 = erased
d_IsSemiMetric_26 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsSemiMetric_26 = erased
d_IsMetric_30 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsMetric_30 = erased
d_0'8658''8776'_48 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
d_0'8658''8776'_48 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_0'8658''8776'_172
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))
d_antisym_50 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_antisym_50 = erased
d_cong_52 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_cong_52 = erased
d_isEquivalence_54 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsEquivalence_26
d_isEquivalence_54 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_isEquivalence_80
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_isPartialOrder_56 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialOrder_162
d_isPartialOrder_56 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_isPreMetric_58 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsPreMetric_96
d_isPreMetric_58 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))
d_isPreorder_60 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPreorder_70
d_isPreorder_60 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_isProtoMetric_62 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsProtoMetric_30
d_isProtoMetric_62 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))
d_isQuasiSemiMetric_64 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsQuasiSemiMetric_162
d_isQuasiSemiMetric_64 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))
d_isSemiMetric_66 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsSemiMetric_232
d_isSemiMetric_66 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318 (coe v0)
d_nonNegative_68 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_nonNegative_68 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_nonNegative_48
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_refl_70 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_refl_70 ~v0 ~v1 ~v2 ~v3 ~v4 v5 = du_refl_70 v5
du_refl_70 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_refl_70 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_refl_98
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_reflexive_72 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_reflexive_72 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_reflexive_82
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_sym_74 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_sym_74 = erased
d_trans_76 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_trans_76 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_trans_84
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_triangle_78 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_triangle_78 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_triangle_320 (coe v0)
d_'8776''45'isEquivalence_80 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsEquivalence_26
d_'8776''45'isEquivalence_80 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_'8776''8658'0_82 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_'8776''8658'0_82 = erased
d_'8764''45'resp'45''8776'_84 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
d_'8764''45'resp'45''8776'_84 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'45''8776'_84 v5
du_'8764''45'resp'45''8776'_84 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
du_'8764''45'resp'45''8776'_84 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'45''8776'_112
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_'8764''45'resp'691''45''8776'_86 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_'8764''45'resp'691''45''8776'_86 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'691''45''8776'_86 v5
du_'8764''45'resp'691''45''8776'_86 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_'8764''45'resp'691''45''8776'_86 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'691''45''8776'_106
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_'8764''45'resp'737''45''8776'_88 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_'8764''45'resp'737''45''8776'_88 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'737''45''8776'_88 v5
du_'8764''45'resp'737''45''8776'_88 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_'8764''45'resp'737''45''8776'_88 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'737''45''8776'_100
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_isPartialEquivalence_92 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
d_isPartialEquivalence_92 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_isPartialEquivalence_92 v5
du_isPartialEquivalence_92 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
du_isPartialEquivalence_92 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_isPartialEquivalence_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe v4))
d_refl_94 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny
d_refl_94 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_refl_34
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_reflexive_96 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
d_reflexive_96 ~v0 ~v1 ~v2 ~v3 ~v4 v5 = du_reflexive_96 v5
du_reflexive_96 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
du_reflexive_96 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
\ v5 v6 v7 ->
coe
MAlonzo.Code.Relation.Binary.Structures.du_reflexive_40
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe v4))
v5
d_sym_98 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_sym_98 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_sym_36
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_trans_100 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_trans_100 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_trans_38
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_isPartialEquivalence_104 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
d_isPartialEquivalence_104 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_isPartialEquivalence_104 v5
du_isPartialEquivalence_104 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
du_isPartialEquivalence_104 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
let v6
= MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe v5) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_isPartialEquivalence_42
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isEquivalence_80
(coe v6))
d_refl_106 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_refl_106 = erased
d_reflexive_108 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_reflexive_108 = erased
d_sym_110 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_sym_110 = erased
d_trans_112 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_trans_112 = erased
d_IsUltraMetric_114 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) -> (AgdaAny -> AgdaAny -> Integer) -> ()
d_IsUltraMetric_114 = erased
d_0'8658''8776'_132 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
d_0'8658''8776'_132 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_0'8658''8776'_172
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))
d_antisym_134 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_antisym_134 = erased
d_cong_136 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_cong_136 = erased
d_isEquivalence_138 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsEquivalence_26
d_isEquivalence_138 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_isEquivalence_80
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_isPartialOrder_140 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialOrder_162
d_isPartialOrder_140 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_isPreMetric_142 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsPreMetric_96
d_isPreMetric_142 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))
d_isPreorder_144 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPreorder_70
d_isPreorder_144 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_isProtoMetric_146 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsProtoMetric_30
d_isProtoMetric_146 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))
d_isQuasiSemiMetric_148 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsQuasiSemiMetric_162
d_isQuasiSemiMetric_148 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))
d_isSemiMetric_150 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Function.Metric.Structures.T_IsSemiMetric_232
d_isSemiMetric_150 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318 (coe v0)
d_nonNegative_152 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_nonNegative_152 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_nonNegative_48
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_refl_154 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_refl_154 ~v0 ~v1 ~v2 ~v3 ~v4 v5 = du_refl_154 v5
du_refl_154 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_refl_154 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_refl_98
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_reflexive_156 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_reflexive_156 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_reflexive_82
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_sym_158 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_sym_158 = erased
d_trans_160 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_trans_160 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_trans_84
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))))
d_triangle_162 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny -> AgdaAny -> MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_triangle_162 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_triangle_320 (coe v0)
d_'8776''45'isEquivalence_164 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsEquivalence_26
d_'8776''45'isEquivalence_164 v0
= coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0)))))
d_'8776''8658'0_166 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
AgdaAny -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_'8776''8658'0_166 = erased
d_'8764''45'resp'45''8776'_168 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
d_'8764''45'resp'45''8776'_168 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'45''8776'_168 v5
du_'8764''45'resp'45''8776'_168 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Agda.Builtin.Sigma.T_Σ_14
du_'8764''45'resp'45''8776'_168 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'45''8776'_112
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_'8764''45'resp'691''45''8776'_170 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_'8764''45'resp'691''45''8776'_170 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'691''45''8776'_170 v5
du_'8764''45'resp'691''45''8776'_170 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_'8764''45'resp'691''45''8776'_170 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'691''45''8776'_106
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_'8764''45'resp'737''45''8776'_172 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
d_'8764''45'resp'737''45''8776'_172 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_'8764''45'resp'737''45''8776'_172 v5
du_'8764''45'resp'737''45''8776'_172 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18 ->
MAlonzo.Code.Data.Nat.Base.T__'8804'__18
du_'8764''45'resp'737''45''8776'_172 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_'8764''45'resp'737''45''8776'_100
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170 (coe v5))
d_isPartialEquivalence_176 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
d_isPartialEquivalence_176 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_isPartialEquivalence_176 v5
du_isPartialEquivalence_176 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
du_isPartialEquivalence_176 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_isPartialEquivalence_42
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe v4))
d_refl_178 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny
d_refl_178 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_refl_34
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_reflexive_180 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
d_reflexive_180 ~v0 ~v1 ~v2 ~v3 ~v4 v5 = du_reflexive_180 v5
du_reflexive_180 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny ->
AgdaAny ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 -> AgdaAny
du_reflexive_180 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
\ v5 v6 v7 ->
coe
MAlonzo.Code.Relation.Binary.Structures.du_reflexive_40
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe v4))
v5
d_sym_182 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_sym_182 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_sym_36
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_trans_184 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny -> AgdaAny
d_trans_184 v0
= coe
MAlonzo.Code.Relation.Binary.Structures.d_trans_38
(coe
MAlonzo.Code.Function.Metric.Structures.d_'8776''45'isEquivalence_44
(coe
MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe
MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe
MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe
MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0))))))
d_isPartialEquivalence_188 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
d_isPartialEquivalence_188 ~v0 ~v1 ~v2 ~v3 ~v4 v5
= du_isPartialEquivalence_188 v5
du_isPartialEquivalence_188 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
MAlonzo.Code.Relation.Binary.Structures.T_IsPartialEquivalence_16
du_isPartialEquivalence_188 v0
= let v1
= MAlonzo.Code.Function.Metric.Structures.d_isSemiMetric_318
(coe v0) in
let v2
= MAlonzo.Code.Function.Metric.Structures.d_isQuasiSemiMetric_240
(coe v1) in
let v3
= MAlonzo.Code.Function.Metric.Structures.d_isPreMetric_170
(coe v2) in
let v4
= MAlonzo.Code.Function.Metric.Structures.d_isProtoMetric_104
(coe v3) in
let v5
= MAlonzo.Code.Function.Metric.Structures.d_isPartialOrder_42
(coe v4) in
let v6
= MAlonzo.Code.Relation.Binary.Structures.d_isPreorder_170
(coe v5) in
coe
MAlonzo.Code.Relation.Binary.Structures.du_isPartialEquivalence_42
(coe
MAlonzo.Code.Relation.Binary.Structures.d_isEquivalence_80
(coe v6))
d_refl_190 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer -> MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_refl_190 = erased
d_reflexive_192 ::
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
() ->
MAlonzo.Code.Agda.Primitive.T_Level_14 ->
(AgdaAny -> AgdaAny -> ()) ->
(AgdaAny -> AgdaAny -> Integer) ->
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_reflexive_192 = erased
d_sym_194 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_sym_194 = erased
d_trans_196 ::
MAlonzo.Code.Function.Metric.Structures.T_IsGeneralMetric_308 ->
Integer ->
Integer ->
Integer ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12 ->
MAlonzo.Code.Agda.Builtin.Equality.T__'8801'__12
d_trans_196 = erased