Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ammkrn/nanoda
/ functions
Functions
297 in github.com/ammkrn/nanoda
⨍
Functions
297
◇
Types & classes
39
↓ 1 callers
Method
make_name
(&mut self, new_pos : usize, kind : char, ws : &mut SplitWhitespace)
src/parser.rs:190
↓ 1 callers
Method
make_quotient
(&mut self)
src/parser.rs:291
↓ 1 callers
Function
max3
(n1 : u16, n2 : u16, n3 : u16)
src/utils.rs:74
↓ 1 callers
Method
maybe_zero
(&self)
src/level.rs:276
↓ 1 callers
Method
mk_intro_minor_premise
(&self, motive : &Expr)
src/inductive.rs:378
↓ 1 callers
Method
mk_reduction_rule
`intro_idx` is just the position of this particular intro rule in the `intro_minors` seq
src/inductive.rs:420
↓ 1 callers
Method
name
(&self)
src/pretty/pretty_printer.rs:556
↓ 1 callers
Function
new_quot
()
src/quot.rs:28
↓ 1 callers
Method
parse_rest_string
(&mut self, ws : &mut SplitWhitespace)
src/parser.rs:143
↓ 1 callers
Method
parse_rest_usize
(&mut self, ws : &mut SplitWhitespace)
src/parser.rs:138
↓ 1 callers
Function
partial_is_pi
(loc : u32, item : T)
src/errors.rs:107
↓ 1 callers
Method
pp_app_core
(&self, e : &Expr)
src/pretty/pretty_printer.rs:234
↓ 1 callers
Method
pp_bare_binder
(&self, binding : &Binding)
src/pretty/pretty_printer.rs:124
↓ 1 callers
Method
pp_const_core
(&self, name : &Name, levels : &Vec<Level>)
src/pretty/pretty_printer.rs:302
↓ 1 callers
Method
pp_let_core
(&self, dom : &Binding, val : &Expr, body : &Expr)
src/pretty/pretty_printer.rs:322
↓ 1 callers
Method
pp_main
(&self, declar : &Declaration)
src/pretty/pretty_printer.rs:453
↓ 1 callers
Method
pp_sort_core
(&self, level : &Level)
src/pretty/pretty_printer.rs:292
↓ 1 callers
Method
recursive_calls
(&self, motive : &Expr, minor_premises : &Vec<Expr>,
src/inductive.rs:392
↓ 1 callers
Method
reduce_exps
The entry point for executing a single reduction step on two expressions.
src/tc.rs:217
↓ 1 callers
Method
remove_lc
(&self, target : &Name)
src/pretty/pretty_printer.rs:120
↓ 1 callers
Method
render_core
(&self, nest : usize, flatmode : bool,
src/pretty/components.rs:193
↓ 1 callers
Method
sanitize_name
(&self, n : &Name)
src/pretty/pretty_printer.rs:84
↓ 1 callers
Function
scope_err
(loc : u32)
src/errors.rs:96
↓ 1 callers
Method
swap_local_binding_name
Only used in the pretty printer.
src/expr.rs:236
↓ 1 callers
Method
telescope_core
(&self, binders : &[ParsedBinder], acc : &mut Vec<Doc>)
src/pretty/pretty_printer.rs:159
↓ 1 callers
Method
to_axiom
(&self)
src/env.rs:113
↓ 1 callers
Method
try_next
(&mut self, line : &str)
src/parser.rs:96
↓ 1 callers
Function
try_read_cwd
(suggestion : &PathBuf)
src/cli.rs:67
↓ 1 callers
Method
try_read_files
(&self)
src/cli.rs:61
↓ 1 callers
Function
try_read_pp_file
()
src/cli.rs:129
↓ 1 callers
Function
try_read_pp_options
()
src/cli.rs:98
↓ 1 callers
Method
unfold_pis
This unfolds consecutive applications of `Pi` into the "core" term, and a list of binders pulled from the Pi applications. This is one of the few plac
src/expr.rs:568
↓ 1 callers
Function
unique_const_names
For some expression `E`, traverse `E`, putting the `Name` field of any constant into a set `S`. This is only used once, when compiling a `Definition`;
src/expr.rs:762
↓ 1 callers
Function
unique_const_names_core
(n : &'l Expr, s : &'s mut HashSet<&'l Name>,
src/expr.rs:769
↓ 1 callers
Function
unique_univ_params_core
(lvl : &'l Level, acc : &'s mut HashSet<&'l Level>)
src/level.rs:303
↓ 1 callers
Function
univ_params_subset_core
(e : &'l Expr, s : &'s mut HashSet<&'l Level>)
src/expr.rs:814
↓ 1 callers
Method
whnf_lambda
(&mut self, mut f : &Expr, mut apps : Vec<&Expr>)
src/tc.rs:196
Method
as_text
(t : String)
src/pretty/components.rs:117
Method
eq_by_antisymm
Uses antisymmetry to determine whether two levels are equal (according to Lean's rules for sorts) ```pseudo (x ≤ y ∧ y ≤ x) → x = y ```
src/level.rs:251
Method
fmt
(&self, f : &mut std::fmt::Formatter)
src/parser.rs:29
Method
fmt
(&self, f : &mut std::fmt::Formatter)
src/name.rs:105
Method
fmt
(&self, f : &mut std::fmt::Formatter)
src/tc.rs:32
Method
fmt
(&self, f : &mut std::fmt::Formatter)
src/level.rs:347
Method
fmt
(&self, f : &mut std::fmt::Formatter)
src/expr.rs:103
Method
fn_
(&self)
src/pretty/components.rs:30
Function
foldr
(f : impl Fn(A, B) -> B, i : I, init : B)
src/utils.rs:24
Method
fork_env
(&self)
src/tc.rs:49
Method
fresh_name
Given a suggested prefix and a set of names we want to avoid collisions with, extend the suggestion with an incrementing integer until we get a name t
src/name.rs:50
Method
from
(x : Arc<InnerName>)
src/name.rs:79
Method
from
(x : Arc<InnerLevel>)
src/level.rs:329
Method
from
(x : InnerExpr)
src/expr.rs:701
Method
from
(s : &String)
src/pretty/components.rs:59
Method
from_str
(s : &str)
src/cli.rs:175
Method
get
(&self, e1 : &Expr, e2 : &Expr)
src/utils.rs:136
Method
get_type
(&self)
src/inductive.rs:121
Method
get_value
(&self, n : &Name)
src/reduction.rs:215
Method
hash
(&self, state : &mut H)
src/reduction.rs:43
Method
hash
(&self, state : &mut H)
src/expr.rs:616
Method
ihs
Create a declaration's inductive hypotheses
src/inductive.rs:364
Method
insert
(&mut self, e : Expr, ee : Expr, val : ShortCircuit)
src/utils.rs:148
Method
is_local
(&self)
src/expr.rs:194
Function
join_panic
(loc : u32)
src/errors.rs:90
Method
line
()
src/pretty/components.rs:109
Function
main
()
src/main.rs:54
Method
mk
(name: Name, univ_params: Arc<Vec<Level>>, ty: Expr, height: Opti
src/env.rs:98
Method
mk
(name : Name, ty : Expr, style : BinderStyle)
src/expr.rs:70
Method
nest
(&self, idx : usize)
src/pretty/components.rs:140
Method
new
(num_mods : usize)
src/reduction.rs:208
Method
new
(queue_handle : &'s ModQueue, env_handle : &'s Arc<RwLock<Env>>)
src/parser.rs:50
Method
new
(unsafe_unchecked : Option<bool>, env : Arc<RwLock<Env>>)
src/tc.rs:38
Method
new
(name : Name, univ_params : Arc<Vec<Level>>, ty : Expr)
src/env.rs:60
Method
new
(name: Name, univ_params: Arc<Vec<Level>>, type_: Expr, num_param
src/inductive.rs:66
Method
new
()
src/expr.rs:727
Method
new
(priority : usize, doc : Doc)
src/pretty/components.rs:280
Method
new
(options : Option<PPOptions>, env : &Arc<RwLock<Env>>)
src/pretty/pretty_printer.rs:25
Method
new_all_false
()
src/pretty/pretty_printer.rs:607
Method
new_default
()
src/pretty/pretty_printer.rs:619
Method
new_infix
(func : Name, priority : usize, op : String)
src/pretty/components.rs:21
Method
new_max
(doc : Doc)
src/pretty/components.rs:287
Method
new_nondef_rr
(locals : &[Expr], lhs : Expr, rhs : Expr,
src/reduction.rs:92
Method
new_postfix
(func : Name, priority : usize, op : String)
src/pretty/components.rs:25
Method
new_prefix
(func : Name, priority : usize, op : String)
src/pretty/components.rs:17
Method
new_rr
(lhs : Expr, rhs : Expr, def_eq_constraints : Vec<(Expr, Expr)>)
src/reduction.rs:54
Method
op
(&self)
src/pretty/components.rs:46
Method
parse_all
(s : String, queue_handle : &'s ModQueue, env_handle : &'s Arc<RwLock<Env>>)
src/parser.rs:79
Method
print_declar
(options : Option<PPOptions>, n : &Name, env : &Arc<RwLock<Env>>)
src/pretty/pretty_printer.rs:474
Method
priority
(&self)
src/pretty/components.rs:38
Function
render_expr
(e : &Expr, env : &Arc<RwLock<Env>>)
src/pretty/pretty_printer.rs:586
Method
render_expr
(&self, e : &Expr)
src/pretty/pretty_printer.rs:469
Function
ss_and
(ss1 : ShortCircuit, ss2 : ShortCircuit)
src/utils.rs:104
Function
ss_forall
(mut seq : impl Iterator<Item = ShortCircuit>)
src/utils.rs:97
Method
swap_name
(&self, other : Name)
src/expr.rs:88
Method
swap_name_and_ty
(&self, other_n : Name, other_t : Expr)
src/expr.rs:92
Function
univ_params_subset
Given some expression `E` and a set of levels `S_X`, collect all Level::Param elements in `E` into a set `S_E`, and determine whether or not `S_E` is
src/expr.rs:807
Method
with_capacity
(n : usize)
src/utils.rs:130
Method
with_capacity
(n : usize)
src/reduction.rs:23
Method
zero_width_line
()
src/pretty/components.rs:113
← previous
201–297 of 297, ranked by callers