Tweety Triangle and Nixon Diamond #
The two classic default-reasoning testbeds, as finite world types shared
by the rival accounts in Studies/Veltman1996, Studies/GoldszmidtPearl1996,
and Studies/AsherPelletier2013:
- Tweety Triangle (specificity): birds normally fly; penguins are birds; penguins normally don't fly. The more specific default wins.
- Nixon Diamond (conflicting defaults): Quakers are normally pacifist; Republicans are normally not; Nixon is both.
Main declarations #
The Tweety world: 4 possible states of an entity.
- birdFlies : TweetyWorld
- birdNoFly : TweetyWorld
- penguinFlies : TweetyWorld
- penguinNoFly : TweetyWorld
Instances For
@[implicit_reducible]
Equations
- Core.Logic.TweetyNixon.instDecidableEqTweetyWorld x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Equations
- Core.Logic.TweetyNixon.isBird Core.Logic.TweetyNixon.TweetyWorld.birdFlies = True
- Core.Logic.TweetyNixon.isBird Core.Logic.TweetyNixon.TweetyWorld.birdNoFly = True
- Core.Logic.TweetyNixon.isBird Core.Logic.TweetyNixon.TweetyWorld.penguinFlies = True
- Core.Logic.TweetyNixon.isBird Core.Logic.TweetyNixon.TweetyWorld.penguinNoFly = True
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
Every penguin is a bird.
The Nixon world: 4 possible states.
- quakerPacifist : NixonWorld
- quakerNotPacifist : NixonWorld
- repPacifist : NixonWorld
- repNotPacifist : NixonWorld
Instances For
@[implicit_reducible]
Equations
- Core.Logic.TweetyNixon.instDecidableEqNixonWorld x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]