blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6a6aed6242fc17b5981b00de6f597ee4675ff68 | 6b2db3cce817aee6a1577acd024517a93c95d4ef | /alc.lean | 4f5b6225339add47c26766b36120eb3a9d492261 | [] | no_license | GPPassos/alc-lean | 7a925a84d4edbae6f65c680b6fe498848179b000 | a98124e10e2d96268c579f97a5833cc553e91ea3 | refs/heads/master | 1,611,305,302,464 | 1,439,419,359,000 | 1,439,419,359,000 | 39,362,434 | 0 | 0 | null | 1,437,364,849,000 | 1,437,364,848,000 | null | UTF-8 | Lean | false | false | 33,108 | lean | import logic.identities logic.axioms.classical data.list data.num data.nat
open bool list num nat
section SetTheory
--print instances decidable
-- some necessary logic theorems
theorem neg_conj {p: Prop} {q: Prop} (h: ¬(p ∧ q)) : ¬p ∨ ¬q :=
iff.mp not_and_iff_not_or_not h
theorem dou... |
861c94da0e9830ecfc1a7cf23884ac0f674db2f0 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/group/basic.lean | 1f5f006f7ce53db60267af09e6d317e7f63e7f57 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 13,344 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Simon Hudon, Mario Carneiro
-/
import algebra.group.defs
import logic.function.basic
universe u
section monoid
variables {M : Type u} [monoid M]
@[t... |
4d0ae5b85115d6846c6798efd53493e09d378eef | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/ring_theory/localization.lean | 56d82c030557d59579b7acd25696e16f26321a66 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 26,881 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin
-/
import ring_theory.ideal_operations
universes u v
local attribute [instance, priority 10] is_ring_hom.comp
namespace localization
variables (... |
cbbbafcc63b754c9635d3e25ee7082fd75ca68d2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/lie/non_unital_non_assoc_algebra.lean | e61253620651edd73e4b856f7cf5b4576d3eef42 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,663 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.hom.non_unital_alg
import algebra.lie.basic
/-!
# Lie algebras as non-unital, non-associative algebras
The definition of Lie algebras uses the `has_bracket... |
07d352e85503b575e7151303c972cad2fab90980 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/termParserAttr.lean | db8c7234fa8e8109363f55938f4b0e7fe6f2bf32 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,145 | lean | import Lean
new_frontend
open Lean
open Lean.Elab
def runCore (input : String) (failIff : Bool := true) : CoreM Unit := do
let env ← getEnv;
let opts ← getOptions;
let (env, messages) ← liftIO $ process input env opts;
messages.toList.forM $ fun msg => liftIO (msg.toString >>= IO.println);
when (failIff && messages.h... |
fd6be5dcc2755e0ad1671f3e06b312563c549750 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/probability/notation.lean | 9f167533e0d9d7bce8ac49da960d2aba33927f2d | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 1,869 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.conditional_expectation
/-! # Notations for probability theory
This file defines the following notations, for functions `X,Y`, measures `... |
19c1c9a5a64b344bac13a11f8e50a77e7b66604d | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0604.lean | 77a1427b26431c34de7f85b3726de08ad1826d25 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125 | lean | variables (f : ℕ → ℕ) (a b : ℕ)
example (h₁ : a = b) (h₂ : f a = 0) : f b = 0 :=
begin
rw [←h₁, h₂]
end
|
918b7c3c4a4499f260ccdf186ea0dee4b67ffcbc | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/ring_theory/subring.lean | 20d0ac05484dc122a2ab11c9b53a12707ca45159 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,431 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import deprecated.subring
import group_theory.subgroup
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring... |
abe27db964fc8a5cfc206eed90363c34205e85a7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier16.lean | b06086f4cc0f53285a16821a98a4d969574524f8 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 452 | lean | -- Canonicalizing subsingletons
import algebra.ring
open algebra
set_option pp.all true
universes l j k
constants (A : Type.{l}) (s : comm_ring A)
attribute s [instance]
constants (x y : A) (P : A → Type.{j}) (P_ss : ∀ a, subsingleton (P a))
constants (f : Π a, P a → A) (Px1 Px2 Px3 : P x)
constants (g : A → A → A)
at... |
80dc432748c1c52a527e9caab6b45ae99f34eaf4 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/linear_algebra/finite_dimensional.lean | 6018e242a506d70afa047d8d8bad48b757e743a6 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,456 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition and basic properties of finite dimensional vector spaces.
The class `finite_dimensional` is defined to be `is_noetherian`, for ease of transfer of proofs.
Howev... |
e5d023bbf281edf6b2ef2c874f3f3e3dcc0532df | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/convex/function.lean | 1a6e1c735104b251cfaad58f8a332e4172378335 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 41,608 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, François Dupuis
-/
import analysis.convex.basic
/-!
# Convex and concave functions
This file defines convex and concave functions in vector spaces and proves ... |
7edeafc101680b78e96bd4e2911bb64732323c4e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/polynomial/rational_root.lean | ac010e33c9ae66e3bdfd7462a9b83599ca1cb59a | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,020 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.polynomial.scale_roots
import ring_theory.localization
/-!
# Rational root theorem and integral root theorem
This file contains the rational root theo... |
deb584cd431b2b5426d12e1652518120256145a9 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/mutualWithNamespaceMacro.lean | a00309b6bebd5299c9ec54cd56ba57e8df62db57 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 379 | lean |
mutual
inductive Foo.Lst (α : Type)
| nil : Lst
| cons : Tree α → Lst α → Lst α
inductive Boo.Tree (α : Type) -- conflicting namespace
| leaf : Tree α
| node : Lst α → Tree α
end
mutual
inductive Foo.Lst (α : Type)
| nil : Lst α
| cons : Tree α → Lst α → Lst α
inductive Foo.Tree (α : Type)
| leaf : Tree α... |
9cdc0f818ce69ea1957031aaf9a7a631cdc8f2f2 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Util/FoldConsts.lean | 8364a1242882ff62fc61afbfa737f45b82ed2356 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,698 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
import Lean.Environment
namespace Lean
namespace Expr
namespace FoldConstsImpl
abbrev cacheSize : USize := 8192
structure State where
... |
538556a9d73c10de16b76400ef0753929ecc63c6 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/rc_tests.lean | 3c30d96767360716e834ea9a5831bd3b738f9722 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,127 | lean |
universes u v
-- setOption pp.binderTypes False
set_option pp.implicit true
set_option trace.compiler.llnf true
-- set_option trace.compiler.boxed true
namespace x1
def f (x : Bool) (y z : Nat) : Nat :=
match x with
| true => y
| false => z + y + y
end x1
namespace x2
def f (x : Nat) : Nat := x
end x2
namesp... |
13608d1ee0e528e8a859e0f9abca8b7d8808576e | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/environment/environment_with_assign.lean | df8623dd6816b7270ea52d87135e968d174507ef | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 55 | lean | import ..assign.math_assign
import ..assign.time_assign |
2025b0900623daa3b30138d45bdacffffbdb8a94 | 44023683920a51f2416cf51eeab3fc51c3ff0765 | /tests/lean/run/check_constants.lean | 5cb6567e056471e4b11d6e41c93be690f8f0df8a | [
"Apache-2.0"
] | permissive | pirocks/lean | e6e3e3fd20c5e7877f7efc3b50e5e20271e8d0cf | 368f17d0b1392a5a72c9eb974f15b14462cc1475 | refs/heads/master | 1,620,671,385,768 | 1,516,152,564,000 | 1,516,152,564,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,231 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
f7ac9a19ce46a0c681f37ba3f9f6761987443909 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/independent.lean | 42e5193fbc833c723a39c529028d11de18f068c9 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,326 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.combination
import analysis.convex.extreme
/-!
# Convex independence
This file defines convex independent families of... |
aaf5bc2d01d970a6934d8eb298baf1a6a376f1c8 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/field_theory/fixed.lean | 464c7fc42b99119ff9784208b9ebfd04e26e0137 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,546 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.polynomial.group_ring_action
import field_theory.normal
import field_theory.separable
import field_theory.tower
import ring_theory.polynomial
/-!
# Fixed field... |
9829941feb8b91a01a21ad209727f28a1f6ece7c | 12ba6fe891179eac82e287c24c8812a046221563 | /src/kruskal_katona.lean | 55be53dbe8ddb3837680915eb4b4029dd8e076e1 | [] | no_license | b-mehta/combinatorics | eca586b4cb7b5e1fd22ec3288f5a2cb4ed6ce4dd | 2a8b30709d35f124f3fc9baa5652d231389e9f63 | refs/heads/master | 1,653,708,057,336 | 1,626,885,184,000 | 1,626,885,184,000 | 228,850,404 | 19 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,251 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.finset
import data.fintype.basic
import tactic
import to_mathlib
import basic
import shadows
import colex
import compressions.UV
/-!
# Kruskal-Katona theore... |
ad2c36fa87903ba4f4569537f175ff8a9a0d3a51 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/lie/basic.lean | 1a59fd61d080d1304a196953f9b732a20d2ebf8c | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,123 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.algebra.basic
import linear_algebra.bilinear_form
import linear_algebra.matrix
import tactic.noncomm_ring
/-!
# Lie algebras
This file defines Lie rings, a... |
1acf3f5896128376a5c18cc60053dc9fdd37f88a | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/init/trunc.hlean | a86e4bdc7d730937505ff1977dae5224a8c87faf | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 12,724 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
prelude
import .nat .logic .equiv .pathover
open eq nat sigma unit sigma.ops... |
daa91e15d816a963813dcebe5f86a96781be080c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /archive/100-theorems-list/93_birthday_problem.lean | 8f11c737010256c5fe92fa9e31194be330c94e93 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 897 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fintype.card_embedding
import tactic.norm_num
/-!
# Birthday Problem
This file proves Theorem 93 from the [100 Theorems List](https://www.cs.ru.nl/~free... |
bf2303e9c35fe8d8fa4b3b670c26bf6c57d9e545 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/geometry/manifold/cont_mdiff_map.lean | eb0ec6c483c5a681ae5bcb68549116d29d079ddf | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 3,797 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.cont_mdiff
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `cont_mdiff_map` of `n` ti... |
9da7820ea7950613e4d84abf3aaf26f90d73afa8 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/polynomial.lean | 45182e5f2e1a861f29ab3e2ac5a76589dda1058d | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 137,408 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import tactic.ring_exp
import tactic.chain
import data.monoid_algebra
import algebra.gcd_domain
import ring_theory.euclide... |
af2cf7bba4a296c7fa6e0e9d8771d34ab6260575 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Init/Data/Char/Basic.lean | e39fa6d31ea697ac95271195debbc008687ebb76 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 2,040 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.UInt
@[inline, reducible] def isValidChar (n : UInt32) : Prop :=
n < 0xd800 ∨ (0xdfff < n ∧ n < 0x110000)
namespace Char
protec... |
d2fad0347e3cff7f8802559f59e669e6c7f23c27 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/2115.lean | eeddbb3e9e8b49ba9ee3d0edace302c2504802e8 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 737 | lean | class A (α : Type) where
one : α
class B (α : Type) extends A α where
two : α
class C (α : Type) extends A α where
three : α
class D (α : Type) extends B α, C α
attribute [instance 10] C.toA
set_option pp.all true
def foo [D α] : A α := inferInstance -- should use `B.toA` since it has higher priority
#print... |
b253c3f77381b5ea1477323ec6b92525d932d5a5 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/tactic/finish.lean | 59609d919c4643d32918926aff0e56c26cddb1aa | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 21,585 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jesse Michael Han
These tactics do straightforward things: they call the simplifier, split conjunctive assumptions,
eliminate existential quantifiers on the left, and lo... |
d2782222c6e7190358758aa880a927e1573232af | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/finset/default.lean | 346185b86bce5dd8ee96edcfec5c024720c31dc6 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 257 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.finset
Author: Leonardo de Moura
Finite sets
-/
import data.finset.basic data.finset.comb data.finset.bigop
|
8646611d45bf2ee53c35ba4e52f01654bce86b5c | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/quotient.lean | e35781e7c035e2e2d953c56cc38ac18e4ed89271 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,792 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import algebra.algebra.basic
import linear_algebra.basic
/-!
# Quotients by submodules
* If `p` is a submodule of `M... |
c6a8fc06c6788a73443e11a9bad03e2e95bb0767 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/denoms_clearable.lean | 39db6d8a3f53326adbf8c3c0214417a145e5afa7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,787 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.erase_lead
import data.polynomial.eval
/-!
# Denominators of evaluation of polynomials at ratios
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
3bd608151689eb95e7b79c7b8b68f5b2261db868 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/vector_bundle/basic.lean | 2ee022460ef973daba5089c8448089b001895124 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 20,621 | lean | /-
Copyright (c) 2022 Floris van Doorn, Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Heather Macbeth
-/
import geometry.manifold.vector_bundle.fiberwise_linear
import topology.vector_bundle.constructions
/-! # Smooth vector bundles... |
f29d73be55427876cf8789f8fa079f81ef28c672 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/is_connected.lean | 5a33c4ebdeaa90a2326ed0fe7d2558f10d870604 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 13,443 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.list.chain
import category_theory.punit
import category_theory.groupoid
/-!
# Connected category
Define a connected category as a _nonempty_ category for wh... |
41491d47f884cac265e7f7870670b950a866bbdd | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world03/level03.lean | bdafe429739f0149e6c0db9ee1c0723744894a75 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 139 | lean | lemma one_mul (m : mynat) : 1 * m = m :=
begin
induction m with h hd,
rw mul_zero,
refl,
rw mul_succ,
rw hd,
rw succ_eq_add_one,
refl,
end
|
6a00ecb0494b8f08681f899ac3ad89d3970b220e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/solve_by_elim.lean | 5748f042c912aa0f3502e0619a77d0d6242ed93c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,782 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.solve_by_elim
import tactic.rcases
import tactic.interactive
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
begin
apply_assumption,
ap... |
086d01182f8d23c8316baf551718e0c81d8dc64b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/level_bug1.lean | 01bd9af56af65400be04ba88e30c0091b8f56c3a | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 207 | lean | definition f (a : Type) := Π r : Type, (a → r) → r
definition blah2 : Π {a : Type} {r : Type} (sa : f a) (k : a → r), sa r k = sa r k :=
λ (a : Type) (r : Type) (sa : f a) (k : a → r), rfl
|
b2bcd55f0274a4623d89636120b25382eb4b6d07 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/category_theory/functor_category.lean | f2b1cf1124d6799aa80c4d98471910257c697fa6 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 2,685 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import category_theory.natural_transformation
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; see... |
fe8776dda4c72e9619058844674f4e389de02c6b | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/data/nat/pow.lean | 2f049b1af76fea59d0053a75a413e0086683607f | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 479 | lean | /-
Copyright (c) 2017 Galois Inc. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
exponentiation on natural numbers
This is a work-in-progress
-/
prelude
import init.data.nat.basic init.meta
namespace nat
def pow (b : ℕ) : ℕ → ℕ
| 0 := 1
| (succ n... |
0a6d6924884ed0f88df0adb2c686e4c054064e78 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_geometry/projective_spectrum/scheme.lean | 06965cb6ab393ebba60fb6f3a3f59cec104008e3 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 14,998 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import algebraic_geometry.projective_spectrum.structure_sheaf
import algebraic_geometry.Spec
/-!
# Proj as a scheme
This file is to prove that `Proj` is a scheme.
## N... |
3117a6e4c68d0357af1a4c62853d515f11386a37 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/group_theory/torsion.lean | 964c95393eead991f9e2d27c162a35840427a747 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 14,780 | lean | /-
Copyright (c) 2022 Julian Berman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Berman
-/
import group_theory.exponent
import group_theory.order_of_element
import group_theory.p_group
import group_theory.quotient_group
import group_theory.submonoid.operatio... |
f080acdc35bc2cb4b34aa326c6d011aa97154a34 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/autoImplicitCtorParamIssue.lean | 4342ade4c869c5a90c0c88ddd4518dc03c2fbd70 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 87 | lean | def bar (x) := 1
inductive Foo where
| bar (x)
structure Bla where
bar (x) : Nat
|
c80cd578bd5c3143c8480d1caccfe4138c69f930 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/ring_theory/polynomial/basic.lean | 0c820355bf21177319092b4b2db6560a7e141d94 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 18,811 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Ring-theoretic supplement of data.polynomial.
Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring.
-/
import algebra.char_p
import da... |
87c11f00e9e9c966e6e1c7df3927bb7bbfb5ba3d | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/multiset/sections.lean | 8f54fca6cc9d20723cfd0c14584f4b4fe2c61b73 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 2,235 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import data.multiset.basic
/-!
# Sections of a multiset
-/
namespace multiset
variables {α : Type*}
section sections
/--
The sections of a multiset of multisets `s... |
b17121d86087ca4b4ec51ee2d86556580f2fe92e | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/data/padics/padic_numbers.lean | cac2ee79fe76f0b44596e616fd784ec94b09630c | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 32,501 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.real.cau_seq_completion
import data.padics.padic_norm algebra.archimedean analysis.normed_space.basic
import tactic.norm_cast
/-!
# p-adic numbers
T... |
954d3b160ca3062e1523a4201fbced66b7edd8cf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/zmod/defs.lean | 918a0caf9ab0847337185a20d313aa6a9e6e7dcd | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,193 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import algebra.ne_zero
import data.nat.modeq
import data.fintype.lattice
/-!
# Definition of `zmod n` + basic results.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
855f2487b9e3615788511b874529f6769770881d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/System/FilePath.lean | 343506e199fc44b8b1793b2f2f763c52ca5f3fe7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 4,137 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.System.Platform
import Init.Data.String.Basic
import Init.Data.Repr
import Init.Data.ToString.Basic
namespace System... |
6ed3b10d716c8e55f4898a1b6985990d1281fea6 | 66a6486e19b71391cc438afee5f081a4257564ec | /algebra/cogroup.hlean | dc9eaed0c50ba8161088ea7968fcb0fa09bd175b | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 7,412 | hlean | import algebra.group_theory ..pointed ..homotopy.smash
open eq pointed algebra group eq equiv is_trunc is_conn prod prod.ops
smash susp unit pushout trunc prod
section
variables {A B C : Type*}
definition prod.pair_pmap (f : C →* A) (g : C →* B)
: C →* A ×* B :=
pmap.mk (λ c, (f c, g c)) (pair_eq (res... |
31bb36dd8b74263fc8c6dae41393b6293bf06386 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/analysis/calculus/fderiv.lean | 75f70d5619c349eb0e2ed48093170e40cba61966 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 115,469 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
import analysis.normed_space.units
/-!
# The Fréchet derivative
Let `E` and `F` be normed sp... |
63b739c2a5f56cee069494e0f86dbeaa58aaafa1 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/topology/sheaves/forget.lean | aafa8f813b68084e424762581c4e0e10ad37cb70 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,068 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.sheaves.sheaf
import category_theory.limits.preserves.shapes.products
import category_theory.limits.types
/-!
# Checking the sheaf condition on the u... |
89f41d81e62559c1cab2476a4c3ab2c277f66f10 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/uniform_space/uniform_embedding.lean | 73a383c4ca4ad1b5538518f9af236bc1907ec8ba | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 20,219 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Sébastien Gouëzel, Patrick Massot
Uniform embeddings of uniform spaces. Extension of uniform continuous functions.
-/
import topology.uniform_space.cauchy
import topol... |
0418f4e44ab51db076ca80b36139682d4e1ab202 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/sum.lean | 12d6544da7c2083bc612e7a9e4075c1efcfdf89a | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 6,174 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury G. Kudryashov
-/
import tactic.lint
/-!
# More theorems about the sum type
-/
universes u v w x
variables {α : Type u} {α' : Type w} {β : Type v} {β' : Type x}
o... |
16fa1bc796db47f28cbc65c0adbae49d738d9313 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/analysis/convex/cone.lean | 05ea432b06a3153f2cedb615dd2aa24681f62a88 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 18,792 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import linear_algebra.linear_pmap analysis.convex.basic order.zorn
/-!
# Convex cones
In a vector space `E` over `ℝ`, we define a convex cone as a subset `s` such ... |
a74b69870344d8dba52084f16ba377605dc995c8 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/zmod/basic.lean | 52752b7e99160bd3fc2c8830358b3795d491290c | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 33,240 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.char_p.basic
import tactic.fin_cases
/-!
# Integers mod `n`
Definition of the integers mod n, and the field structure on the integers mod p.
## Defini... |
0fa6acf68b294b5694effb0b442be12ea13d4f75 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/init/datatypes.lean | 58cc893bbf30fb8b12229daa59980de6175df2c2 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,088 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Basic datatypes
-/
prelude
notation `Prop` := Type.{0}
notation [parsing-only] `Type'` := Type.{_+1}
notation [parsing-only] `Type₊` := Type.{_+1}
notation `... |
cb315b8382d9530ae464ef59834772767c6b9c2e | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/analysis/special_functions/trigonometric.lean | ecd3a27d4e034dda9bf4193dc9a35d7f1ad98631 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 81,578 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.exp_log
/-!
# Trigonometric functions
## Main definitions
This fil... |
8bc7df33e1e3327273bc63d2c889abda1c76f824 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/basis.lean | a5f4eb4f7c47a571f882699556b013d45ae9bf23 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,993 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import data.fintype.card
import linear_algebra.finsupp
import linear_algebra.linear_independe... |
5ad663f55de90a529ceb8908da7250765254cf4a | 0c1546a496eccfb56620165cad015f88d56190c5 | /tests/lean/run/cc1.lean | d0a1af4220cd8e3930adb1d9f2eadc1d247d06dc | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,150 | lean | open tactic
set_option pp.implicit true
example (a b c d : nat) (f : nat → nat → nat) : a = b → b = c → d + (if b > 0 then a else b) = 0 → f (b + b) b ≠ f (a + c) c → false :=
by do intros,
s ← cc_state.mk_using_hs,
s^.pp >>= trace,
t₁ ← to_expr `(f (b + b) b),
t₂ ← to_expr `(f (a + c) c),
... |
d177314107b9675808346363c5b890f7fb64c99d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/single_obj.lean | 4e7c97bd837d88048e04de0c8215f5863c467b2b | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,364 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.endomorphism
import category_theory.category.Cat
import algebra.category.Mon.basic
/-!
# Single-object category
Single object category with... |
3b1197ff297ed288a14ff3054d903581e1c186f3 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/tools/super/clause.lean | 045f5a47573fc17d040efc8dd1f28d6f5b9d4a25 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,748 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import init.meta.tactic .utils .trim
open expr list tactic monad decidable
namespace super
meta def is_local_not (local_false : expr) (e : expr) : option expr :=
matc... |
0808eadcf41e7475cd38195406d861ac9d9760b4 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/number_theory/sum_four_squares.lean | 95df6601edd7fff5f7e463903214bf7cfb4f73c4 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,785 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.group_power.identities
import data.zmod.basic
import field_theory.finite.basic
import data.int.parity
import data.fintype.card
/-!
# Lagrange's four squa... |
3b2f88634f4d36e2fe5fd12625561240583811ad | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/kan_extension.lean | 8020306d93e2b368d3f4fe114487eee50610d556 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,140 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Adam Topaz
-/
import category_theory.limits.shapes.terminal
import category_theory.punit
import category_theory.structured_arrow
/-!
# Kan extensions
This file defines the... |
df062f1a5ab5a1e48fd881dde535fd567ac72006 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/vector3.lean | 2d73c296ca089deea592e8131f9cb7fd63cf6f2f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,958 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fin.fin2
import tactic.localized
/-!
# Alternate definition of `vector` in terms of `fin2`
This file provides a locale `vector3` which overrides `[a, b,... |
9dcd7305a515c5ccc00beaae76cc92a919c79364 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2001-IMO_Shortlist-A4.lean | ad7a4ef2c1030bbffa4c180815dfb3e093a40653 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 177 | lean | import data.real.basic
theorem IMO_Shortlist_A4_2001 (f : ℝ → ℝ) :
(∀ x y : ℝ, f(x^2 - y^2) = x*f(x) - y * f(y)) → ∃ l : ℝ, ∀ x : ℝ, f(x) = l*x := sorry
|
d589c0acb1a60944ff41bf6b658a252f2651becc | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/newfrontend5.lean | eeb26ce32eab48a9305ef682fb255f19dd17e13e | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,952 | lean |
def foo {α} (f : {β : Type _} → β → β) (a : α) : α :=
f a
#check_failure let g := id; foo g true -- fails
/-
Expands to
```
let g : ?γ → ?γ := @id ?γ;
@foo ?α (fun (β : Sort ?u) => g) true
```
Unification constraint
```
?γ → ?γ =?= β → β
```
fails because `β` is not in the scope of `?γ`
Error message can be impr... |
cbb7e17cf356499f7f7e24f71300cee057238091 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/locally_finite.lean | 2cdd96d39832b3e413e29eeda932a4e979aed018 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 39,656 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.preimage
/-!
# Locally finite orders
This file defines locally finite orders.
A locally finite order is an order for which all bounded intervals are... |
dcf5e440fec0d40895205c77f5629c23d34ef2a2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/set/mul_antidiagonal.lean | 1410fd8e624818f0fbd80e97bd1b6261f425bbc2 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,839 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Floris van Doorn
-/
import order.well_founded_set
/-! # Multiplication antidiagonal -/
namespace set
variables {α : Type*}
section has_mul
variables [has_mul α] {s s... |
133b63732d28295f80f625d84f1af47f2e935422 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.33.lean | 343e0cfbe197247926a2b8218248ecd5320ce59a | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 459 | lean | import standard
import data.encodable
open encodable function
-- BEGIN
section
parameters {A B : Type} (f : A → B)
definition decidable_in_image_of_surjective : surjective f → ∀ b, decidable (∃ a, f a = b) :=
assume s : surjective f, take b,
decidable.inl (s b)
definition decidable_in_image_of_fintype_of_deceq [inst... |
a15fd535461e63177bee5491cd188719db4df65d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/alias3.lean | e1e4b495ca52ac2da519e7e04324b97ddf66aeeb | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 380 | lean | import logic
namespace N1
section
section
parameter A : Type
definition foo (a : A) : Prop := true
check foo
end
check foo
end
check foo
end N1
check N1.foo
namespace N2
section
parameter A : Type
inductive list : Type :=
| nil {} : list
| cons : A → list → list... |
20d67453f9be3b3a5e876185a651b3d2c1e2847c | c921fee29a35c867e5f851e323b6524331bd1a75 | /src/qpf.lean | 4a36222cef57fc0f3c4814038bf6987a29e96d16 | [
"Apache-2.0"
] | permissive | ChrisHughes24/qpf | 51dbb37491dc0c7f13e9c189fedd1c7e0165bb2a | cf7236ae2e6d0f35f27a77747f2bc2c22bf6d05d | refs/heads/master | 1,586,930,859,057 | 1,546,442,766,000 | 1,546,442,894,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,926 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Cast of characters:
`P` : a polynomial functor
`W` : its W-type
`M` : its M-type
`F` : a functor
`q` : `qpf` data, representing `F` as a quotient of `P`
The ma... |
e782d984d47e6e62d37be585d22d2ff790dd86f3 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/induction_generalizing_bug.lean | 71566abaeb65bf9d6ecb0b0f99f26cc2da0f5d88 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 138 | lean | open nat
example (n : nat) (h : n > 0) : succ n > 0 ∧ n = n :=
begin
split,
induction n generalizing h,
all_goals { sorry },
end
|
7824595c7940c2b2f156e1efdd1c28dfcba27df0 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/data/char.lean | 2b47693c0b7e3cb55fd8773079a424de3b105f84 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 813 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Supplementary theorems about the `char` type.
-/
instance : linear_order char :=
{ le_refl := λ a, @le_refl ℕ _ _,
le_trans := λ a b c, @le_trans ℕ _ _ _ _,
le_anti... |
ac34c1af99d173d2ee1291ea4a832956490ea30f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Exception.lean | 0938d7f4d08e9bd90fbff5f1af4bf42238dbf382 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 6,546 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Message
import Lean.InternalExceptionId
import Lean.Data.Options
import Lean.Util.MonadCache
namespace Lean
/-- Exception type used in most Le... |
75b4f5feac0d61d24b52d13472e66e11e3b30c6a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/category/Group/abelian.lean | 1de7360b49d451e217ec136d4393b673fb0c0440 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,373 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Group.Z_Module_equivalence
import algebra.category.Group.limits
import algebra.category.Group.colimits
import algebra.category.Module.abelian
im... |
fb4ab50837f1007c3111c2eb5889a8d0cece3770 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_05_if_and_only_if.lean | 52d072d6ef367136c5010a8e6d95915c2eb21f4c | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,144 | lean | import .src_04_theorems
variables p q r : Prop
namespace mth1001
section if_and_only_if
/-
The symbol `↔`, written `\iff` is read 'if and only if'. From `p ↔ q`, one can deduce `p → q` and
`p → q`. Likewise, from `p → q` and `q → p`, one can deduce `p ↔ q`.
Given propositions `p` and `q`, if `p ↔ q`, we say that ... |
8693b6a6ad3c03768ba995f578fe255554e7aa5e | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/ring_theory/localization.lean | 575648e3e099a126c7ff81b5473001f4c90c760c | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,760 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import data.equiv.ring
import group_theory.monoid_localization
import ring_theory.algebraic
import ring_theory.integral_clos... |
732323eeccf4ec9a58ba7af77e75bfe937654ae6 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Init/Control/Reader.lean | db601878155bf3cc71e6a5637e125670c75e1708 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 966 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
namespace Re... |
efa8beb6a7176d2a76d4309e430ac90e366004ee | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/linear_algebra/tensor_product.lean | 1ee3a2c206cbbeaecac7a460688217d47b8c672d | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,773 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
-/
import group_theory.congruence
import linear_algebra.basic
/-!
# Tensor product of modules over commutative semirings.
This file constructs the tensor produc... |
ff9b4ec407293b25ec1e3d10e7f1e87de20d3cc6 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/group/conj.lean | f441bad8f2b059c93638e665d727996761526558 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 1,917 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Chris Hughes, Michael Howes
-/
import algebra.group.hom
/-!
# Conjugacy of group elements
-/
universes u v
variables {α : Type u} {β : Type v}
variables [group α] [g... |
a7965684faec4a2f564ab7da17790997c92ed3e9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/sheaves/sheaf_condition/equalizer_products.lean | 08226a3c3b28e28d4b94d8572e8c676bd578b9e9 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 9,050 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.full_subcategory
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.products
import topology.sheaves.presheaf... |
91b71bcacaa77c2af63683f9ce665053ee19c435 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/polynomial/chebyshev/basic.lean | 97f9db9a70b13b07880ba148f1cbbe2b4325fea6 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 8,578 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import ring_theory.polynomial.chebyshev.defs
import analysis.special_functions.trigonometric
import ring_theory.localization
import data.zmod.basic
import algebra.in... |
12560cddf3056f0830cb219f43fdf409f9b785a5 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Data/String/Basic.lean | 0b9651c4a2a9835268d79be7b2de86c610524dd3 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 16,261 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.List.Basic
import Init.Data.Char.Basic
import Init.Data.Option.Basic
universes u
def List.asString (s : List Char) : String :=
⟨s... |
873d087bdf428fff10970f03168d4d89fee7dae9 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/omega/nat/dnf.lean | 769036f9b4d529898f687452ca5f0c95461ae61b | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,971 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
DNF transformation.
-/
import tactic.omega.clause
import tactic.omega.nat.form
namespace omega
namespace nat
open_locale omega.nat
@[simp] def dnf_core : preform → list... |
945a7f36918f7a6537db696ab9d7c53c471fa022 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/t2.lean | 96ed6e5903282bcf58c3fe84673b16805972cba7 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 208 | lean | universe variable l
universe variable u
#print raw Type
#print raw Type.{1}
#print raw Type.{2}
#print raw Type.{l+1}
#print raw Type.{max l u 1}
#print raw Type.{imax l+1 u 1}
#print raw Type.{imax l+1 l u}
|
cc8e077ecc15f5dc9264b56ae7d7de9a3fa77546 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /examples/false_true_properties.lean | e74b7506b7957802452b32fdd9eae5c5aa660c32 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 282 | lean |
lemma notFalse: ¬false :=
begin
assume pfFalse,
assumption,
end
lemma falseImpliesAnything{anything: Prop}:
false → anything :=
begin
assume pfFalse,
have pfAnything: anything := false.elim pfFalse,
assumption,
end
lemma tru: true :=
begin
exact true.intro,
end
|
de8dcd6b5b2ef73e776195ef7e02f02048333c1c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/height.lean | 5e0a398afedd6bcbf8254bc140cb51b9d24b8132 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 14,164 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import data.enat.lattice
import order.order_iso_nat
import tactic.tfae
/-!
# Maximal length of chains
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fi... |
2dac4ceef38c52173cb77f7f54ffa573576fd67f | a162e54d0534f0863de20e911278e6c41ba96e28 | /src/imo2003_q6.lean | dcd20d4143db3456e4f738bed8df41f6e1795717 | [
"Apache-2.0"
] | permissive | manuelcandales/imo-lean | 0ef79d470b58064d16a94adfb83711ae3265a19a | fa54938100fc84c98fe04e1d19e20a424dd006e7 | refs/heads/master | 1,680,228,525,536 | 1,617,602,898,000 | 1,617,602,898,000 | 353,518,197 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 514 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales
-/
import data.nat.basic
import data.nat.prime
open nat
/-!
# IMO 2003 Q6
Let p be a prime number. Prove that there exists a prime number q such that for every natur... |
5efc712e6d2ffe5ab39c83cb069a34754e6f1091 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/bigctorfields.lean | 3ae0f50b487afa2ce2dbcad2711038a3efdba389 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 5,259 | lean | structure Foo where
x1 : Nat := 0
x2 : Nat := 0
x3 : Nat := 0
x4 : Nat := 0
x5 : Nat := 0
x6 : Nat := 0
x7 : Nat := 0
x8 : Nat := 0
x9 : Nat := 0
x10 : Nat := 0
x11 : Nat := 0
x12 : Nat := 0
x13 : Nat := 0
x14 : Nat := 0
x15 : Nat := 0
x16 : Nat := 0
x17 : Nat := 0
x18 : Nat... |
120a946551b43b63b13d0b2dcd561a0a169c98a7 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/uniform_space/uniform_embedding.lean | 7542281caa3a9edfe1df61dbb6130ddf1b023953 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 20,235 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Sébastien Gouëzel, Patrick Massot
Uniform embeddings of uniform spaces. Extension of uniform continuous functions.
-/
import topology.uniform_space.cauchy topology.uni... |
e100967adb20bbe34fdf516ac37e3c2ade78a5cc | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/comp_value_tactics.lean | 72601c9bdfcced133aaf97b0473727249c92c1aa | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 2,839 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.data.option.basic
meta constant mk_nat_val_ne_proof : expr → expr → option expr
meta constant mk_nat_val_lt_proof : ex... |
b636b958d2e6ec8b733cb01cd5eb3c54073d2bbf | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/lib/name.lean | 649659ed5b551730d378b2590952a20cb2ae8ea7 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 360 | lean | namespace name
def get_suffix : name → option string
| anonymous := none
| (mk_string s p) := s
| (mk_numeral n p) := to_string n
def append_suffix : name → string → name
| anonymous suff := mk_string suff anonymous
| (mk_string s p) suff := mk_string (s ++ suff) p
| (mk_numeral n p) suff := mk_string... |
d85e3f5a192352f38cf2724282462713032a9763 | af6139dd14451ab8f69cf181cf3a20f22bd699be | /library/tools/mini_crush/default.lean | dea422f57599dcb5d0ec51ae47e38fbda808f9cf | [
"Apache-2.0"
] | permissive | gitter-badger/lean-1 | 1cca01252d3113faa45681b6a00e1b5e3a0f6203 | 5c7ade4ee4f1cdf5028eabc5db949479d6737c85 | refs/heads/master | 1,611,425,383,521 | 1,487,871,140,000 | 1,487,871,140,000 | 82,995,612 | 0 | 0 | null | 1,487,905,618,000 | 1,487,905,618,000 | null | UTF-8 | Lean | false | false | 8,662 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
We implement a crush-like strategy using simplifier,
SMT gadgets, and robust simplifier.
This is just a demo.
-/
declare_trace mini_crush
namespace mini_cru... |
4588f1d2c4bb858c139e9339f778855c015224e3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/sets/opens.lean | 0a8fd735658911fd477e6442f7722064c144a2dc | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 11,417 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Floris van Doorn
-/
import order.hom.complete_lattice
import topology.bases
import topology.homeomorph
import topology.continuous_function.basic
import ... |
ccd7e8e7e6d8a0f709bd58acd7cf4e39c8798f0a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebraic_geometry/Spec_auto.lean | fd2598deb05902eb4d708c4b478e9b3907211ab7 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,422 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebraic_geometry.locally_ringed_space
import Mathlib.algebraic_geometry.structure_sheaf
i... |
53bc0d5aabd48cf5612a7c6f224d7725f3d6cf82 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /algebra/lattice/bounded_lattice.lean | d1fe06410172c1f48afefe4b426311033b1c7dbe | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 3,022 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Defines bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import .basic
set_option old_structure_cmd true
universes u v
variable {α : Ty... |
535660d3f4b67ad6856ed1918291e0bbbedd91c3 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/limits/colimits.hlean | 5625db6bd16655e9375fec161677964d94563ced | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 13,403 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Colimits in a category
-/
import .limits ..constructions.opposite
open is_trunc functor nat_trans eq
-- we define colimits to be the dual of a limit
namespace c... |
e604f5f8cfcbd76e0ec01ba49e324f0b6889ff83 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/witt_vector/witt_polynomial.lean | fb77e6d9861f572fa2a098cbf039f56b918941df | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 10,826 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import algebra.char_p.invertible
import data.mv_polynomial.variables
import data.mv_polynomial.comm_ring
import data.mv_polynomial.expand
import dat... |
a47c6e6015105f318312629cfee7208c7f95c40b | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/examples/semilinear.lean | 48a3db96a6ff07b07d2d3581b230bc0d78fa4793 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,111 | lean | import o_minimal.examples.isolating
import algebra.module.ordered
import data.fintype.card
import algebra.module.pi
import algebra.module.submodule
import for_mathlib.ordered_group
namespace o_minimal
universe variable u
open_locale big_operators
/-
Let R be an ordered vector space over an ordered field K (most co... |
ff7c6f7cc86db0296705de2e5c49b14da56236e3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/terminationFailure.lean | 3f8f082a4b390dcfa0fe34ba01d41ae20f8b38bb | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 321 | lean | def f (x : Nat) : Nat :=
if h : x > 0 then
g x + 2
else
1
where
g : Nat → Nat
| 0 => 2
| x => f x * 2
#check f
#check f.g
#eval f 0
#eval f.g 0
inductive Foo where
| a | b | c
deriving Repr
def h (x : Nat) : Foo :=
match x with
| 0 => Foo.a
| 1 => Foo.b
| x => h x
#check h
#eval h 0
|
0cf7ccb7b466a5dd24736018b4e377f7ef4adc35 | 46ee5dc7248ccc9ee615639c0c003c05f58975cd | /src/vocabulary.lean | 8c3f7bf618976b072423287745aa7e1246c67f77 | [
"Apache-2.0"
] | permissive | m4lvin/tablean | e61d593b4dde6512245192c577edeb36c48f63c0 | 836202612fc2bfacb5545696412e7d27f7704141 | refs/heads/main | 1,685,613,112,076 | 1,676,755,678,000 | 1,676,755,678,000 | 454,064,275 | 8 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,397 | lean | -- VOCABULARY
import tactic.norm_num
import syntax
import setsimp
def vocabOfFormula : formula → finset char
| (⊥) := set.to_finset { }
| ( (· c)) := { c }
| (~ φ) := vocabOfFormula φ
| (φ ⋏ ψ ) := vocabOfFormula φ ∪ vocabOfFormula ψ
| (□ φ) := vocabOfFormula φ
def vocabOfSetFormula : finset formula → fi... |
9c845dc9e01d4d986fdb58c01dabc202fea5166a | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_2037.lean | b831b5cc64d5c65e3d3a7fd72477adea4c38c299 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 103 | lean | variables {p q : Prop}
-- BEGIN
example (h₁ : ¬p) (h₂ : p) : q :=
begin
contradiction
end
-- END |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.