recognise nats other than 0 in eq checker

This commit is contained in:
rhiannon morris 2023-12-21 17:48:12 +01:00
parent 0fdd4741be
commit 7afcbfe258

View file

@ -305,10 +305,10 @@ namespace Term
(E _, Nat 0 {}) => clashT s.loc ctx nat s t (E _, Nat 0 {}) => clashT s.loc ctx nat s t
(E _, Succ {}) => clashT s.loc ctx nat s t (E _, Succ {}) => clashT s.loc ctx nat s t
(Nat 0 {}, t) => wrongType t.loc ctx nat t (Nat {}, t) => wrongType t.loc ctx nat t
(Succ {}, t) => wrongType t.loc ctx nat t (Succ {}, t) => wrongType t.loc ctx nat t
(E _, t) => wrongType t.loc ctx nat t (E _, t) => wrongType t.loc ctx nat t
(s, _) => wrongType s.loc ctx nat s (s, _) => wrongType s.loc ctx nat s
compare0' defs ctx sg str@(STRING {}) s t = local_ Equal $ compare0' defs ctx sg str@(STRING {}) s t = local_ Equal $
case (s, t) of case (s, t) of