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

Function good_level_comp5

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

Source from the content-addressed store, hash-verified

273 /// Sort u : Type u = Sort (u+1).
274 #[test]
275 fn good_level_comp5() {
276 let mut env = KEnv::<Meta>::new();
277 let ty = sort(usucc(param(0))); // Type u = Sort (u+1)
278 let val = sort(uimax(param(0), param(0))); // Sort (imax u u)
279 let (id, c) = mk_defn(
280 "levelComp5",
281 1,
282 vec![mk_name("u")],
283 ty,
284 val,
285 ReducibilityHints::Abbrev,
286 );
287 env.insert(id.clone(), c);
288 check_accepts(&mut env, &id);
289 }
290
291 /// imax1 : (p : Prop) → Prop := fun p => Type → p
292 /// Inside the lambda, p : Prop, so (Type → p) : Sort(imax 2 1) but

Callers

nothing calls this directly

Calls 8

sortFunction · 0.85
usuccFunction · 0.85
uimaxFunction · 0.85
mk_defnFunction · 0.85
check_acceptsFunction · 0.85
paramFunction · 0.50
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected