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

Function expr_proj_matches

crates/kernel/src/congruence.rs:653–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

651
652 #[test]
653 fn expr_proj_matches() {
654 let name = mk_name("MyStruct");
655 let addr = mk_addr("MyStruct");
656 let r = resolver_with(&[(name.clone(), addr.clone())]);
657
658 let lean_e = env::Expr::proj(name.clone(), n(1), env::Expr::bvar(n(0)));
659 let zero_e = KExpr::<Anon>::prj(KId::new(addr, ()), 1, KExpr::var(0, ()));
660 expr_congruent(&lean_e, &zero_e, &r).unwrap();
661 }
662
663 #[test]
664 fn expr_proj_field_mismatch_fails() {

Callers

nothing calls this directly

Calls 7

resolver_withFunction · 0.85
expr_congruentFunction · 0.85
mk_nameFunction · 0.70
mk_addrFunction · 0.70
nFunction · 0.70
varFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected