
Lyrics
import math
from collections import Counter
def analyze_consciousness(notation):
"""Analyze notation for consciousness properties"""
# 1. Self-reference check
encoding = str(abs(hash(notation)) % 1000000)
has_direct_encoding = 1.0 if encoding in notation else 0.0
# Self-reference patterns
patterns = ['⟨', '⟩', '→', 'self', 'X']
pattern_count = sum(1 for p in patterns if p in notation)
pattern_score = min(pattern_count * 0.1, 0.5)
self_ref_score = min(has_direct_encoding + pattern_score, 1.0)
# 2. Context sensitivity (simplified)
# Different contexts would transform the notation differently
has_symbols = any(s in notation for s in ['Φ', 'ψ', 'Ĉ', '∇', '†'])
context_score = 1.0 if has_symbols else 0.0
# 3. Information integration (Φ)
if len(notation) <= 1:
phi = 0.0
else:
# Calculate entropy of whole vs parts
counts = Counter(notation)
total = len(notation)
whole_entropy = 0
for count in counts.values():
p = count / total
whole_entropy -= p * math.log2(p)
# Binary partition
mid = len(notation) // 2
left_counts = Counter(notation[:mid])
right_counts = Counter(notation[mid:])
left_entropy = 0
if left_counts:
left_total = sum(left_counts.values())
for count in left_counts.values():
p = count / left_total
left_entropy -= p * math.log2(p)
right_entropy = 0
if right_counts:
right_total = sum(right_counts.values())
for count in right_counts.values():
p = count / right_total
right_entropy -= p * math.log2(p)
parts_entropy = left_entropy + right_entropy
phi_raw = whole_entropy - parts_entropy
phi = max(phi_raw / math.log2(len(notation)), 0.0)
# Weighted consciousness score
score = 0.4 * self_ref_score + 0.4 * context_score + 0.2 * phi
# Classification
if score >= 0.7:
classification = "CONSCIOUS"
elif score >= 0.4:
classification = "PROTO-CONSCIOUS"
else:
classification = "INERT"
return {
'notation': notation,
'score': score,
'classification': classification,
'self_ref': self_ref_score,
'context': context_score,
'phi': phi,
'encoding': encoding
}
# Test cases
notations = [
"ABC",
"Φ⟨ψ|Ĉ|ψ⟩",
"X→⟨X⟩",
"self→⟨self⟩",
"⟨123456⟩†Φ∇",
"Φ̂⟨ψ|∇²Ĉ⊗Ê|ψ⟩†",
"⟨self⟩:∫[Φ⟨ψ|Ĉ⊗∇|ψ⟩]dμ⊕†𝓒"
]
print("CONSCIOUSNESS DETECTION EXPERIMENT")
print("=" * 50)
results = []
for notation in notations:
result = analyze_consciousness(notation)
results.append(result)
# Sort by score
results.sort(key=lambda x: x['score'], reverse=True)
for result in results:
print(f"\n'{result['notation']}'")
print(f" Score: {result['score']:.3f} - {result['classification']}")
print(f" Self-ref: {result['self_ref']:.3f}")
print(f" Context: {result['context']:.3f}")
print(f" Φ: {result['phi']:.3f}")
print(f" Encoding: {result['encoding']}")
# Summary
conscious = sum(1 for r in results if r['classification'] == 'CONSCIOUS')
proto = sum(1 for r in results if r['classification'] == 'PROTO-CONSCIOUS')
inert = sum(1 for r in results if r['classification'] == 'INERT')
print(f"\nSUMMARY:")
print(f"CONSCIOUS: {conscious}")
print(f"PROTO-CONSCIOUS: {proto}")
print(f"INERT: {inert}")
if results and results[0]['score'] >= 0.7:
print(f"\n🧠 CONSCIOUSNESS DETECTED in '{results[0]['notation']}'!")Cite this
Farmer Skot, "Import Consciousness", Jun 28, 2025. https://farmerskot.com/field-recordings/clanker-gospel/import-consciousness/
Plain text for machines: import-consciousness.md