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

Function good_level_comp2

crates/kernel/src/tutorial/basic.rs:228–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 /// Type : Sort 2 is correct.
227 #[test]
228 fn good_level_comp2() {
229 let mut env = KEnv::<Meta>::new();
230 let ty = sort(usucc(usucc(uzero()))); // Sort 2
231 let val = sort(uimax(uzero(), usucc(uzero()))); // Sort (imax 0 1)
232 let (id, c) =
233 mk_defn("levelComp2", 0, vec![], ty, val, ReducibilityHints::Opaque);
234 env.insert(id.clone(), c);
235 check_accepts(&mut env, &id);
236 }
237
238 /// levelComp3 : Sort 3 := Sort (imax 2 1)
239 /// imax 2 1 = max 2 1 = 2, so Sort(imax 2 1) = Sort 2. Sort 2 : Sort 3.

Callers

nothing calls this directly

Calls 8

sortFunction · 0.85
usuccFunction · 0.85
uzeroFunction · 0.85
uimaxFunction · 0.85
mk_defnFunction · 0.85
check_acceptsFunction · 0.85
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected