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

Function bad_proj_prop2

crates/kernel/src/tutorial/defeq.rs:1927–1936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1925
1926 /// Helper: build test `name : PropStructure.{0,1} → resType := fun x => .proj PropStructure idx x`
1927 fn mk_prop_structure_proj_test(
1928 env: &mut KEnv<Meta>,
1929 name: &str,
1930 res_ty: ME,
1931 idx: u64,
1932 ) -> MId {
1933 let ps01 = cnst("PropStructure", &[uzero(), usucc(uzero())]);
1934 let ty = pi(ps01.clone(), res_ty);
1935 let val = nlam("x", ps01, ME::prj(mk_id("PropStructure"), idx, var(0)));
1936 let (id, c) = mk_defn(
1937 name,
1938 0,
1939 vec![],

Callers

nothing calls this directly

Calls 6

prop_structure_envFunction · 0.85
usuccFunction · 0.85
uzeroFunction · 0.85
check_rejectsFunction · 0.85
cnstFunction · 0.50

Tested by

no test coverage detected