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

Function env_with_id

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

Source from the content-addressed store, hash-verified

1774 b: &KExpr<M>,
1775 ) {
1776 let Some(filter) = IX_PROJ_DELTA_TRACE.as_ref() else {
1777 return;
1778 };
1779 if !self.debug_label_matches_env() {
1780 return;
1781 }
1782 let id_s = id.to_string();
1783 if !filter.is_empty() && !id_s.contains(filter) {
1784 return;
1785 }
1786 log::info!(
1787 "[proj-delta] const={} depth={} phase={} proj={}.{} a={} b={}",
1788 self.debug_label.as_deref().unwrap_or("<unknown>"),
1789 self.def_eq_depth,
1790 phase,
1791 id,
1792 field,
1793 compact_def_eq_expr(a),
1794 compact_def_eq_expr(b)
1795 );
1796 }
1797
1798 /// If the head of `e` is a projection, try reducing it via whnf_no_delta.
1799 /// Returns the reduced form if it changed, None otherwise (lean4lean tryUnfoldProjApp).

Callers 12

def_eq_ptr_eqFunction · 0.70
def_eq_sort_sameFunction · 0.70
def_eq_sort_diffFunction · 0.70
def_eq_const_sameFunction · 0.70
def_eq_const_diff_addrFunction · 0.70
def_eq_lam_structuralFunction · 0.70
def_eq_all_structuralFunction · 0.70
def_eq_betaFunction · 0.70
def_eq_delta_unfoldFunction · 0.70
def_eq_cache_hitFunction · 0.70

Calls 5

sort0Function · 0.70
lamFunction · 0.70
varFunction · 0.70
mk_idFunction · 0.70
insertMethod · 0.45

Tested by 12

def_eq_ptr_eqFunction · 0.56
def_eq_sort_sameFunction · 0.56
def_eq_sort_diffFunction · 0.56
def_eq_const_sameFunction · 0.56
def_eq_const_diff_addrFunction · 0.56
def_eq_lam_structuralFunction · 0.56
def_eq_all_structuralFunction · 0.56
def_eq_betaFunction · 0.56
def_eq_delta_unfoldFunction · 0.56
def_eq_cache_hitFunction · 0.56