MCPcopy Create free account
hub / github.com/argumentcomputer/ix / def_eq_const_same

Function def_eq_const_same

crates/kernel/src/def_eq.rs:1881–1887  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1879
1880fn compact_def_eq_head<M: KernelMode>(e: &KExpr<M>) -> String {
1881 let (head, args) = collect_app_spine(e);
1882 let base = match head.data() {
1883 ExprData::Var(i, _, _) => format!("#{i}"),
1884 ExprData::FVar(id, _, _) => format!("{id}"),
1885 ExprData::Sort(u, _) => format!("Sort({u})"),
1886 ExprData::Const(id, us, _) => format!("{id}.{{{}}}", us.len()),
1887 ExprData::App(..) => "app".to_string(),
1888 ExprData::Lam(..) => "lam".to_string(),
1889 ExprData::All(..) => "forall".to_string(),
1890 ExprData::Let(..) => "let".to_string(),

Callers

nothing calls this directly

Calls 3

env_with_idFunction · 0.70
cnstFunction · 0.70
mk_idFunction · 0.70

Tested by

no test coverage detected