| 4763 | let addr = Address::hash(&v.to_le_bytes()); |
| 4764 | super::super::testing::ME::nat(v, addr) |
| 4765 | } |
| 4766 | |
| 4767 | /// Build a Nat env with Nat, Nat.zero, Nat.succ, Nat.rec, and Nat.sub. |
| 4768 | /// Nat.sub is defined as a primitive that the kernel's try_reduce_nat handles, |
| 4769 | /// but also has a delta-unfoldable body using Nat.rec (to test reduction order). |
| 4770 | fn nat_env() -> KEnv<Anon> { |
| 4771 | use super::super::constant::RecRule; |
| 4772 | |
| 4773 | let mut env = KEnv::new(); |
| 4774 | let block = mk_id("Nat"); |
| 4775 | |
| 4776 | // Nat : Sort 1 |
| 4777 | env.insert( |