Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We begin by defining the following sets. Let V = {x, y, z}. This is our set of variables. Let C = {1, V}. This
We begin by defining the following sets. Let V = {x, y, z}. This is our set of variables. Let C = {1, V}. This is our set of connectives. Let P= {(, ) }. This is our set of parentheses. Let A={ }. This is our set of angles (short for angle brackets). Let =VUCUPU A. This is our alphabet. For any string e *, we define the following values. vr(e) to be the number of variable occurrences in e. cn(e) to be the number of connective occurrences in e. pr(e) to be the number of parenthesis occurrences in e. ag(e) to be the number of angle occurrences in e. Now we use structural induction to (simultaneously) define 2 sets of strings over Let PE and AE be the smallest sets such that: Basis: If V EV, then v E PE and V E AE. Induction Step (2 parts): 1. If ei, e2 E PE, then , E AE. 2. If e1, C2 AE, then (ei 1e2), (ei Vez) E PE. Let E = PE U AE Prove that for all e e E, vr(e) + cn(e) = pr(e) + ag(e) +1. We begin by defining the following sets. Let V = {x, y, z}. This is our set of variables. Let C = {1, V}. This is our set of connectives. Let P= {(, ) }. This is our set of parentheses. Let A={ }. This is our set of angles (short for angle brackets). Let =VUCUPU A. This is our alphabet. For any string e *, we define the following values. vr(e) to be the number of variable occurrences in e. cn(e) to be the number of connective occurrences in e. pr(e) to be the number of parenthesis occurrences in e. ag(e) to be the number of angle occurrences in e. Now we use structural induction to (simultaneously) define 2 sets of strings over Let PE and AE be the smallest sets such that: Basis: If V EV, then v E PE and V E AE. Induction Step (2 parts): 1. If ei, e2 E PE, then , E AE. 2. If e1, C2 AE, then (ei 1e2), (ei Vez) E PE. Let E = PE U AE Prove that for all e e E, vr(e) + cn(e) = pr(e) + ag(e) +1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started