Propositional Logic: Proofs

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What cells secrete gastrin?

Cells G of the stomach

What is one action of gastrin?

Secretion of gastric H+

What stimulates the secretion of secretin?

H+ in the duodenum

Name one family of hormones related to gastrin.

<p>Gastrin-CCK</p> Signup and view all the answers

What stimulates CCK secretion?

<p>Peptides, amino acids, and fatty acids</p> Signup and view all the answers

What cells secrete secretin?

<p>Cells S of the duodenum</p> Signup and view all the answers

What is GIP dependent on?

<p>Glucose</p> Signup and view all the answers

What is the main action of CCK?

<p>Increase pancreatic enzyme secretion.</p> Signup and view all the answers

What is one function of gastrointestinal regulating substances?

<p>Contraction and relaxation of muscle walls</p> Signup and view all the answers

Besides hormones, how else are gastrointestinal peptides classified?

<p>Paracrine and neurocrine substances</p> Signup and view all the answers

What is the action of secretin on gastric acid?

<p>Decreases gastric secretion of H+</p> Signup and view all the answers

What are paracrine substances secreted by?

<p>GI tract cells</p> Signup and view all the answers

What can gastrin stimulate in the stomach?

<p>Mucosal growth</p> Signup and view all the answers

What is the stimulus for secretin secretion in the duodenum?

<p>Acid</p> Signup and view all the answers

What is one action of secretin on bicarbonate?

<p>Increases bicarbonate secretion.</p> Signup and view all the answers

What hormone is also part of the secretin-glucagon family?

<p>GIP</p> Signup and view all the answers

What does GRP stand for?

<p>Gastrin releasing peptide</p> Signup and view all the answers

What is secreted by endocrine cells?

<p>Hormones</p> Signup and view all the answers

What can gastrin promote the secretion of?

<p>Hydrogen ions</p> Signup and view all the answers

What action does CCK have on the gallbladder?

<p>Contraction</p> Signup and view all the answers

Flashcards

Enteroendocrine cells

Cells specialized in secreting hormones of the gastrointestinal tract, acting as signaling molecules.

Gastrointestinal peptides

Hormones or substances released from an endocrine cell or neuron that act on a target cell.

Gastrin

Hormone that promotes secretion of hydrochloric acid (H+) by parietal cells in the stomach.

Gastrin's Secretion Location

G cells in the stomach antrum.

Signup and view all the flashcards

Gastrin's Secretion Stimulus

Small peptides, amino acids, stomach distension, and vagal stimulation.

Signup and view all the flashcards

Gastrin's effect

Increase in H+ secretion, gastric mucosa growth.

Signup and view all the flashcards

Secretin

Hormone that increases pancreatic enzyme and HCO3- secretion.

Signup and view all the flashcards

Secretin's Secretion Stimulus

H+ and fatty acids in the duodenum.

Signup and view all the flashcards

Secretin's action

Increases pancreatic HCO3 secretion and bile secretion, decreases gastric H+ secretion.

Signup and view all the flashcards

Cholecystokinin (CCK)

Hormone that increases pancreatic enzyme secretion, stimulates gallbladder contraction, and inhibits gastric emptying.

Signup and view all the flashcards

Cholecystokinin (CCK)'s Secretion Stimulus

Small peptides, amino acids, and fatty acids.

Signup and view all the flashcards

Cholecystokinin (CCK)'s Action

Increases pancreatic enzyme secretion, gallbladder contraction and inhibits gastric emptying.

Signup and view all the flashcards

GIP (Gastric Inhibitory Peptide)

Hormone that Increases insulin secretion, secreted from the duodenum and jejunum.

Signup and view all the flashcards

GIP (Gastric Inhibitory Peptide)'s Secretion Stimulus

Fatty acids in the duodenum and jejunum.

Signup and view all the flashcards

Gastrointestinal Hormones

Peptides that affect the gastrointestinal tract by signaling through the bloodstream.

Signup and view all the flashcards

Paracrine Substances

Peptides that act locally via diffusion to affect nearby cells in the gastrointestinal tract.

Signup and view all the flashcards

Neurocrine Substances

Peptides that affect the gastrointestinal tract by signaling through neurons.

Signup and view all the flashcards

Regulatory Functions of GI Peptides

Contraction/relaxation of smooth muscle, enzyme secretion, fluid and electrolyte secretion, and growth.

Signup and view all the flashcards

Study Notes

Propositional Logic: Proofs - Review

  • Propositional formulas are built from variables $p, q, r, \dots$ and constants $T$ and $F$.
  • The connectives used are $\land, \lor, \neg, \rightarrow, \leftrightarrow$.
  • Meaning is assigned via a truth assignment $\mathcal{A}$, mapping each propositional variable to a truth value ($\mathbf{T}$ or $\mathbf{F}$).
  • Formula truth values are recursively determined by subformula values and connective truth tables.
  • $\Gamma$ entails $\varphi$ ($\Gamma \vDash \varphi$) if, for every truth assignment $\mathcal{A}$, if $\mathcal{A} \vDash \psi$ for every $\psi \in \Gamma$, then $\mathcal{A} \vDash \varphi$.
  • Two formulas $\varphi$ and $\psi$ are equivalent ($\varphi \equiv \psi$) if $\varphi \vDash \psi$ and $\psi \vDash \varphi$.

Proofs

  • A proof establishes entailment algorithmically.
  • A proof system includes axioms (assumed true) and inference rules (derive new formulas).
  • A proof is a sequence of formulas, each an axiom or derived via an inference rule.
  • The notation $\Gamma \vdash \varphi$ means there is a proof of $\varphi$ from $\Gamma$.

Natural Deduction - Inference Rules

Conjunction

  • Introduction: $\frac{\varphi \quad \psi}{\varphi \land \psi} \land i$
  • Elimination:
    • $\frac{\varphi \land \psi}{\varphi} \land e_{1}$
    • $\frac{\varphi \land \psi}{\psi} \land e_{2}$

Disjunction

  • Introduction:
    • $\frac{\varphi}{\varphi \lor \psi} \lor i_{1}$
    • $\frac{\psi}{\varphi \lor \psi} \lor i_{2}$
  • Elimination:
    • $\begin{array}{ccc} & [\varphi] & [\psi] \ \varphi \lor \psi & \vdots & \vdots \ & \chi & \chi \ \hline \chi \end{array} \lor e$

Negation

  • Introduction:
    • $\begin{array}{c} [\varphi] \ \vdots \ \frac{\bot}{\neg \varphi} \end{array} \neg i$
  • Elimination:
    • $\frac{\varphi \quad \neg \varphi}{\bot} \neg e$

Implication

  • Introduction:
    • $\begin{array}{c} [\varphi] \ \vdots \ \frac{\psi}{\varphi \rightarrow \psi} \end{array} \rightarrow i$
  • Elimination:
    • $\frac{\varphi \quad \varphi \rightarrow \psi}{\psi} \rightarrow e \text{ (Modus Ponens)}$

Falsity

  • Elimination:
    • $\frac{\bot}{\varphi} \bot e$

Double Negation

  • Introduction:
    • $\frac{\varphi}{\neg \neg \varphi} \neg \neg i$
  • Elimination:
    • $\frac{\neg \neg \varphi}{\varphi} \neg \neg e$

Example Proof - $(p \land q) \rightarrow (q \land p)$

  1. $p \land q$ Assumption
  2. $p \qquad \land e_{1} 1$
  3. $q \qquad \land e_{2} 1$
  4. $q \land p \qquad \land i 3, 2$
  5. $(p \land q) \rightarrow (q \land p) \qquad \rightarrow i 1-4$
  • $\land e_{1} 1$ applies the rule $\land e_{1}$ to line 1.
  • $\rightarrow i 1-4$ applies the rule $\rightarrow i$ to the subproof from line 1 to line 4.

Soundness and Completeness

  • A proof system is sound if $\Gamma \vdash \varphi$ implies $\Gamma \vDash \varphi$.
  • A proof system is complete if $\Gamma \vDash \varphi$ implies $\Gamma \vdash \varphi$.
  • Natural deduction is both sound and complete for propositional logic.

Data Structures and Algorithms – Assignment 2

Instructions

  • Submit a zip file including:
    • A PDF document with answers to all questions, including time complexity analysis.
    • A folder with code for exercise 3 and a README file with instructions on how to run the code.
  • Discussing with other students is allowed, but writing your own code and answers is a must.
  • Deadline: November 15, 2023 at 23:59.

Questions

  • Briefly describe:
    • Data structure
    • Abstract data type
    • Algorithm
    • Time complexity
    • Asymptotic analysis
  • Answer the following:
    • What is the difference between an array and a linked list?
    • What is the difference between a stack and a queue?
    • What is the difference between a binary tree and a binary search tree?
    • What is the difference between Dijkstra’s algorithm and Bellman-Ford algorithm?
    • What is the difference between a depth-first search (DFS) and a breadth-first search (BFS)?
  • Implement the following in Python:
    • Given a graph $G = (V, E)$, implement the depth-first search (DFS) algorithm to find all connected components in the graph.
    • Given a graph $G = (V, E)$, implement Dijkstra’s algorithm to find the shortest path from a source vertex to all other vertices in the graph.
    • Given a graph $G = (V, E)$, implement the Floyd-Warshall algorithm to find the shortest path between all pairs of vertices in the graph. The implementation should be able to detect negative cycles.
    • Give a brief explanation of the algorithm and its time complexity for each implementation.
    • Provide a simple interface (command line) for the user to input the graph and the source vertex (for Dijkstra’s algorithm).
    • Test the implementation on several graphs of different sizes and densities and compare the performance of the algorithms on these graphs.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team
Use Quizgecko on...
Browser
Browser