Mystery procedure

Can you work out what this procedure is doing?
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem

 


What does this procedure do? Prove it.

 

 

Image
Mystery Procedure