Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HigherOrderCO-archive/kind2-archive
/ functions
Functions
89 in github.com/HigherOrderCO-archive/kind2-archive
⨍
Functions
89
◇
Types & classes
12
↓ 48 callers
Method
parse_term
(&mut self, fid: u64, uses: &Uses)
src/term/parse.rs:74
↓ 14 callers
Function
cons
(vector: &im::Vector<A>, value: A)
src/term/mod.rs:96
↓ 14 callers
Function
shadow
Shadows a name on the uses map
src/book/mod.rs:23
↓ 8 callers
Method
load
Same as load, mutably adding to a 'book'
src/book/mod.rs:62
↓ 5 callers
Function
strip_extension
(filename: &str)
src/main.rs:96
↓ 4 callers
Function
load_book
(name: &str)
src/main.rs:64
↓ 2 callers
Method
as_adt
Interprets a λ-encoded Algebraic Data Type definition as an ADT struct.
src/sugar/mod.rs:389
↓ 2 callers
Method
desugar
Expands syntax sugars like Mch to proper λ-encodings.
src/term/mod.rs:359
↓ 2 callers
Method
flatten_into
Helper function.
src/show/mod.rs:95
↓ 2 callers
Function
generate_kindc
FIXME: not necessary, already on book
src/main.rs:27
↓ 2 callers
Method
parse_adt
(&mut self, fid: u64, uses: &Uses)
src/sugar/mod.rs:727
↓ 2 callers
Method
parse_match
MAT ::= match <name> = <term> { <name> : <term> <...> }: <term>
src/sugar/mod.rs:1026
↓ 2 callers
Function
run_kindc
(book: &Book, cmd: &str, file: &str)
src/main.rs:33
↓ 2 callers
Method
width
Sums the width of all children ropes, up to a limit.
src/show/mod.rs:166
↓ 1 callers
Method
add_all
Wraps an All around this term.
src/book/parse.rs:228
↓ 1 callers
Method
add_alls
Wraps many Lams around this term.
src/book/parse.rs:238
↓ 1 callers
Method
add_lam
Wraps a Lam around this term.
src/book/parse.rs:159
↓ 1 callers
Method
add_lams
Wraps many lams around this term. Linearizes when possible.
src/book/parse.rs:168
↓ 1 callers
Method
as_equal
Interprets as an Equality: - (((Equal _) a) b) Patterns: - (EQUAL a b) ::= (App (App (App (Var "Equal") _) a) b)
src/sugar/mod.rs:327
↓ 1 callers
Method
as_list
Interprets as a list: - (((List/cons _) x) (((List/cons _) y) ... (List/nil _))) Patterns: - (CONS head tail) ::= (App (App (App (Var "List/cons") Met
src/sugar/mod.rs:242
↓ 1 callers
Method
as_nat
Interprets as a Nat: - (Nat.succ (Nat.succ ... Nat.zero)) Patterns: - (SUCC pred) ::= (App (Var "Nat.succ") pred) - ZERO ::= (Var "Nat.zero")
src/sugar/mod.rs:200
↓ 1 callers
Function
check
(name: &str)
src/main.rs:43
↓ 1 callers
Method
clean
(&self)
src/term/mod.rs:252
↓ 1 callers
Function
compile_to_js
(name: &str)
src/main.rs:90
↓ 1 callers
Function
compile_to_kindc
(name: &str)
src/main.rs:84
↓ 1 callers
Method
count_implicits
Counts the number of implicit arguments of a term.
src/term/mod.rs:496
↓ 1 callers
Function
deps
(name: &str)
src/main.rs:72
↓ 1 callers
Method
expand_implicits
Desugars all definitions
src/book/mod.rs:97
↓ 1 callers
Method
get_file_id
Gets a file id from its name
src/book/mod.rs:110
↓ 1 callers
Method
get_file_name
Gets a file name from its id (FIXME: asymptotics)
src/book/mod.rs:121
↓ 1 callers
Method
get_free_vars
(&self, env: im::Vector<String>, free_vars: &mut BTreeSet<String>)
src/term/mod.rs:104
↓ 1 callers
Method
handle_unbound
Handles an unbound definition
src/book/mod.rs:57
↓ 1 callers
Function
normal
(name: &str, _level: u32)
src/main.rs:55
↓ 1 callers
Method
overshadow
(&mut self, name_map: &im::HashMap<String, String>, depth: &mut u64)
src/term/mod.rs:168
↓ 1 callers
Method
parse_book
Parses a whole file into a book.
src/book/parse.rs:139
↓ 1 callers
Method
parse_def
Parses a top-level definition (datatype or term)
src/book/parse.rs:45
↓ 1 callers
Method
parse_info
(&mut self)
src/info/parse.rs:5
↓ 1 callers
Method
parse_list
(&mut self, fid: u64, uses: &Uses)
src/sugar/mod.rs:302
↓ 1 callers
Method
parse_oper
(&mut self)
src/term/parse.rs:5
↓ 1 callers
Method
parse_term_end
(&mut self, fid: u64, uses: &Uses, term: Term)
src/term/parse.rs:466
↓ 1 callers
Method
parse_term_ini
(&mut self, fid: u64, uses: &Uses)
src/term/parse.rs:80
↓ 1 callers
Method
parse_use
Parses a top-level use-declaration
src/book/parse.rs:6
↓ 1 callers
Method
parse_uses
Parses many top-level use-declarations
src/book/parse.rs:33
↓ 1 callers
Method
to_js
(&self)
src/book/compile.rs:21
↓ 1 callers
Method
to_js_go
(&self)
src/term/compile.rs:223
↓ 1 callers
Method
to_kindc
(&self)
src/book/compile.rs:12
Function
_name
(numb: usize)
src/term/mod.rs:85
Method
boot
Creates a book, loading a term, its dependencies, and stdlib
src/book/mod.rs:43
Method
call
Allocs a new Call with given children.
src/show/mod.rs:49
Method
dec
Allocs a new Dec node.
src/show/mod.rs:79
Method
expand_implicits
Expands implicit calls, applying them to the correct number of metavars. When a variable name ends with "!", we fill erased arguments with metas.
src/term/mod.rs:423
Method
flatten
Flattens the Show structure into a string, respecting indentation and width limits.
src/show/mod.rs:84
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/book/show.rs:12
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/term/show.rs:20
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/sugar/mod.rs:291
Method
from_u64
(src: u64)
src/term/mod.rs:77
Method
glue
Allocs a new Glue with given children.
src/show/mod.rs:59
Method
inc
Allocs a new Inc node.
src/show/mod.rs:74
Method
line
Allocs a new Line node.
src/show/mod.rs:64
Method
load
Loads an ADT from its λ-encoded file.
src/sugar/mod.rs:662
Function
main
()
build.rs:5
Function
main
()
src/main.rs:104
Function
main
()
src/kindc.rs:4
Method
many
Allocs a new Many node.
src/show/mod.rs:44
Method
new
Creates an empty book
src/book/mod.rs:35
Method
new
(fid: u64, ini: u64, end: u64)
src/term/mod.rs:69
Method
new_adt
Builds a λ-encoded Algebraic Data Type definition from an ADT struct.
src/sugar/mod.rs:519
Method
new_equal
Builds an equal chain
src/sugar/mod.rs:346
Method
new_list
Builds a chain of applications of List/cons and List/nil from a Vec<Box<Term>>
src/sugar/mod.rs:272
Method
new_match
Builds a λ-encoded pattern-match.
src/sugar/mod.rs:828
Method
new_nat
Nats have a dedicated term, for type-checking efficiency
src/sugar/mod.rs:226
Method
no_lines
Checks if there is no `Line` in a vector of ropes.
src/show/mod.rs:189
Method
parse_equal
(&mut self, fid: u64, uses: &Uses)
src/sugar/mod.rs:372
Method
parse_infos
(input: &str)
src/info/mod.rs:75
Method
pile
Allocs a new Pile with given children.
src/show/mod.rs:54
Method
pretty
(&self, book: &Book)
src/info/mod.rs:39
Method
semi
Allocs a new Semi node.
src/show/mod.rs:69
Method
show
(&self)
src/book/show.rs:6
Method
show
(&self)
src/term/show.rs:8
Method
show
(&self)
src/info/show.rs:5
Method
text
Allocs a new Text node from a string slice.
src/show/mod.rs:39
Method
to_hvm2
(&self)
src/book/compile.rs:4
Method
to_hvm2
(&self)
src/term/compile.rs:7
Method
to_hvm2_name
(name: &str)
src/term/compile.rs:118
Method
to_js
(&self)
src/term/compile.rs:212
Method
to_js_name
(name: &str)
src/term/compile.rs:290
Method
to_kindc
(&self, env: im::Vector<String>, met: &mut usize)
src/term/compile.rs:127
Method
to_kindc_name
(name: &str)
src/term/compile.rs:179
Method
to_u64
(&self)
src/term/mod.rs:73