ArticleslgStudy

science

RecycleUnits

RecycleUnits is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand RecycleUnits rather than just read about it. In short: In mathematical logic, proof compression by RecycleUnits is a method for compressing propositional logic resolution proofs. Its main idea is to make use of intermediate (e.g. non input) proof results being unit clauses, i.e. clauses containing only one literal.

Key takeaways

  • RecycleUnits belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect RecycleUnits to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of RecycleUnits from memory before moving on to harder problems.

Reference excerpt

In mathematical logic, proof compression by RecycleUnits is a method for compressing propositional logic resolution proofs. Its main idea is to make use of intermediate (e.g. non input) proof results being unit clauses, i.e. clauses containing only one literal. Certain proof nodes can be replaced with the nodes representing these unit clauses. After this operation the obtained graph is transformed into a valid proof. The output proof is shorter than the original while being equivalent or stronger.

Algorithms The algorithms treat resolution proofs as directed acyclic graphs, where each node is labeled by a clause and each node has either one or two predecessors called parents. If a node has two parents it is also labeled with a propositional variable called the pivot, which was used to compute the nodes clause using resolution. The following algorithm describes the replacement of nodes. It is assumed that in the resolution proof for all non leaf nodes with two parent nodes, the left parent node contains the positive and the right parent node the negative pivot variable. The algorithm first iterates over all non leaf unit clauses and then over all non ancestor nodes of the proof. If the node's pivot element is the variable of the present unit clause's literal, one of the parent nodes can be replaced by the node corresponding to the unit clause. Because of the above assumption, if the literal is equal to the pivot, the left parent contains the literal and can be replaced by the unit clause node. If the literal is equal to the negation of the pivot the right parent is replaced.

1 function RecycleUnits(Proof P {\displaystyle P} ): 2 Let U {\displaystyle U} be the set of non leaf nodes representing unit clauses 3 for each u ∈ U {\displaystyle u\in U} do 4 Mark the ancestors of u 5 for each unmarked n ∈ P {\displaystyle n\in P} do 6 let p {\displaystyle p} be the pivot variable of n {\displaystyle n}

7 let l {\displaystyle l} be the literal contained in the clause of u {\displaystyle u}

8 if p == l {\displaystyle p==l} then 9 replace the left parent of n {\displaystyle n} with u {\displaystyle u}

10 else if ¬ p == l {\displaystyle \neg p==l} then 11 replace the right parent of n {\displaystyle n} with u {\displaystyle u}

In general after execution of this function the proof won't be a legal proof anymore. The following algorithm takes the root node of a proof and constructs a legal proof out of it. The computation begins with recursively calls to the children nodes. In order to minimize the algorithm calls, it is beingt kept track of which nodes were already visited. Note that a resolution proof can be seen as a general directed acyclic graph as opposed to a tree. After the recursive call the clause of the present node is updated. While doing so four different cases can occur. The present pivot variable can occur in both, the left, the right or in none of the parent nodes. If it occurs in both parent nodes the clause is calculated as resolvent of the parent clauses. If it is not present in one of the parent nodes the clause of this parent can be copied. If it misses in both parents one has to choose heuristically.

1 function ReconstructProof(Node n {\displaystyle n} ): 3 if n {\displaystyle n} is visited return 4 mark n {\displaystyle n} as visited 5 if n {\displaystyle n} has no parents return 6 else if n {\displaystyle n} has only one parent x {\displaystyle x} then 7 ReconstructProof( x {\displaystyle x} ) 8 n {\displaystyle n} .Clause = x {\displaystyle x} .Clause 9 else 10 let l {\displaystyle l} be the left and r {\displaystyle r} the right parent node 11 let p {\displaystyle p} be the pivot variable used to compute n {\displaystyle n}

12 ReconstructProof( l {\displaystyle l} ) 13 ReconstructProof( r {\displaystyle r} ) 14 if p ∈ l . C l a u s e {\displaystyle p\in l.Clause} and p ∈ r . C l a u s e {\displaystyle p\in r.Clause}

15 n {\displaystyle n} .Clause = Resolve( l {\displaystyle l} , r {\displaystyle r} , p {\displaystyle p} ) 16 else if p ∈ l . C l a u s e {\displaystyle p\in l.Clause} and p ∉ r . C l a u s e {\displaystyle p\notin r.Clause}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with RecycleUnits

Start with the simplest possible case. Write down what RecycleUnits claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to RecycleUnits before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about RecycleUnits ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of RecycleUnits

In research
RecycleUnits appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses RecycleUnits in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
RecycleUnits is common in secondary-school and first-year university syllabi. It links to neighbouring topics Methods of proof, so understanding it makes those chapters shorter.
In everyday life
Look for RecycleUnits outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study RecycleUnits in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what RecycleUnits means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain RecycleUnits out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is RecycleUnits in simple terms?

In mathematical logic, proof compression by RecycleUnits is a method for compressing propositional logic resolution proofs. Its main idea is to make use of intermediate (e.g. non input) proof results being unit clauses, i.e. clauses containing only one literal.

Why does RecycleUnits matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study RecycleUnits?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on RecycleUnits.

Tags

  • Methods of proof

Keep exploring