How Do Weights and Degrees Influence the Structure of Logical Formulas?

  • Thread starter honestrosewater
  • Start date
  • Tags
    Proofs
In summary: I don't know what he's talking about. I don't know what he means by "define a property Q of natural numbers" or why he's doing that.The property P is, as I understand it, the property of formulas that have weights of -1. He says, "For example, in order to show that all formulas having weight < 3 have property P, we define Qn to be \forall B (deg B = n \Rightarrow PB)." Does he mean deg(B) \leq n? But then I don't get why he's doing that or how it works.It's been a while since I've done induction, so I'm not entirely sure, but I think what he's doing
  • #1
honestrosewater
Gold Member
2,143
6
Definitions:
Briefly, for the formal, object language L, there are two mutually exclusive categories of primitive symbols: (i) an infinite set of propositional symbols and (ii) two distinct connectives, ~ (negation) and -> (implication).
If s_1, s_2, ..., s_l are (not necessarily distinct) primitive symbols and l is a natural number, s_1s_2...s_l is a string of length l. The empty string has length 0.
Formulas are strings constructed as follows:
(1) A string consisting of a single occurence of a propositional symbol is a formula (called a prime formula).
(2) If B is a formula, ~B is a formula (called a negation formula).
(3) If B and C are formulas, ->BC is a formula (called an implication formula (B is the antecedent)).
(Formulas will be denoted by B, C, D, ...)
A propositional symbol occurring in B is called a prime component of B.
The degree of complexity of B, deg B, is the total number of occurences of connectives in B.
Assign to each primitve symbol s a weight w(s) by stipulating:
if s is a propositional symbol, w(s) = -1, w(~) = 0, w(->) = 1.
Assign to each string, where s_1, s_2, ..., s_l are primitive symbols, the weight:
w(s_1s_2...s_l) = w(s_1) + w(s_2) + ... + w(s_l).
Since every B is a string, every B has a weight, w(B).

Problems:
Show that, for any B,
(i) w(B) = -1;
(ii) if B is the string s_1s_2...s_l and k < l, w(s_1s_2...s_k) >= 0.
(iii) Show that if B is an implication formula, B = ->CD, then ->C is the shortest non-empty initial segment of B whose weight is 0.
______
I think I can handle (ii) and (iii) once I get (i). The book says to prove (i) by strong induction on deg B, but I don't know how to begin (I didn't really follow when he ran through induction at the beginning).
Strong induction, where n and m range over natural numbers {0, 1, 2, ...}:
[tex]\frac{\forall n [\forall m < n (Pm) \Rightarrow Pn]}{\forall n (Pn)}[/tex]
I see that for all B, B has length >= 1, and, when B has length = 1, deg B = 0 and w(B) = -1, by definition.
I'm not yet comfortable with the notation, but I think I need to define a property P of formulas:
[tex]P\beta \Leftrightarrow_{df} w(\beta) = -1[/tex]
and a property Q of natural numbers:
[tex]Qn \Leftrightarrow_{df} \forall \beta\ deg \beta = n (P\beta)[/tex]
so that [tex]\forall \beta (P\beta) \Leftrightarrow \forall n (Qn)[/tex].
And I need to deduce Qn from [tex]\forall m < n (Qm)[/tex], knowing that PB holds for Q0.
Is that correct so far?
 
Physics news on Phys.org
  • #2
If length(B) = 1, w(B) = -1. If length(B) = 2, then B = ~C for some propositional symbol C (you can easily check that B must take this form). Then w(B) = w(~C) = w(~) + w(C) = 0 - 1 = -1. Suppose that [itex]\forall B\, (length (B) \leq k) \Rightarrow (w(B) = -1)[/itex]. Then all statements C such that length(C) = k+1 are either of the form C = ~D, or C = ->EF, where clearly length(E) + length(F) = deg(D) = k, so length(E), length(F), length(D) < k.

If C = ~D, w(C) = w(~) + w(D) = 0 - 1 = -1 (note w(D) = -1 by the inductive hypothesis).
If C = ->EF, w(C) = w(->EF) = w(->) + w(E) + w(F) = 1 - 1 - 1 = -1 (again by the inductive hypothesis).
 
Last edited:
  • #3
For (ii), you know that w(B) = -1, so if [itex]w(s_1\dots s_k) < 0[/itex], then [itex]w(s_1\dots s_k) \leq -1[/itex], therefore [itex]w(s_{k+1}\dots s_l) \geq 0[/itex]. This is only possible if the number of "->" is greater than or equal to the number of propositional symbols in the substring [itex]s_{k+1}\dots s_l[/itex], but this is not possible. For k < n < l, let n be the least number such that [itex]s_n[/itex] is a "->". Show that [itex]s_n\dots s_l[/itex] is a formula, thus its weight is -1, and thus it has one less "->" than propositional symbols. So it is impossible for any k for [itex]w(s_{k+1}\dots s_l) \geq 0[/itex], proving that [itex]w(s_1\dots s_k) \geq 0[/itex].

For (iii), use the fact that w(->) = 1, w(C) = -1, so w(->C) = 0, but any "relevant" substring of that, ->C' will have weight

w(->C') = w(->) + w(C')
w(->C') = 1 + w(C')
w(->C') > 1 + 0 ... by (ii)
w(->C') > 1
w(->C') != 0.
 
Last edited:
  • #4
Wow, thanks. It makes much more sense to prove (i) with length. I'll post my work soon.
Just curious- how did you decide how to prove (ii)? I can usually see certain facts, that certain things will happen in such a way, but I'm not always sure what to do with them.
BTW, I like the < :cool:
 
Last edited:
  • #5
For (ii), I don't know how I decided to do what I did, but I can give you reasons as to why you might think to do it that way. 1) It is a proof by contradiction, which I think tends to be my first instinct toward proving something. 2) There are two relevant substrings here, the one containing the first k symbols, and the one containg the rest. The one containing the rest is more likely to be meaningful, i.e. more likely to be a formula and/or contain one, and therefore you are more likely to be able to use what you already know (like the rules for what counts as a formula, and what you proved in (i)).

Also, (ii) says something is > 0. Where does that number come from? Well, you know how that number is found, so what makes it greater than or equal to zero? Since we're dealing only with adding 0, 1, or -1, it's pretty easy to figure that out.
 
  • #6
Ugh, I'm having problems figuring out what proving (i) by strong induction on deg(B) even means. He says eariler, "We shall often wish to prove that all formulas B have some property P- briefly, [itex]\forall B (PB)[/itex]. This may be done by [strong] induction on deg(B), as follows. Define a property Q of natural numbers by stipulating that Q holds for a given number n iff P holds for all formulas B such that deg(B) = n. Then clearly [itex]\forall B (PB)[/itex] is equivalent to [itex]\forall n (Qn)[/itex]."
I take this to mean that I need:
(1) [tex]Qn \Leftrightarrow \forall B\ deg(B) = n (PB)[/tex].
I'm trying to match his form, and, in his formulation of the "Strong Principle of Induction":
(2) [tex]\frac{\forall n [\forall m < n (Pm) \Rightarrow Pn]}{\forall n (Pn)}[/tex],
he says that [tex]\forall m < n (Pm)[/tex] means "all numbers m smaller than n have the property P" (he actually omits the parentheses around propositional functions but I prefer including them). So, in (1), [tex]\forall B\ deg(B) = n (PB)[/tex] would mean "all formulas B with deg(B) = n have the property P". Does that not have the same meaning as the indigo phrase above?
For (i), the property I want to prove B has is [w(B) = -1], so (1) becomes:
(3) [tex]Qn \Leftrightarrow \forall B\ deg(B) = n (w(B) = -1)[/tex],
but I can't figure out how to incorporate (3) into (2). I think the Qn in (3) should replace the Pm in (2), but I don't see how to do this.
Forgetting (1) and (3) and just thinking it through, I come up with:
(4) [tex]\frac{\forall B [\forall C deg(C) < deg(B) (w(C) = -1) \Rightarrow (w(B) = -1)]}{\forall B (w(B) = -1)}[/tex].
(4) seems to say what I want to prove. I'm further inclined to think that (4) is correct because he says, still speaking about the outline quoted above, "Stated in terms of P rather than Q, this is tantamount to saying: if we deduce PB (for arbitrary B) from the induction hypothesis that PC holds for all formulas B such that deg(C) < deg(B), then it follows that [itex]\forall B (PB)[/itex]." So what am I missing?
 
  • #7
AKG said:
For (ii), I don't know how I decided to do what I did, but I can give you reasons as to why you might think to do it that way. 1) It is a proof by contradiction, which I think tends to be my first instinct toward proving something. 2) There are two relevant substrings here, the one containing the first k symbols, and the one containg the rest. The one containing the rest is more likely to be meaningful, i.e. more likely to be a formula and/or contain one, and therefore you are more likely to be able to use what you already know (like the rules for what counts as a formula, and what you proved in (i)).

Also, (ii) says something is > 0. Where does that number come from? Well, you know how that number is found, so what makes it greater than or equal to zero? Since we're dealing only with adding 0, 1, or -1, it's pretty easy to figure that out.
Great, thanks.
 

FAQ: How Do Weights and Degrees Influence the Structure of Logical Formulas?

What is the purpose of proving weights of wffs?

The purpose of proving weights of wffs is to determine the complexity of a logical formula, as well as its relationship to other formulas. This can help in understanding the structure and behavior of logical systems.

How are weights assigned to wffs?

Weights are usually assigned based on the number of logical connectives and quantifiers present in a formula. Each connective or quantifier is assigned a certain weight, and the total weight of the formula is calculated by adding up these individual weights.

What is the significance of proving weights of wffs?

Proving weights of wffs allows for a rigorous analysis of logical formulas, and can provide insights into the complexity and structure of logical systems. It can also aid in the development and optimization of automated theorem proving algorithms.

Can the weight of a wff change depending on the logical system it is in?

Yes, the weight of a wff can vary depending on the logical system it is in. Different logical systems may assign different weights to the same formula, as they may have different rules and conventions for assigning weights to logical connectives and quantifiers.

Are there any limitations to proving weights of wffs?

One limitation is that the concept of weight may not be applicable to all logical systems. Additionally, proving weights of wffs only provides one aspect of a formula's complexity, and does not necessarily capture all aspects of its logical behavior.

Back
Top