mscroggs.co.uk
mscroggs.co.uk

subscribe

Blog

Logical contradictions

 2016-10-08 
During my Electromagnetic Field talk this year, I spoke about @mathslogicbot (now reloated to @logicbot@mathstodon.xyz and @logicbot.bsky.social), my Twitter bot that is working its way through the tautologies in propositional calculus. My talk included my conjecture that the number of tautologies of length \(n\) is an increasing sequence (except when \(n=8\)). After my talk, Henry Segerman suggested that I also look at the number of contradictions of length \(n\) to look for insights.
A contradiction is the opposite of a tautology: it is a formula that is False for every assignment of truth values to the variables. For example, here are a few contradictions:
$$\neg(a\leftrightarrow a)$$ $$\neg(a\rightarrow a)$$ $$(\neg a\wedge a)$$ $$(\neg a\leftrightarrow a)$$
The first eleven terms of the sequence whose \(n\)th term is the number of contradictions of length \(n\) are:
$$0, 0, 0, 0, 0, 6, 2, 20, 6, 127, 154$$
This sequence is A277275 on OEIS. A list of contractions can be found here.
For the same reasons as the sequence of tautologies, I would expect this sequence to be increasing. Surprisingly, it is not increasing for small values of \(n\), but I again conjecture that it is increasing after a certain point.

Properties of the sequences

There are some properties of the two sequences that we can show. Let \(a(n)\) be the number of tautolgies of length \(n\) and let \(b(n)\) be the number of contradictions of length \(n\).
First, the number of tautologies and contradictions, \(a(n)+b(n)\), (A277276) is an increasing sequence. This is due to the facts that \(a(n+1)\geq b(n)\) and \(b(n+1)\geq a(n)\), as every tautology of length \(n\) becomes a contraction of length \(n+1\) by appending a \(\neg\) to be start and vice versa.
This implies that for each \(n\), at most one of \(a\) and \(b\) can be decreasing at \(n\), as if both were decreasing, then \(a+b\) would be decreasing. Sadly, this doesn't seem to give us a way to prove the conjectures, but it is a small amount of progress towards them.
Edit: Added Mastodon and Bluesky links
                        
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "g" then "r" then "a" then "p" then "h" in the box below (case sensitive):

Archive

Show me a random blog post
 2026 

Feb 2026

Christmas (2025) is over
 2025 
▼ show ▼
 2024 
▼ show ▼
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

reddit matrix of minors oeis cross stitch map projections flexagons manchester bodmas python data light partridge puzzle national lottery convergence estimation pizza cutting chebyshev puzzles cambridge matt parker wool a gamut of games simultaneous equations gather town pi approximation day big internet math-off the aperiodical dataset frobel realhats numbers fence posts wave scattering crosswords talking maths in public pac-man runge's phenomenon tennis people maths rust guest posts palindromes rugby mathslogicbot phd interpolation signorini conditions london 24 hour maths draughts christmas crochet martin gardner squares plastic ratio inverse matrices ternary world cup dinosaurs logs asteroids curvature sorting royal baby hats chess coventry news bubble bobble advent calendar london underground sound mathsteroids gerry anderson edinburgh finite group matrix multiplication craft electromagnetic field error bars rhombicuboctahedron ucl folding tube maps game of life fractals approximation propositional calculus crossnumbers matrices correlation books coins graphs gaussian elimination turtles hannah fry bempp fonts statistics chalkdust magazine friendly squares hyperbolic surfaces warwick christmas card computational complexity logic graph theory pythagoras geometry errors noughts and crosses football radio 4 menace harriss spiral dates mean countdown reuleaux polygons exponential growth kings trigonometry programming mathsjam pi boundary element methods weak imposition video games captain scarlet european cup pascal's triangle logo finite element method stirling numbers probability games polynomials speed nonograms zines platonic solids final fantasy raspberry pi determinants machine learning game show probability thirteen hexapawn standard deviation sport golden spiral anscombe's quartet matrix of cofactors triangles folding paper numerical analysis dragon curves databet javascript php live stream inline code quadrilaterals recursion sobolev spaces tmip arithmetic geogebra accuracy crossnumber nine men's morris regular expressions preconditioning alphabets golden ratio stickers data visualisation latex newcastle kenilworth misleading statistics binary youtube go datasaurus dozen bots braiding weather station royal institution manchester science festival

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2026