Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jul 21, 2021
1 parent e5c0106 commit 7b659c6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions HB/instance.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -312,16 +312,7 @@ optimize-class-body TGR NParams (let _ _ MBo R) R1 Clauses :- std.do! [
].
optimize-class-body _ _ (app L) (app L) [].

pred term-size i:term, i:int, o:int.
term-size (app L) N M :- !, std.fold L N term-size M.
term-size (fun _ T F) N M :- !,
(pi x\ term-size (F x) N M0),
term-size T M0 M1,
M is M1 + 1.
term-size _ N M :- M is N + 1.

pred declare-mixin-name i:term, o:term, o:list prop.
%declare-mixin-name T T [] :- {term-size T 0} < 2, !.
declare-mixin-name (global _ as T) T [].
declare-mixin-name T (global GR) [] :- mixin-mem T GR.
declare-mixin-name T T [] :- coq.safe-dest-app T (global GR) _, not (from _ _ GR).
Expand Down

0 comments on commit 7b659c6

Please sign in to comment.