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

Function good_level_comp3

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

Source from the content-addressed store, hash-verified

239 /// imax 2 1 = max 2 1 = 2, so Sort(imax 2 1) = Sort 2. Sort 2 : Sort 3.
240 #[test]
241 fn good_level_comp3() {
242 let mut env = KEnv::<Meta>::new();
243 let ty = sort(usucc(usucc(usucc(uzero())))); // Sort 3
244 let val = sort(uimax(usucc(usucc(uzero())), usucc(uzero()))); // Sort (imax 2 1)
245 let (id, c) =
246 mk_defn("levelComp3", 0, vec![], ty, val, ReducibilityHints::Opaque);
247 env.insert(id.clone(), c);
248 check_accepts(&mut env, &id);
249 }
250
251 /// levelComp4.{u} : Type 0 := Sort (imax u 0)
252 /// imax u 0 = 0 for all u (second arg is zero), so Sort(imax u 0) = Prop.

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