-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created test page with syllogistic logic content.
- Loading branch information
1 parent
d32abcc
commit 2419499
Showing
2 changed files
with
311 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
import { Card, CardContent } from '@/components/ui/card'; | ||
import Head from 'next/head'; | ||
|
||
export default function SyllogisticLogicPage() { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Syllogistic Translations – A Quick Guide</title> | ||
<meta | ||
name='description' | ||
content='A concise overview of Syllogistic Translations, including basic and harder examples.' | ||
/> | ||
</Head> | ||
<div className='container mx-auto py-8 space-y-8 max-w-4xl animate-in'> | ||
<h1 className='text-3xl font-bold mb-6 text-black'> | ||
Syllogistic Translations | ||
</h1> | ||
|
||
{/* --------------------- Easier Translations ---------------------- */} | ||
<section className='space-y-6'> | ||
<h2 className='text-2xl font-semibold text-black'> | ||
Easier Translations | ||
</h2> | ||
|
||
<Card> | ||
<CardContent className='pt-6'> | ||
<p className='text-lg leading-relaxed mb-6'> | ||
Syllogistic logic studies arguments whose validity depends on | ||
"all," "no," "some," and similar | ||
notions. In symbolizing such arguments, we use capital letters | ||
for general categories (like "logician") and small | ||
letters for specific individuals (like "Gensler"). | ||
</p> | ||
|
||
<div className='my-6'> | ||
{/* Basic forms of well-formed formulas (unchanged design) */} | ||
<div className='border border-gray-200 rounded-md overflow-hidden'> | ||
<ul className='divide-y divide-gray-200'> | ||
<li className='px-4 py-2'>all A is B</li> | ||
<li className='px-4 py-2'>no A is B</li> | ||
<li className='px-4 py-2'>some A is B</li> | ||
<li className='px-4 py-2'>some A is not B</li> | ||
<li className='px-4 py-2'>x is A</li> | ||
<li className='px-4 py-2'>x is not A</li> | ||
<li className='px-4 py-2'>x is y</li> | ||
<li className='px-4 py-2'>x is not y</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div className='space-y-4'> | ||
<h3 className='text-xl font-semibold'>Important Rules:</h3> | ||
<ul className='list-disc pl-6 space-y-2'> | ||
<li> | ||
Use capital letters for general terms (terms that describe | ||
or put in a category) | ||
<ul className='list-disc pl-6 mt-2 text-muted-foreground'> | ||
<li> | ||
Examples: "a cute baby", "charming", | ||
"drives a Buick" | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Use small letters for singular terms (terms that pick out a | ||
specific person or thing) | ||
<ul className='list-disc pl-6 mt-2 text-muted-foreground'> | ||
<li> | ||
Examples: "the world's cutest baby", | ||
"this child", "David" | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div className='mt-6 p-4 bg-muted rounded-lg'> | ||
<h4 className='font-semibold mb-2'> | ||
Examples of correct translations: | ||
</h4> | ||
<ul className='space-y-2'> | ||
<li>All babies are cute = all B is C</li> | ||
<li>Will Gensler is a baby = w is B</li> | ||
<li>Will Gensler is the world's cutest baby = w is b</li> | ||
</ul> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
</section> | ||
|
||
{/* --------------------- Harder Translations ---------------------- */} | ||
<section className='space-y-6'> | ||
<h2 className='text-2xl font-semibold text-black'> | ||
Harder Translations | ||
</h2> | ||
|
||
<Card> | ||
<CardContent className='pt-6'> | ||
<p className='text-lg leading-relaxed mb-6'> | ||
English has various idiomatic ways to express our wffs. Instead | ||
of "all" we can say "any," "each," | ||
"every," or "whoever." | ||
</p> | ||
|
||
{/* Redesigned to mimic the side-by-side style without bright colors */} | ||
<div className='my-6 border border-gray-200 rounded-md overflow-hidden'> | ||
{/* 2x2 layout on larger screens; stacked on smaller screens */} | ||
<div className='grid grid-cols-1 md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-gray-200'> | ||
{/* all A is B */} | ||
<div className='p-4'> | ||
<h4 className='font-semibold mb-2'>all A is B =</h4> | ||
<ul className='list-disc pl-6 space-y-1'> | ||
<li>A's are B's</li> | ||
<li>Those who are A are B</li> | ||
<li>If a person is A, then she is B</li> | ||
<li>If you're A, then you're B</li> | ||
<li>Only B's are A's</li> | ||
<li>None but B's are A's</li> | ||
<li>No one is A unless she is B</li> | ||
<li>Nothing is A unless it's B</li> | ||
<li>A thing isn't A unless it's B</li> | ||
<li>It's false that some A is not B</li> | ||
</ul> | ||
</div> | ||
|
||
{/* no A is B */} | ||
<div className='p-4 border-t md:border-t-0'> | ||
<h4 className='font-semibold mb-2'> | ||
no A is B = no B is A = | ||
</h4> | ||
<ul className='list-disc pl-6 space-y-1'> | ||
<li>A's aren't B's</li> | ||
<li>Every (each, any) A is non-B</li> | ||
<li>Whoever (whatever) is A isn't B</li> | ||
<li>Those who are A aren't B</li> | ||
<li>If a person is A, then she isn't B</li> | ||
<li>If you're A, then you aren't B</li> | ||
<li>There isn't a single A that's B</li> | ||
<li>Not any A is B</li> | ||
<li> | ||
It's false that there's an A that's B | ||
</li> | ||
<li>It's false that some A is B</li> | ||
</ul> | ||
</div> | ||
|
||
{/* some A is B */} | ||
<div className='p-4 border-t'> | ||
<h4 className='font-semibold mb-2'> | ||
some A is B = some B is A = | ||
</h4> | ||
<ul className='list-disc pl-6 space-y-1'> | ||
<li>One or more A's are B's</li> | ||
<li>A's are sometimes B's</li> | ||
<li>It's false that no A is B</li> | ||
</ul> | ||
</div> | ||
|
||
{/* some A is not B */} | ||
<div className='p-4 border-t md:border-l'> | ||
<h4 className='font-semibold mb-2'>some A is not B =</h4> | ||
<ul className='list-disc pl-6 space-y-1'> | ||
<li>One or more A's aren't B's</li> | ||
<li>Not all A's are B's</li> | ||
<li>It's false that all A is B</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='mt-6 p-4 bg-muted rounded-lg'> | ||
<h4 className='font-semibold mb-2'> | ||
Examples of correct translations: | ||
</h4> | ||
<ul className='space-y-2'> | ||
<li>Snakes aren't furry = no S is F</li> | ||
<li>Only men are football players = all F is M</li> | ||
<li>Not all steaks are well done = some S is not W</li> | ||
</ul> | ||
</div> | ||
|
||
<div className='mt-6'> | ||
<p className='text-muted-foreground italic'> | ||
When you translate from English to logic, be careful to use | ||
correct WFFs. | ||
</p> | ||
</div> | ||
</CardContent> | ||
</Card> | ||
</section> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
import * as React from "react" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
const Table = React.forwardRef< | ||
HTMLTableElement, | ||
React.HTMLAttributes<HTMLTableElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div className="relative w-full overflow-auto"> | ||
<table | ||
ref={ref} | ||
className={cn("w-full caption-bottom text-sm", className)} | ||
{...props} | ||
/> | ||
</div> | ||
)) | ||
Table.displayName = "Table" | ||
|
||
const TableHeader = React.forwardRef< | ||
HTMLTableSectionElement, | ||
React.HTMLAttributes<HTMLTableSectionElement> | ||
>(({ className, ...props }, ref) => ( | ||
<thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} /> | ||
)) | ||
TableHeader.displayName = "TableHeader" | ||
|
||
const TableBody = React.forwardRef< | ||
HTMLTableSectionElement, | ||
React.HTMLAttributes<HTMLTableSectionElement> | ||
>(({ className, ...props }, ref) => ( | ||
<tbody | ||
ref={ref} | ||
className={cn("[&_tr:last-child]:border-0", className)} | ||
{...props} | ||
/> | ||
)) | ||
TableBody.displayName = "TableBody" | ||
|
||
const TableFooter = React.forwardRef< | ||
HTMLTableSectionElement, | ||
React.HTMLAttributes<HTMLTableSectionElement> | ||
>(({ className, ...props }, ref) => ( | ||
<tfoot | ||
ref={ref} | ||
className={cn( | ||
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)) | ||
TableFooter.displayName = "TableFooter" | ||
|
||
const TableRow = React.forwardRef< | ||
HTMLTableRowElement, | ||
React.HTMLAttributes<HTMLTableRowElement> | ||
>(({ className, ...props }, ref) => ( | ||
<tr | ||
ref={ref} | ||
className={cn( | ||
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)) | ||
TableRow.displayName = "TableRow" | ||
|
||
const TableHead = React.forwardRef< | ||
HTMLTableCellElement, | ||
React.ThHTMLAttributes<HTMLTableCellElement> | ||
>(({ className, ...props }, ref) => ( | ||
<th | ||
ref={ref} | ||
className={cn( | ||
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)) | ||
TableHead.displayName = "TableHead" | ||
|
||
const TableCell = React.forwardRef< | ||
HTMLTableCellElement, | ||
React.TdHTMLAttributes<HTMLTableCellElement> | ||
>(({ className, ...props }, ref) => ( | ||
<td | ||
ref={ref} | ||
className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)} | ||
{...props} | ||
/> | ||
)) | ||
TableCell.displayName = "TableCell" | ||
|
||
const TableCaption = React.forwardRef< | ||
HTMLTableCaptionElement, | ||
React.HTMLAttributes<HTMLTableCaptionElement> | ||
>(({ className, ...props }, ref) => ( | ||
<caption | ||
ref={ref} | ||
className={cn("mt-4 text-sm text-muted-foreground", className)} | ||
{...props} | ||
/> | ||
)) | ||
TableCaption.displayName = "TableCaption" | ||
|
||
export { | ||
Table, | ||
TableHeader, | ||
TableBody, | ||
TableFooter, | ||
TableHead, | ||
TableRow, | ||
TableCell, | ||
TableCaption, | ||
} |
2419499
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
logicola – ./
logicola-git-main-malik-piaras-projects.vercel.app
logicola-malik-piaras-projects.vercel.app
logicola.org
www.logicola.org