Skip to content

Commit

Permalink
remove entagle code gen from index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiek committed Oct 15, 2024
1 parent 3ebec66 commit 0db4bfd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion Deduce.lark
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ ident: IDENT -> ident
| type_hi

?type_hi: IDENT -> type_name
| "int" -> int_type
| "bool" -> bool_type
| "type" -> type_type
| "(" type ")" -> paren
Expand Down
2 changes: 1 addition & 1 deletion README.thm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This file was automatically generated by Deduce.
This file summarizes the theorems proved in the file:
./README.pf
README.pf

search_take: (all xs:List<Nat>. (all y:Nat. not (y ∈ set_of(take(search(xs, y), xs)))))

9 changes: 0 additions & 9 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,3 @@ you can use instead.
-->
<!-- LocalWords: contra foo sx xy dist mult
-->

<!--
``` {.deduce file=README.pf}
import List
import Set
<<search_take>>
```
-->
6 changes: 3 additions & 3 deletions proof_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# and run the print and assert statements.

from abstract_syntax import *
from error import error, warning, get_verbose, set_verbose
from error import error, warning, error_header, get_verbose, set_verbose

imported_modules = set()
checked_modules = set()
Expand Down Expand Up @@ -1515,8 +1515,8 @@ def type_check_call_helper(loc, new_rator, args, env, recfun, subterms, ret_ty,
+ '\n\t'.join([str(ty) for (x,ty) in overloads]))
elif num_matches > 1:
error(loc, 'in call to ' + str(new_rator) + '\n'\
+ 'ambiguous overloads:\n\t' \
+ '\n\t'.join([str(ty) for (x,ty) in overloads]))
+ 'ambiguous overloads:\n' \
+ '\n'.join([error_header(ty.location) + str(ty) for (x,ty) in overloads]))
else:
return new_call
case FunctionType(loc2, typarams, param_types, return_type):
Expand Down

0 comments on commit 0db4bfd

Please sign in to comment.