<jupyter_start><jupyter_text>Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\rightarrow$Restart) and then **run all cells** (in the menubar, select Cell$\rightarrow$Run All).Make sure you fill in any place that says `YOUR CODE HERE` or "YOUR ANSWER HERE", as well as your name below:<jupyter_code>let name = ""
let rollno = ""<jupyter_output><empty_output><jupyter_text>Important notes about grading:1. **Compiler errors:** All code you submit must compile. Programs that do not compile will probably receive an automatic zero. If you are having trouble getting your assignment to compile, please visit consulting hours. If you run out of time, it is better to comment out the parts that do not compile, than hand in a more complete file that does not compile.2. **Late assignments:** Please carefully review the course website's policy on late assignments, as all assignments handed in after the deadline will be considered late. Verify on moodle that you have submitted the correct version, before the deadline. Submitting the incorrect version before the deadline and realizing that you have done so after the deadline will be counted as a late submission.  Problem 1Implement predecessor function```ocamlpred : int -> int```which returns the successor of the given integer.<jupyter_code>let pred x = 
  (* YOUR CODE HERE *)
  raise (Failure "Not implemented")
assert (pred 1 = 0)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06804536357571714, 'fraction_numerical': 0.00333555703802535, 'mean_word_length': 5.2761506276150625, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '226151', 'license': 'MIT', 'n_tokens_mistral': 387, 'n_tokens_neox': 367, 'n_words': 209, 'path': 'lectures/assignments/assignment0/assignment0.ipynb', 'repo_name': 'amitpatra/cs3100_m20', 'size': '1499'}